Ha Thach
542e5b4550
Merge pull request #3114 from hathach/fix-sigma-mouse-multiple-attach
...
Fix sigma mouse multiple attach
2025-05-06 21:40:23 +07:00
hathach
a05fc50461
clean up ci
2025-05-06 18:41:12 +07:00
hathach
fb2214dea6
move hil into build workflow
2025-05-06 16:30:34 +07:00
hathach
809af3e74c
chore(usbh): change removing_hubs to array instead of bitmask
2025-05-06 15:58:07 +07:00
hathach
bc37ed6e3e
usbh: force removed device in the same bus info, before setting address.
...
usbh: move code around
hub: queue status endpoint for detach/remove event
2025-05-06 15:23:23 +07:00
Ha Thach
1a783b3573
Merge pull request #3104 from hathach/usbh-attach-debounce
...
Usbh attach debounce
2025-04-29 21:36:18 +07:00
hathach
2abd3c54c4
define hcd_devtree_info_t forr backward compatible
2025-04-29 20:49:47 +07:00
hathach
e7d4b5c9e7
add enum for set addr recovery
2025-04-29 20:16:50 +07:00
hathach
fc43eeddf2
attach debouncing fixed issue with port1 highspeed on imxrt
2025-04-29 10:11:20 +07:00
hathach
42d4f7c81e
remove the old attach duplicated logic, debouncing skip should take care of it.
2025-04-28 15:10:03 +07:00
hathach
2c1414b4c1
usbh: add roothub debounncing flag to ignore attach/remove event on the roothub that is currently doing debouncing delay
2025-04-28 14:59:32 +07:00
Ha Thach
a22e45b816
Merge pull request #3100 from wavenumber-eng/get_deps_fix
...
Fixed broken deps on a fresh clone
2025-04-28 10:36:29 +07:00
Eli Hughes
0937a2b2d3
using get-deps from tinyuf2
2025-04-27 09:38:18 -04:00
Ha Thach
b5d4d0f623
Merge pull request #3096 from hathach/usbh-improve-hub
...
Usbh improve hub
2025-04-24 23:02:18 +07:00
hathach
b5b7a4be60
hub check status before get 1st device descriptor
2025-04-24 22:21:38 +07:00
hathach
093720f60b
fix build
2025-04-24 18:08:00 +07:00
hathach
0f784e8a07
refactor hub driver and move port reset on connection change to usbh.
...
hub: add hub_port_get_status_local(), ignore resp in hub_port_get_status(pot != 0)
usbh properly deboucning with hub/rootport accordingly to usb specs, also add 10ms of reset recovery
2025-04-24 17:59:45 +07:00
Ha Thach
1afe8a0039
Merge pull request #3095 from fenugrec/ex_cmake_CM0
...
examples cmake: fix gcc flag -mcpu=cortex=m0
2025-04-24 10:46:14 +07:00
hathach
89f8d0cffb
add tuh_address_set() API
...
minor rename and move code around
2025-04-24 10:41:00 +07:00
fenugrec
736b1d50bc
examples cmake: fix gcc flag -mcpu=cortex-m0
2025-04-23 16:04:42 -04:00
Ha Thach
8b3c558881
Merge pull request #3093 from hathach/refactor-usbh-bus-info
...
refactor(usbh) improve the usage of bus info
2025-04-23 20:08:38 +07:00
hathach
9a1f690ec4
move usbh ctrl_xfer into usbh_data
2025-04-23 16:50:58 +07:00
hathach
a2da575793
rename and expose tuh_bus_info_get() to application
2025-04-23 16:03:40 +07:00
hathach
741cb3cf02
rename hcd_devtree_info_t to tuh_bus_info_t, hcd_devtree_get_info to hcd_bus_info_get
...
streamline bus info to usbh_devies, also replace dev0 (renamed to dev0_bus)
2025-04-23 12:35:32 +07:00
Ha Thach
b632686f54
Merge pull request #3080 from HiFiPhile/enum_racing
...
host: fix enumerate racing
2025-04-23 10:41:14 +07:00
HiFiPhile
b6170c965f
Compile fix.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-04-22 21:14:04 +02:00
hathach
8f9ef7dfbe
reduce ENUM_DEBOUNCING_DELAY_MS to 200ms
...
replace dev0.enumerating by enumerating_daddr for better clean up on unplugging while enumerating
move controller_id & enumerating_daddr into _usbh_data struct
2025-04-22 22:09:06 +07:00
hathach
940fe43e68
move removing dev0 to process_removing_device()
2025-04-22 17:33:37 +07:00
HiFiPhile
7ba63a6302
Also cleanup unaddressed device.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-04-22 16:58:13 +07:00
HiFiPhile
3c4e6a779d
Move decouncing delay before USB reset.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-04-22 16:58:12 +07:00
HiFiPhile
9f096ac56b
host: fix enumerate racing
...
- if a previous enumeration failed _ctrl_xfer status could stuck, it needs to be cleared before next attempt.
- after _dev0.enumerating is reset in hcd_event_handler(), if an attach event arrived before _ctrl_xfer clean up in remove event, a racing condition will happen.
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-04-22 16:58:10 +07:00
Ha Thach
18d7a993be
Merge pull request #3075 from maximevince/dwc2-proper-attach-debouncing
...
dwc2/host: attach debouncing fixes
2025-04-21 22:46:15 +07:00
hathach
5725d33121
improve usbh stability with failed setup send, prevent control stage locked out
2025-04-21 20:39:23 +07:00
Ha Thach
56ed51c8fb
Merge pull request #3088 from HiFiPhile/intv
...
Fix 1st nak retry one frame shorter.
2025-04-21 18:31:43 +07:00
HiFiPhile
b3a9b6e37f
enable SOF interrupt only if not already enabled
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-04-19 11:43:28 +02:00
Ha Thach
5572168994
Merge pull request #3077 from HiFiPhile/ping_out
2025-04-19 00:03:51 +07:00
hathach
d51863d1a0
- correctly do_ping if received nyet as transfer complete e.g msc 31 byte command
...
- correctly carry out OUT transfer when PING is ack
2025-04-18 22:46:37 +07:00
HiFiPhile
1efc9007b2
Merge branch 'dwc2-proper-attach-debouncing' of github.com:maximevince/tinyusb into dwc2-proper-attach-debouncing
2025-04-18 14:58:59 +02:00
HiFiPhile
b3d20442e2
Fix usbh racing later.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-04-18 14:57:53 +02:00
HiFiPhile
4c6736c277
Merge branch 'master' into dwc2-proper-attach-debouncing
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-04-18 14:54:20 +02:00
hathach
8111e53ff0
minor rename
2025-04-18 18:21:42 +07:00
hathach
2fd0301f0e
Merge branch 'master' into fork/HiFiPhile/ping_out
...
# Conflicts:
# src/portable/synopsys/dwc2/hcd_dwc2.c
2025-04-18 17:59:38 +07:00
HiFiPhile
b7a26cc33c
Fix 1st nak retry one frame shorter.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-04-18 12:46:20 +02:00
Ha Thach
e44f556a95
Merge pull request #3072 from maximevince/dwc2-retry-in-token-immediately
...
dwc2/host: immediately retry IN token for bInterval=1
2025-04-18 17:12:07 +07:00
HiFiPhile
ee1a5dbac0
Merge pull request #3084 from joelpmichael/hcd-template-comments
...
note potential issues using ep_desc in hcd_edpt_open()
2025-04-18 11:25:59 +02:00
HiFiPhile
91163c9217
Merge pull request #3067 from maximevince/dwc2-host-fix-disconnect
...
dwc2/host: enable disconnect interrupt + handle it
2025-04-18 11:24:23 +02:00
hathach
1b888a3311
clean up, remove halted_sof_schedule flags since channel_xfer_in_retry() is only called when channel is halted.
2025-04-18 16:17:35 +07:00
HiFiPhile
b6abc9022a
Merge remote-tracking branch 'upstream/master' into hcd-template-comments
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-04-18 11:13:15 +02:00
HiFiPhile
7134109973
Update hcd_edpt_open() note.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-04-18 11:12:14 +02:00
Ha Thach
3fd7854a91
Merge pull request #3081 from hathach/usbh-enum-get-string-desc-first
...
usbh enum get string descriptor length first
2025-04-18 15:24:42 +07:00
hathach
ba45625ea4
minor ci update
2025-04-18 14:29:06 +07:00
hathach
5c7ca2acad
change gh ci iar to push event
2025-04-18 12:07:08 +07:00
hathach
e8a84f9076
enum For string descriptor (langid, manufacturer product, serila): always get the first 2 bytes to determine the length first. otherwise, some device may have buffer overflow.
2025-04-18 10:53:12 +07:00
Ha Thach
edbea218b9
Merge pull request #3086 from hathach/ci-add-picow-host
...
Ci add picow host test
2025-04-17 23:51:50 +07:00
hathach
46d2d4199e
run arm-iar with non-forked PR
2025-04-17 21:36:09 +07:00
hathach
0220852a6e
- hil test max retry = 3
...
- fix h7 unused function
2025-04-17 16:58:26 +07:00
hathach
d4983acd3a
github ci support setup/install iar toolchain
2025-04-17 16:50:25 +07:00
hathach
3851c7c97a
- run arm-iar using github action
...
- add skip_ci.txt to family folder to skip boards in ci run
2025-04-17 16:07:10 +07:00
hathach
9eb0ae7636
fix iar make build with stm32 l0, f2, f3, u5, wb
2025-04-17 15:15:07 +07:00
hathach
b1eedf4d1d
fix iar make build with wb and u5
2025-04-17 14:40:43 +07:00
hathach
eea42fd119
update iar build
2025-04-17 13:05:18 +07:00
hathach
ccb34dbbdb
add toolchain.json for toolchain url
2025-04-17 12:20:05 +07:00
hathach
f479b02ea6
ci add pico_w for native host test
2025-04-17 11:22:38 +07:00
Ha Thach
e426c8c876
Merge pull request #3085 from hathach/ci-add-s3-host
...
Ci add s3 host
2025-04-17 11:07:04 +07:00
hathach
7ef17a85cb
de-duplicate flash board_test for board with multiple flags_on
2025-04-16 23:47:17 +07:00
hathach
4d601545eb
add TS3USB30 to test s3 host with slave/dma
2025-04-16 21:15:07 +07:00
Joel Michael
0d2c08efd7
note potential issues using ep_desc in hcd_edpt_open()
2025-04-16 20:26:35 +10:00
Maxime Vincent
62d06e7b19
dwc2/host: fix all retry intervals
...
Signed-off-by: Maxime Vincent <maxime@veemax.be>
2025-04-15 09:07:48 +02:00
Maxime Vincent
384e191fdc
dwc2/host: immediately retry IN token for bInterval=1
...
Signed-off-by: Maxime Vincent <maxime@veemax.be>
2025-04-15 09:01:39 +02:00
Maxime Vincent
de5cc0b830
Merge branch 'master' into dwc2-proper-attach-debouncing
2025-04-15 09:00:57 +02:00
Maxime Vincent
cea2c97248
Merge branch 'master' into dwc2-host-fix-disconnect
2025-04-15 09:00:16 +02:00
Ha Thach
bfe08176e5
Merge pull request #3070 from HiFiPhile/bitfield
...
host/dwc2: fix bitfields access width
2025-04-15 10:44:01 +07:00
hathach
d039d54a89
channge DWC2_CHANNEL_COUNT/DWC2_EP_COUNT to inline function
2025-04-14 23:45:20 +07:00
HiFiPhile
6689a0142d
Merge pull request #3079 from byteit101/version-string-fix
...
Fix version string to actually be the version
2025-04-12 16:41:04 +02:00
HiFiPhile
af0c47e06e
Fix typo
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-04-12 15:21:42 +02:00
HiFiPhile
5e4decb4a3
Merge pull request #3074 from maximevince/dwc2-fix-hfir-off-by-one
...
dwc2/host: HFIR: Fix timing off-by-one
2025-04-12 13:40:36 +02:00
HiFiPhile
aecfd3433c
Fix handle_hprt_irq
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-04-12 13:36:54 +02:00
Patrick Plenefisch
937b07cdc0
Fix version string to actually be the version
2025-04-11 18:19:39 -04:00
HiFiPhile
925010fd84
host/dwc2: resume OUT transfer when PING ACKed
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-04-11 17:18:36 +02:00
Maxime Vincent
2064ee470d
dwc2/host: attach debouncing fixes
2025-04-11 12:26:36 +02:00
Maxime Vincent
72357cdb20
dwc2/host: HFIR: Fix timing off-by-one
2025-04-11 12:20:24 +02:00
HiFiPhile
2aff61ccb3
Fix CI.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-04-09 19:40:03 +02:00
HiFiPhile
3acaffd64d
build fix.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-04-09 19:34:56 +02:00
HiFiPhile
084c0802c3
dwc2: refactor bitfields.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-04-09 19:34:56 +02:00
Maxime Vincent
6607b76c76
dwc2/host: remove hcd_event_device_remove() call from handle_hptr_irq to prevent double removal
...
Signed-off-by: Maxime Vincent <maxime@veemax.be>
2025-04-08 14:34:21 +02:00
HiFiPhile
1be4171d2a
Fix espressif build with presets.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-04-07 23:41:55 +02:00
Maxime Vincent
7d8433abab
dwc2/host: enable disconnect interrupt + handle it
...
Signed-off-by: Maxime Vincent <maxime@veemax.be>
2025-04-07 11:36:06 +02:00
HiFiPhile
865e3488f9
Merge pull request #3014 from deshipu/master
...
Allow different port and mode for LED on ch32v boards
2025-04-06 18:35:28 +02:00
Radomir Dopieralski
1f2f92d97a
Allow different port and mode for LED on ch32v boards
...
While there is a define for the port, the clock enable is hardcoded for
GPIOA, so setting a different port than GPIOA doesn't work. This fixes
it by adding a define for enabling the port clock.
It also adds a define for the pin mode, because not all boards have the
LED connected in a way that open drain works with it.
2025-04-06 17:14:32 +02:00
HiFiPhile
b4252c426f
Merge pull request #3015 from Dazza0/docs/fix_formatting
...
Fix .rst document formatting
2025-04-06 14:15:08 +02:00
HiFiPhile
42213eff2b
Merge pull request #3063 from maximevince/dwc2-host-fix-sof-flag
...
dwc2/host: clear SOF flag in handle_sof_irq()
2025-04-06 14:05:28 +02:00
Maxime Vincent
255ccf26ea
dwc2/host: clear SOF flag in handle_sof_irq()
2025-04-04 14:21:20 +02:00
Ha Thach
60e6d53d10
Merge pull request #3061 from hathach/update-endpoint-open
...
fix(hcd) hcd_edpt_open() return true if endpoint is already opened.
2025-04-03 21:22:01 +07:00
hathach
4787cd5f54
fix(hcd) hcd_edpt_open() return true if endpoint is already opened.
2025-04-03 18:11:33 +07:00
Ha Thach
8c1802e41d
Merge pull request #3043 from hathach/hcd-close-ep
...
feat(host) add endpoint close API and feat(HIL) improvement
2025-03-27 10:47:10 +07:00
hathach
5531de4f2c
add clion debugserver
2025-03-26 23:20:00 +07:00
hathach
e511d00f34
added hcd_edpt_close() stub for other ports
2025-03-26 22:11:44 +07:00
hathach
901ce2ad93
hcd/ehci: hcd_edpt_open() return false if ep is already opened. implement hcd_edpt_close()
2025-03-26 21:32:18 +07:00
hathach
1615120bca
added mimxrt1064_evk to hil test pool
2025-03-26 15:32:19 +07:00
hathach
69dca9518c
added mimxrt1064_evk to hil test pool
2025-03-26 15:20:27 +07:00
hathach
73e810a7ba
imxrt: disable BOARD_ConfigMPU() since it cause issue with imxrt1060/64. Update imxrt configtool forr some board to get uart pin init.
2025-03-26 15:20:02 +07:00
hathach
99673cdbb8
fix wanings
2025-03-25 17:36:15 +07:00
hathach
65e01fff2e
add tuh_edpt_close() API, it will abort any pending transfer
...
implement hcd_edpt_close() for pio-usb and max3421e, also move max3421e api into its own header.
2025-03-25 16:15:58 +07:00
hathach
b99b811308
more hil improvement
2025-03-25 14:43:40 +07:00
hathach
1fd5c12316
HIL: add flag CFG_TUH_RPI_PIO_USB to pico/pico2
2025-03-25 10:43:55 +07:00
hathach
875e645b32
update hil test to include dual and host for pico/pico2
2025-03-24 23:56:32 +07:00
hathach
db537861b2
device cdc: rename tud_cdc_configure_fifo/_t to tud_cdc_configure/_t
...
add tx_overwritabe_if_not_connected for cdc driver configure
2025-03-24 22:58:21 +07:00
hathach
9f541a3d96
host: add tuh_enum_descriptor_device_cb() and tuh_enum_descriptor_configuration_cb() callback
...
host: support device with multiple configurations
2025-03-24 22:55:04 +07:00
Ha Thach
cf76af1056
Merge pull request #3042 from rppicomidi/fix_3033
...
Fix #3033 : Increase array bounds and test for overflow
2025-03-21 22:56:16 +07:00
rppicomidi
3324a327cb
Fix #3033 : address review comment
2025-03-21 07:14:10 -07:00
rppicomidi
b0def52f45
Move misplaced statement
2025-03-21 07:13:01 -07:00
hathach
e54753814b
enable hil dual for metro m4 with max3421
2025-03-21 00:11:18 +07:00
rppicomidi
4b46493cb4
Fix #3033 : Increase array bounds and test for overflow
2025-03-20 06:27:23 -07:00
Ha Thach
c2924c51fc
Merge pull request #3032 from rppicomidi/fix_3031
...
Fix 3031: implement tuh_midi_itf_get_info()
2025-03-20 09:44:56 +07:00
rppicomidi
05e4f8b777
Move iInterface per review comment
2025-03-19 05:57:01 -07:00
rppicomidi
62f00bdf5d
Fix compiler conversion error warning
2025-03-18 07:42:47 -07:00
rppicomidi
5ecea4eefe
fix tuh_midi_itf_get_info() desc->iInterface value
2025-03-18 07:41:49 -07:00
rppicomidi
31b3a2f63b
Fix 3031: implement tuh_midi_itf_get_info()
2025-03-17 07:41:51 -07:00
Ha Thach
40ddf0628a
Merge pull request #3038 from hathach/update-pio-usb
...
change pio-usb to upstream
2025-03-17 13:06:10 +07:00
Ha Thach
e0df20f260
change pio-usb to upstream
2025-03-17 12:20:49 +07:00
Ha Thach
e9a1be7e02
Merge pull request #3034 from hathach/ctrl_fix
...
Fix UAC ctrl buffer alignment.
2025-03-16 11:19:43 +07:00
HiFiPhile
585bcbfcdd
Fix 2 IAR warnings.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-03-16 00:07:15 +01:00
HiFiPhile
de45e4b01a
Add ctrl buffer alignment.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-03-15 23:49:11 +01:00
HiFiPhile
ca750313b2
Update gitignore.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-03-15 21:15:52 +01:00
Ha Thach
5333d042f9
Merge pull request #3029 from rppicomidi/fix_3028
...
Only clear stream_read & stream_write if they are defined
2025-03-14 16:25:54 +07:00
rppicomidi
b80800f182
Only clear stream_read & stream_write if they are defined
2025-03-13 10:04:56 -07:00
HiFiPhile
f01c4be350
Merge pull request #3020 from Cynventria/fix-desc_end-calculation-in-vendor-device-open
...
fix desc_end in vendord_open()
2025-03-11 22:59:56 +01:00
Cynventria[CitRA]
cf94b3f5fc
fix desc_end in vendord_open()
...
minor fix on calculation of desc_end in vendord_open( ) for descriptor prasing
2025-03-10 14:22:29 +08:00
Ha Thach
dc45903161
Merge pull request #3019 from hathach/fix-pico-examples-build
...
fix(rp2040) set RTOS as cmake cache to fix pico-example build
2025-03-10 12:18:22 +07:00
hathach
683b1e9702
fix(rp2040) set RTOS as cmake cache to fix pico-example build
2025-03-10 11:20:47 +07:00
Ha Thach
02a630b3da
Merge pull request #1627 from atoktoto/midihost
...
RP2040 MIDI Host
2025-03-09 19:01:10 +07:00
HiFiPhile
29ffd57237
Merge pull request #2990 from dauc/master
...
Add full/high speed compile flag for Microchip SAME70 examples
2025-03-08 11:57:41 +01:00
Darian Leung
8f288e96a8
refactor: Fix inline literal and code blocks in .rst documents
...
- Added missing inline literals (double backticks) to any reference of symbol
names and macros
- Added language specifier to "code-block" directives to enable syntax
highlighting when rendered.
2025-03-07 21:21:33 +08:00
Darian Leung
5342f1255a
fix: Turn various .rst files from symbolic links to proper files
...
"code_of_conduct.rst" and "contributors.rst" both contain RST include
directives, but their file types are symoblic links. This commit turns them
into proper files.
2025-03-07 21:19:58 +08:00
Ha Thach
334ac80726
Merge pull request #2937 from pschatzmann/rp2040-iso
...
rp2040 correct dcd_edpt_iso_activate
2025-03-07 10:03:58 +07:00
Ha Thach
fd3290cbd1
Merge pull request #3011 from hathach/fix-dwc2-host-conflict-max3421e
...
fix(dwc2) host driver conflict with max3421e
2025-03-07 10:00:03 +07:00
hathach
65e44e0a51
fix(dwc2) host driver conflict with max3421e
2025-03-06 22:46:21 +07:00
hathach
ee234a84ca
hack: force/overwrite endpoint mps to 64 for device that incorrectly report 512 bytes for bulk in fullspeed mode.
2025-03-06 11:03:47 +07:00
hathach
39e6375b74
midi host: skip rx data with all zeroes
2025-03-06 10:26:45 +07:00
hathach
102c1991d0
rp2040: abort transfer if active in iso_activate()
...
add hw_endpoint_abort_xfer()
2025-03-05 22:26:28 +07:00
hathach
3ea71b67b1
Merge branch 'master' into fork/pschatzmann/rp2040-iso
2025-03-05 22:25:58 +07:00
hathach
8c0c21189c
Merge branch 'master' into fork/atoktoto/midihost
...
# Conflicts:
# src/host/usbh.c
2025-03-05 18:25:31 +07:00
Ha Thach
6bba41045a
Merge pull request #3008 from hathach/add-metro-rp2350
...
add adafruit metro rp2350
2025-03-05 17:53:45 +07:00
hathach
7dbad0a23e
add adafruit metro rp2350
2025-03-04 22:42:27 +07:00
Ha Thach
51cfae6e97
Merge pull request #3007 from hathach/fix-8bitdo-enum
...
Fix(host) enumeration with 8bitdo devices
2025-03-04 10:47:31 +07:00
hathach
5f447b76ad
- add tuh_descriptor_get_string_langid() API
...
- host enumeration always get language id, manufacturer, product and serial string. Which is required by some device such as 8bitdo
2025-03-03 23:22:23 +07:00
hathach
93ff3daa11
fix(hcd_rp2040) assert/panic endpoint already active: when a device reset while having on-going control transfer
2025-02-28 16:41:51 +07:00
Ha Thach
a29e11404d
Merge pull request #3005 from hathach/fix-rp2-picosdk-board
...
add missing board.h for BOARD=pico_sdk
2025-02-28 12:28:17 +07:00
hathach
c1df796a7c
add missing board.h for BOARD=pico_sdk
2025-02-28 12:04:54 +07:00
Ha Thach
72b1fc50e5
Merge pull request #3002 from espressif/fix/remove_deprecated_includes
...
fix(esp): Remove deprecated include
2025-02-27 21:15:16 +07:00
Tomas Rezucha
720697b6ae
fix(esp): Remove deprecated include
...
soc/usb_pins.h header will be deprecated in IDF v6.0
2025-02-27 12:48:31 +01:00
hathach
d132044b75
add tuh_midi_mount_cb_t struct for tuh_midi_mount_cb()
...
change tuh_midi_rx/tx_cb() to have xferred_bytes
rename tuh_midi_get_num_rx/tx_cables() to tuh_midi_get_rx/tx_cable_count()
use default empty callback instead of weak null to be compatible with keil compiler
2025-02-24 16:05:31 +07:00
hathach
56e84bd1a6
add desc_audio_control to midi descriptor callback
2025-02-24 14:40:32 +07:00
hathach
8c70475c23
change API to take index instead of dev address, this allow to support more than 1 midi per device.
2025-02-24 12:39:02 +07:00
hathach
71e046d9ff
add tuh_midi_descriptor_cb()
2025-02-24 10:55:03 +07:00
hathach
b12c8a9012
remove CFG_MIDI_HOST_DEVSTRINGS support, we will leave that for application to parse/extract this information if needed
...
rename tuh_midi_configure() to mounted() for consistency
2025-02-21 17:31:13 +07:00
hathach
6ebd362cfd
Merge branch 'master' into fork/atoktoto/midihost
...
# Conflicts:
# src/host/usbh.c
2025-02-21 10:59:40 +07:00
Ha Thach
1cfc88dbcb
Merge pull request #2994 from hathach/enhance-hub
...
Enhance hub driver
2025-02-21 10:36:52 +07:00
hathach
61aab7a86a
pio-usb now only need sysclk to be multiple of 12Mhz
2025-02-20 22:18:33 +07:00
hathach
cafc788508
change pio-usb to wip fork for testing
2025-02-20 16:16:07 +07:00
hathach
6572c1da0d
add fruitjam bsp
2025-02-20 15:47:29 +07:00
hathach
70ddb7a867
more hub improve, handle more failed transfer with polling interrupt status endpoint
2025-02-19 15:50:42 +07:00
hathach
27a4895b79
complete separate hub epbuf from itf
...
add hub_get_status(), hub_clear_feature()
2025-02-19 12:58:03 +07:00
hathach
48a43a675c
move status_change to epbuf
...
improve hub_xfer_cb()
rename internal complete function
2025-02-19 11:27:33 +07:00
hathach
792a446405
usbh always retry control transfer (max 3) in case of XFER_RESULT_FAILED.
...
added tuh_connected()
2025-02-17 22:40:19 +07:00
hathach
18d566b94c
improve hub: retry if hub interrupt endpoint failed
...
bump up pio-usb to latest
2025-02-17 17:06:51 +07:00
Devin Auclair
aa860041b8
Add full/high speed compile flag for Microchip SAME70 examples
...
Default is still high speed, but setting
SPEED=high|full work as expected.
`make BOARD=same70_xplained SPEED=full`
Tested with examples/device/cdc_msc
```preformatted
lsusb -v
...
TinyUSB Device:
Product ID: 0x4003
Vendor ID: 0xcafe
Version: 1.00
Serial Number: 0123456789ABCDEF
Speed: Up to 12 Mb/s <------ full speed here
Manufacturer: TinyUSB
Location ID: 0x03142130 / 12
Current Available (mA): 500
Current Required (mA): 100
Extra Operating Current (mA): 0
Media:
Mass Storage:
Capacity: 8 KB (8,192 bytes)
Removable Media: Yes
BSD Name: disk5
Logical Unit: 0
Partition Map Type: Unknown
S.M.A.R.T. status: Verified
USB Interface: 2
```
2025-02-14 11:06:54 -05:00
hathach
997771fdba
- rename tuh_midi_stream_flush() to tuh_midi_write_flush()
...
- add tuh_midi_packet_read_n() and tuh_midi_packet_write_n()
- add CFG_TUH_MIDI_STREAM_API to opt out stream API
2025-02-14 16:21:48 +07:00
Ha Thach
9d2fd6c4ac
Merge pull request #2984 from HiFiPhile/preset
...
Add CMake presets.
2025-02-14 11:29:33 +07:00
hathach
31a2696de7
- change signature of tuh_midi_mount/umount_cb()
...
- rename midi_stream_t to midi_driver_stream_t and move to midi.h (common for device and host)
2025-02-14 11:25:50 +07:00
hathach
ed88fc983f
- remove tuh_midi_read_poll(), auto schedule EP in when set_config() and xfer_cb as well as ep read()
...
- de-dup tuh_midi_get_num_rx/tx_cables
- add tuh_midi_read_available()
2025-02-14 10:41:05 +07:00
hathach
bad6cbe489
update midi host to use endpoint stream API
2025-02-13 15:54:31 +07:00
hathach
e0b192b633
- use CFG_TUH_MIDI as number of midi host instance
...
- comment out tuh_descriptor_device_cb/tuh_desc_configuration_cb since it is unrelated to this PR
2025-02-12 22:16:08 +07:00
hathach
86d371fb79
more ci fix
2025-02-12 13:58:01 +07:00
hathach
7c405236cf
fix host midi build
2025-02-12 11:50:57 +07:00
hathach
294fb268d7
pre-commit fix
2025-02-12 11:39:26 +07:00
hathach
85247e50dd
clean up
2025-02-12 11:34:32 +07:00
hathach
87adc63226
Merge branch 'master' into fork/atoktoto/midihost
...
# Conflicts:
# hw/bsp/rp2040/family.cmake
# src/class/midi/midi.h
# src/class/midi/midi_device.c
# src/device/usbd_control.c
# src/host/hcd.h
# src/host/usbh.c
# src/host/usbh.h
2025-02-12 11:28:16 +07:00
HiFiPhile
14f1feac84
Fix path.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-02-11 20:56:41 +01:00
Ha Thach
5afcfb7522
Merge pull request #2989 from hathach/rtos-house-keeping
...
Rtos house keeping
2025-02-11 22:54:57 +07:00
hathach
3560ed3d98
remove board_mcu.h
2025-02-11 21:55:28 +07:00
hathach
f1ce4918c2
update make to use FreeRTOSConfig in family instead of examples
2025-02-11 21:44:35 +07:00
hathach
5a39bcf79c
remove freeeRTOSConfig in examples
2025-02-11 21:19:09 +07:00
Ha Thach
bb48e6acc8
Merge pull request #2988 from hathach/update-iar-cloud-lms
...
update IAR LMS CLOUD
2025-02-11 21:18:16 +07:00
hathach
f23bef5fd8
update IAR LMS CLOUD
2025-02-11 20:30:07 +07:00
Ha Thach
457c2b55da
Merge pull request #2914 from ReimuNotMoe/master
...
Various fixes for the Microchip Chipidea FS driver
2025-02-11 16:50:44 +07:00
Ha Thach
24b2abbb05
Merge pull request #2982 from hathach/fix-stringop-overread-warning
...
fix stringop-overread warning for msc device with memmove
2025-02-10 13:47:52 +07:00
HiFiPhile
1208f88b6e
Sort list (bettter for Clion)
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-02-09 18:40:30 +01:00
HiFiPhile
09bce3532c
Add CMake presets.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-02-09 00:25:38 +01:00
Ha Thach
35e9f03324
Merge pull request #2911 from jay94ks/styluspen
...
Adding Stylus-Pen Device Support.
2025-02-07 16:56:22 +07:00
hathach
a232644cbd
add full hid usage for Digitizer Page (0x0D), move thing around a bit.
2025-02-07 16:38:14 +07:00
hathach
cd0ca4832d
Merge branch 'refs/heads/master' into fork/jay94ks/styluspen
2025-02-07 16:37:51 +07:00
hathach
3ffe8dbfee
fix stringop-overread warning for msc device with memmove
2025-02-07 12:48:17 +07:00
Ha Thach
2a3025eaa5
Merge pull request #2976 from JannisKonradBecker/master
...
ch32v3 fs: signal bus speed
2025-02-06 20:40:51 +07:00
hathach
7df510ecc9
Merge branch 'master' into fork/JannisKonradBecker/master
2025-02-06 17:56:10 +07:00
Ha Thach
9c093a30f4
Merge pull request #2981 from hathach/skip-iar-forked-pr
...
skip iar build for forked PR
2025-02-06 17:49:18 +07:00
hathach
7282572a56
skip iar build for forked PR
2025-02-06 17:19:18 +07:00
Jannis Konrad
169d2d7a1f
use speed enum
2025-02-06 08:50:25 +01:00
Ha Thach
99b6e97080
Merge pull request #2979 from hathach/fix-407blackvet
...
fix build for 407blackvet
2025-02-06 12:43:46 +07:00
hathach
efd2934919
fix build for 407blackvet
2025-02-06 12:19:29 +07:00
Jannis Konrad
f7fa4d0edb
ch32v3 fs: signal bus speed
2025-02-05 17:36:38 +01:00
HiFiPhile
eca025f714
Merge pull request #2959 from ho-ho-ho/master
...
stm32: fix compilation error when not using uart
2025-01-27 20:23:52 +01:00
HiFiPhile
67f0d610e5
Merge branch 'master' into master
2025-01-27 19:27:47 +01:00
Ha Thach
0d4f945bdc
Merge pull request #2962 from hathach/zephyr-support
...
Initial Zephyr support
2025-01-26 00:24:25 +07:00
hathach
882cb1406d
update cmake.xml
2025-01-25 23:50:09 +07:00
hathach
7641060252
Merge branch 'master' into zephyr-support
2025-01-25 23:48:05 +07:00
Ha Thach
37e6f49619
Merge pull request #2964 from hathach/fix-2939
...
fix bug introduced by 2939, with correct offset check logic
2025-01-25 23:46:06 +07:00
hathach
f6f02f1893
correct offset check logic
2025-01-25 23:07:34 +07:00
hathach
8c7998b0e9
fix ci
2025-01-25 22:24:00 +07:00
hathach
6b3a5957c2
cmake remove EXAMPLE-tinyusb target as library
2025-01-25 16:08:40 +07:00
hathach
dc514c6230
use board alias for pca10056
2025-01-25 15:12:57 +07:00
hathach
1003aba690
use board alias for pca10056
2025-01-25 12:39:08 +07:00
hathach
13856af935
add -DRTOS=zephyr to ci west build
2025-01-25 12:19:24 +07:00
hathach
b53801a8ac
add cmake RTOS=zephyr (default noos) for zephyr build
2025-01-24 15:06:05 +07:00
hathach
201b9707b9
try build zephyr with ci
2025-01-24 11:54:42 +07:00
hohoho
5ca3822830
stm32: fix conditional compilation error when not using uart
2025-01-23 19:56:57 +01:00
hathach
9f45e25b1c
msc_dual_lun and cdc_msc work with zephyr on pca10056
2025-01-24 00:39:48 +07:00
hathach
0162d6ab32
kind of work with zephyr with pca10056 with cmake -DBUILD_ZEPHYR
2025-01-23 17:35:05 +07:00
hathach
31071ccf0e
kind of work with zephyr with pca10056 with cmake -DBUILD_ZEPHYR
2025-01-23 17:10:48 +07:00
HiFiPhile
597446fbea
Merge pull request #2939 from PwnVerse/patch-1
...
Fix potential out of bounds access in msc_disk.c
2025-01-22 23:48:57 +01:00
HiFiPhile
19d28a9d15
Fix also cdc_msc example.
2025-01-22 21:24:14 +01:00
HiFiPhile
bd08753583
Fix CI.
2025-01-22 21:22:32 +01:00
HiFiPhile
586d284e6b
Merge branch 'master' into patch-1
2025-01-22 21:19:19 +01:00
HiFiPhile
feb41eeceb
Merge pull request #2950 from espressif/fix/ncm_buffer_validation
...
fix(ncm): Return invalid NTBs to free list
2025-01-22 21:02:35 +01:00
hathach
6080f89f3d
- change to use CMAKE_SYSTEM_CPU to prevent CMAKE_SYSTEM_PROCESSOR conflict with zephyr
...
- change tinyusb CMakeLists.txt to function tinyusb_target_add() instead of defining tinyusb lib target
2025-01-22 22:31:08 +07:00
hathach
91214b4614
zephyr
2025-01-21 16:28:29 +07:00
hathach
c8130afe9b
bump up cmake min to 3.20
2025-01-21 16:28:26 +07:00
Ha Thach
2d7d1070fc
Merge pull request #2955 from hathach/fix-dwc2-issue
...
Work around for esp32s3 racing/timing issue with macos
2025-01-21 00:09:51 +07:00
hathach
786aa2cd1c
use IAR toke for hfp runner since normal IAR license is expired
2025-01-20 23:45:57 +07:00
hathach
5b32df5abd
add s3 undefined speed note for racing issue with reset.
...
fix dcd_event_sof() with frame number
2025-01-20 22:47:32 +07:00
hathach
2109b801d4
update esp-idf to 5.3.2
2025-01-16 11:56:19 +07:00
Tomas Rezucha
6476ff1241
fix(ncm): Return invalid NTBs to free list
...
In case we received invalid datagram, we silently fail
a the buffer was not returned to empty list -> it was lost.
If this happened more than CFG_TUD_NCM_OUT_NTB_N times, we run out of
NTBs and all OUT transfers are NACKed.
Closes https://github.com/espressif/esp-usb/issues/107
2025-01-15 19:16:58 +01:00
pschatzmann
b91d5ebb45
rp2040 correct dcd_edpt_iso_activate
2025-01-15 10:18:16 +01:00
HiFiPhile
880aae4be2
Merge pull request #2947 from espressif/fix/ncm_buffer_checks
...
fix(ncm): Use IN buffer for transmit checks
2025-01-15 10:16:16 +01:00
Dan Halbert
76fe0393ed
src/class/hid/hid_host.c: fix logging calls for epbuf
2025-01-15 14:54:49 +07:00
Ha Thach
e889c0b51e
Fix ceedling ( #2949 )
...
* fixed unit test with ceedling 1.0.0
2025-01-15 14:53:13 +07:00
Tomas Rezucha
679065c3d6
fix(ncm): Use IN buffer for transmit checks
2025-01-14 16:56:24 +01:00
Ritvik
19b6baa455
Fix potential out of bounds access in msc_disk.c
2025-01-09 15:40:21 -05:00
Ha Thach
2495563600
Merge pull request #2917 from hathach/board-doc
...
update docs, embed metadata to family.c and board.h
2024-12-27 21:24:36 +07:00
hathach
de38e53271
update docs, remove uses.rst, structure.rst. Refactor docs, use README.rst for docs index.rst
2024-12-27 17:48:45 +07:00
hathach
29f226c2fb
docs index.rst pointed to README.rst
2024-12-27 15:27:04 +07:00
hathach
824793a428
move mcu supported to README.rst, separated supported boards to boards.rst
2024-12-27 11:34:35 +07:00
hathach
6a36c74b10
embed metadata to family.c and board.h to generate supported boards doc
2024-12-27 09:11:09 +07:00
Reimu NotMoe
655092d568
dcd_pic: check USBBUSY bit on PIC32s
2024-12-27 04:17:26 +08:00
Reimu NotMoe
a4169114ec
dcd_pic: let the user manage shared GPIO/VBUS pin
2024-12-27 01:16:15 +08:00
Reimu NotMoe
6e11406831
dcd_pic: handle EP0 timeout/stall correctly
2024-12-27 01:16:15 +08:00
Reimu NotMoe
0192b2a9b0
dcd_pic: implement dcd_deinit()
2024-12-27 00:59:45 +08:00
Reimu NotMoe
f409472998
dcd_pic: handle remote wakeup more correctly
2024-12-27 00:57:22 +08:00
Reimu NotMoe
8907a817a2
dcd_pic: handle bus resume correctly
2024-12-27 00:50:32 +08:00
Reimu NotMoe
99e6b32a7d
dcd_pic: change license header and credit people accordingly
2024-12-27 00:36:42 +08:00
Reimu NotMoe
8022477031
dcd_pic: add readme
2024-12-27 00:36:31 +08:00
Ha Thach
86ad6e56c1
Merge pull request #2913 from hathach/release-0.18.0
...
update doc, bump up release 0.18.0
2024-12-25 12:45:09 +07:00
hathach
ab9472f584
update doc, bump up release 0.18.0
...
revert OPT_MCU_RAXXX value back to 1403
2024-12-25 12:23:56 +07:00
Jay
5c4e4b1bc2
modified invalid marked unit exponent.
2024-12-23 22:26:08 +09:00
Jay
eb1c2b83ef
trimed trailing whitespaces.
2024-12-23 22:19:35 +09:00
Jay
b029c94035
Modified example app.
2024-12-23 22:15:01 +09:00
Jay
7e59b595f4
Update hid_device.h
2024-12-23 22:09:59 +09:00
Jay
15b1623aa3
add hid stylus pen device.
...
this works with android, for bypassing that absmouse does not support android.
note that, to hide cursor on android for every touch signal, find cursor option in android settings menu.
references:
1. https://stackoverflow.com/questions/28536602/hid-digitizer-descriptor-doesnt-perform-well-with-landscape-orientation
2. https://github.com/jonathanedgecombe/absmouse/blob/master/src/AbsMouse.cpp
2024-12-23 22:03:37 +09:00
Ha Thach
7c1afa837a
Merge pull request #2865 from HiFiPhile/rt1170
...
RT1170 enhancements
2024-12-18 16:07:21 +07:00
hathach
22a6777c2d
enable CFG_TUD/THU_MEM_DCACHE_ENABLE for imxrt with M7 by default
2024-12-17 20:53:50 +07:00
hathach
a39e30db92
Merge branch 'refs/heads/master' into fork/HiFiPhile/rt1170
2024-12-17 11:16:27 +07:00
Ha Thach
b1eae1e5e4
Merge pull request #2906 from hathach/add-ra8m1
...
Add ra8m1_ek
2024-12-17 11:14:57 +07:00
hathach
f74ee9c4ed
change rx url
2024-12-17 10:54:03 +07:00
hathach
73ec14d926
install libc++ for clang build fuzzer
2024-12-17 00:35:05 +07:00
hathach
7e207e4f4a
fix warning due to bsp_rom_registers.c
2024-12-16 23:48:44 +07:00
hathach
656772fc9d
make sure g_bsp_rom_registers is not dropped by linker in cmake build.
...
always reserve 0x100 for option setting in linker to prevent possible bricked mcu
2024-12-16 22:03:06 +07:00
Ha Thach
8eeddaab36
Merge pull request #2897 from shdeb/hid_pid_defs
...
Adding HID Usage Table Physical Input Device Page (0x0F)
2024-12-13 18:29:53 +07:00
hathach
380bfc0a63
fix portenta build, added core-m85.cmake/mk
2024-12-13 18:16:19 +07:00
hathach
ad0ac6780d
change OPT_MCU_RAXXX, fix missing prototype warnings.
2024-12-13 17:33:21 +07:00
hathach
0785daecc1
update build for ra8m1: usbfs work, but usbhs not working just yet. Probably missing configuration or clock setup
2024-12-13 17:28:45 +07:00
hathach
c79890c359
ra8m1_ek led and button works
2024-12-13 12:50:51 +07:00
hathach
4b39ecc519
update make build for ra
2024-12-13 08:53:54 +07:00
hathach
ec2f2f3523
rasc for portenta_c33
2024-12-12 23:50:50 +07:00
hathach
4d1f945096
rasc ra2a1_ek, but usb does not seem to work. Note fsp.ld need extra 0x100 byte for ROM registers to work.
2024-12-12 23:31:16 +07:00
hathach
ec1c8b99e2
rasc for ra4m1_ek
2024-12-12 16:30:09 +07:00
hathach
f294400a11
rasc for ra4m3 ek
2024-12-12 16:21:47 +07:00
hathach
8f2b1bc7b9
used pin generated by rasc
2024-12-12 16:07:30 +07:00
hathach
69dd473a4c
more migrate to ra smart configurator
2024-12-12 13:17:15 +07:00
hathach
aa1bab769a
limit parallel for circleci
2024-12-11 16:41:11 +07:00
hathach
91799b0df5
Merge branch 'master' into fork/HiFiPhile/rt1170
2024-12-11 16:20:02 +07:00
Ha Thach
7c7b30f0ae
Merge pull request #2902 from hathach/skip-iar-on-fork
...
skip iar build with forked pr
2024-12-11 16:19:22 +07:00
hathach
62f8aac382
skip iar build with forked pr
2024-12-11 16:03:21 +07:00
Ha Thach
f0dd198462
Merge pull request #2901 from hathach/fix-dwc2-epcount
...
fix correct DWC2_EP_COUNT
2024-12-11 15:56:35 +07:00
hathach
29fa07d2ad
Merge branch 'master' into fork/HiFiPhile/rt1170
2024-12-11 15:10:12 +07:00
hathach
d502a0c481
fix correct DWC2_EP_COUNT
2024-12-11 15:02:02 +07:00
hathach
b5e84d26c2
change ra bsp to match fsp generated directory
2024-12-10 22:17:18 +07:00
Ha Thach
cb22301f91
Merge pull request #2898 from hathach/update-h5-bsp
...
correct clock setting for h563 nucleo
2024-12-06 16:36:31 +07:00
Ha Thach
ed4b1a9b68
Merge pull request #2656 from lijunru-hub/feat/uvc_support_frame_based
...
feat(uvc): support format frame based
2024-12-06 16:25:32 +07:00
hathach
6cc2c98daf
correct clock setting for h563 nucleo
2024-12-06 16:12:19 +07:00
shdeb
3f335df508
Adding HID Usage Table Physical Input Device Page (0x0F)
2024-12-06 11:43:54 +05:30
Ha Thach
310b8657f0
try to run arm-iar with circleci with new token ( #2890 )
...
* try to run arm-iar with circleci with new token
* limit iar ci parallel build to 4 for medium+ and 6 for large
* add hil-hfp to compile and test with IAR
2024-12-05 18:01:16 +07:00
Ha Thach
eabf68bd91
Merge pull request #2895 from tannewt/p4_fixes
...
Disable DWC HCD interrupt with MAX3421
2024-12-03 14:25:24 +07:00
Scott Shawcroft
3653c23240
Disable DWC HCD interrupt with MAX3421 enabled
...
hcd_int_handler isn't found otherwise.
2024-12-02 12:35:32 -08:00
HiFiPhile
df91c12ab2
Reformat audio class.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2024-11-30 23:31:28 +01:00
HiFiPhile
0d9a24c416
Fix HCD build.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2024-11-30 23:18:22 +01:00
HiFiPhile
f934224351
Fix cmake options.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2024-11-30 22:26:33 +01:00
HiFiPhile
0bca377d52
Fix typo.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2024-11-30 21:57:47 +01:00
HiFiPhile
0074ed7c67
Add bin & hex output to cmake targets.
2024-11-30 21:50:50 +01:00
HiFiPhile
ae4373d875
Update .gitignore
2024-11-30 21:49:54 +01:00
HiFiPhile
f2ed60e9fc
Update audio class with dcache support.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2024-11-30 21:49:33 +01:00
HiFiPhile
3351c366ab
Restore DCache clean/invalidate.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2024-11-30 20:48:09 +01:00
HiFiPhile
c41d9db3b1
Merge branch 'master' into rt1170
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2024-11-30 18:05:04 +01:00
HiFiPhile
486e14ea9b
Fix CI.
2024-11-30 18:03:16 +01:00
Ha Thach
2179fb1bd9
Merge pull request #2891 from roma-jam/fix/dcd_dwc2_counters
...
fix(dcd_dwc2): Fix EP IN counters assignment and usage
2024-11-29 14:07:30 +07:00
Ha Thach
444277f4a2
Merge pull request #2892 from roma-jam/fix/usbd_control_debug_buffer_name
...
refactor(usbd_control): Updated the buffer name for deeper debug
2024-11-29 11:22:29 +07:00
Roman Leonov
ecc65a86c8
refactor(usbd_control): Updated the buffer name for deeper debug
2024-11-28 13:16:06 +01:00
Roman Leonov
239443c197
fix(dcd_dwc2): Correct usage of dwc2_controller
2024-11-28 13:11:54 +01:00
Roman Leonov
741fdaaee7
fix(dcd_dwc2): Reset allocated_epin_count on bus reset and close all ep
2024-11-28 13:01:07 +01:00
Ha Thach
6b36df3e39
Merge pull request #2829 from HiFiPhile/lwip_fix
...
net_lwip_webserver example fix and improvement
2024-11-28 16:23:41 +07:00
Ha Thach
c6dccffa2d
Merge pull request #2847 from pschatzmann/rp2040-iso
...
Rp2040 - ISO API to make Audio work / Merge to master
2024-11-28 16:13:20 +07:00
hathach
79373afaaf
Merge branch 'master' into fork/HiFiPhile/lwip_fix
2024-11-28 16:11:30 +07:00
hathach
7f61a5a43b
made change per reviews, remove dcd_edpt_close(), rename and move thing around
2024-11-28 15:56:47 +07:00
Ha Thach
3142927114
Merge pull request #2852 from GuavTek/recover_zero_length_desc
...
USBH: Recover from unexpected descriptor size
2024-11-28 11:03:17 +07:00
hathach
c514a8c879
Merge branch 'master' into fork/pschatzmann/rp2040-iso
2024-11-28 11:02:23 +07:00
hathach
3cacb01459
Merge branch 'refs/heads/master' into fork/GuavTek/recover_zero_length_desc
2024-11-28 10:36:17 +07:00
GuavTek
4212db1b83
Move desc_len sanity checks to start of loops
2024-11-27 22:19:42 +01:00
Ha Thach
5bb90efd5f
Merge pull request #2848 from DavidEGrayson/pr_stm32c0
...
Add support for the STM32C0 and the NUCLEO-C071RB
2024-11-27 23:22:10 +07:00
hathach
f090b64227
enable ci for stm32c0, fix build issue with video example and clang
2024-11-27 23:00:49 +07:00
David (Pololu)
568c785da1
Add support for the STM32C0 and the NUCLEO-C071RB.
2024-11-27 22:28:32 +07:00
Ha Thach
dbc2c8d972
Fix missing protoype warning, change TUD_EPBUF_TYPE_DEF order ( #2889 )
...
* change TUD_EPBUF_TYPE_DEF order
* add and fix -Wmissing-prototypes warnings for cmake (skip make)
2024-11-27 18:28:12 +07:00
Ha Thach
2732aff7dd
Merge pull request #2888 from hathach/esp32p4-host-dma
...
Esp32p4 host dma
2024-11-27 12:52:56 +07:00
hathach
ae7cdcd070
fix typo
2024-11-27 12:18:54 +07:00
hathach
d9ef3cd1b3
default CFG_TUH_DWC2_DMA_ENABLE to 0
2024-11-27 11:54:11 +07:00
hathach
9e4b855e53
minor clean up
2024-11-27 11:35:21 +07:00
hathach
453d69517b
fix multiple flag on compiling
2024-11-27 11:10:06 +07:00
hathach
63771086d9
enable dwc2 dma for hil test for esp32s3/p4 and stm32
2024-11-27 00:22:56 +07:00
hathach
123f1affb7
update device_info example to work with p4 dcache
2024-11-27 00:01:37 +07:00
hathach
67e92e6688
add TUH_EPBUF_DEF for cdc host
2024-11-26 22:07:28 +07:00
hathach
f7efcf3c47
msc host, use usbh_get_enum_buf() for set_config() process
2024-11-26 18:02:59 +07:00
hathach
e9a3f88894
add buffer note for host msc api
2024-11-26 17:28:27 +07:00
hathach
d9f3e7dd25
add TUH_EPBUF_DEF for hid host
2024-11-26 16:32:19 +07:00
hathach
a5f9947a20
msc host work ok with p4 dma
2024-11-26 13:38:03 +07:00
hathach
be25aa31f6
hcd dwc2 add dcache support, usbh correctly use cache line size with TUH_EPBUF_DEF
2024-11-26 10:20:38 +07:00
Ha Thach
62f0e87bf1
Merge pull request #2887 from hathach/change-dcd_dcache_return-to-bool
...
change dcd_dcache_*() API return type from void to bool
2024-11-25 20:09:21 +07:00
hathach
833eb7d22d
change dcd_dcache_*() API return type from void to bool
2024-11-25 19:11:19 +07:00
Ha Thach
66741e35c2
Merge pull request #2884 from hathach/esp32p4-dma
...
More Esp32p4 dma with cache sync
2024-11-25 18:07:39 +07:00
hathach
c09eedaf24
try to fix circleci with kinetis
2024-11-25 17:45:54 +07:00
hathach
07d47ba487
fix ncm incorrect length for notify connection
2024-11-22 20:21:12 +07:00
hathach
5c18a32aaa
add TUD_EPBUF_DEF for ecm rndis, also separate notify and control buffer, use edpt_claim() to prevent race condition
2024-11-22 20:09:29 +07:00
hathach
1eb72af433
TUD_EPBUF_TYPE_DEF video_device.c
2024-11-22 18:33:48 +07:00
hathach
7831af3ccf
update epnotif endpoint for ncm_device.c
2024-11-22 16:46:26 +07:00
hathach
8a5c118a66
TUD_EPBUF_TYPE_DEF usbtmc_device.c and vendor_device.c
2024-11-22 16:22:10 +07:00
hathach
1533e693ee
TUD_EPBUF_TYPE_DEF ncm_device
2024-11-22 15:45:08 +07:00
hathach
090964cd1b
apply TUD_EPBUF_DEF for device: bth, dfu, hid, msc
2024-11-22 12:25:37 +07:00
hathach
f148670753
msc_device.c declare and separate epbuf from interface struct, make cbw and csw as normal variable. Also reformat code
2024-11-22 11:22:41 +07:00
hathach
f252ab4364
bump up gcc to 13.2
2024-11-21 23:01:47 +07:00
hathach
01df8c36de
fix ci
2024-11-21 22:03:52 +07:00
hathach
85e54b0fc3
use TUD_EPBUF_DEF to declare buffer memory for midi
2024-11-21 19:36:15 +07:00
hathach
c370c70bbe
fix build with midi_test_freertos
2024-11-21 18:44:17 +07:00
hathach
34346d61f0
missing host/cdc_msc_hid_freertos
2024-11-21 18:08:52 +07:00
hathach
dbdc5a239c
- move freertos_hooks to board.c
...
- add device/midi_test_freertos example
- update bth/dfu/midi device for cache line size
2024-11-21 17:49:38 +07:00
hathach
5d77faa835
change pico-sdk checkout branch to master
2024-11-21 10:40:58 +07:00
hathach
fa523a5682
make sure usb buffer occupies whole cache line when DCACHE is enabled for msc,cdc,hid
...
HIL enable device DMA for p4
2024-11-21 10:22:09 +07:00
Ha Thach
2571889061
Merge pull request #2883 from hathach/feature/esp32p4_dma_cache_syncronization
...
[DCD_DWC2][ESP32P4][HS] Added cache synchronization (cont)
2024-11-20 23:48:17 +07:00
hathach
c61b55b191
dcd wrap data to dcd_data_t, add padding for setup_packet to match cache line size
2024-11-20 22:04:55 +07:00
hathach
b3b8bd88cb
add CFG_TUD_MEM_DCACHE_ENABLE, CFG_TUD_MEM_DCACHE_LINE_SIZE option
2024-11-20 21:30:29 +07:00
hathach
4da5de707b
have p4 dma somewhat working but having issue with buffer that does not occupy the whole cache line
2024-11-20 20:38:20 +07:00
Roman Leonov
43a45f29cd
feature(dcd_dwc2): Added cache synchronization
2024-11-20 20:35:00 +07:00
Roman Leonov
b8d31a59ee
feature(dcd_dwc2): Added cache synchronization
2024-11-20 13:10:23 +01:00
Ha Thach
9e674d4fae
Merge pull request #2881 from hathach/enhance-dwc2-dcd
2024-11-19 05:08:07 +07:00
hathach
3fe7e612c8
remove commented code
2024-11-18 23:38:25 +07:00
hathach
ac9bc01132
add CFG_TUD_DWC2_SLAVE_ENABLE = 1 as default
2024-11-18 23:15:17 +07:00
hathach
6d4a60d8ac
clean up
2024-11-18 23:07:05 +07:00
hathach
d37707d6dd
move handle ep slave/dma wihtin compiler macro
2024-11-18 23:02:17 +07:00
hathach
dab600bea2
merge back and improve edpt_schedule_packets
2024-11-18 17:51:56 +07:00
Ha Thach
b3efa8eb6a
Merge pull request #2871 from ebs-universe/master
2024-11-18 15:48:31 +07:00
Ha Thach
fee5ee6f0a
Merge pull request #2866 from HiFiPhile/uac_fix
...
Fix 2 UAC issue
2024-11-18 13:02:23 +07:00
hathach
a2ab783db7
seperate handle_epin_dma/slave
2024-11-18 12:39:00 +07:00
hathach
db7670a3bc
separate handle out dma and slave
...
separate edpt_schedule_packets into epout/epin xfer
2024-11-18 11:35:46 +07:00
Chintalagiri Shashank
c291b831e8
Make HS USB default for STM32H7RS
2024-11-16 12:32:26 +05:30
Chintalagiri Shashank
a780071d20
Add support for STM32H7RSxx
2024-11-16 12:32:26 +05:30
hathach
a68c53fb8e
clean up, add typdef for dwc2 type for device
2024-11-14 17:34:14 +07:00
hathach
daef846aa7
rename CFG_TUD_DWC2_DMA to CFG_TUD_DWC2_DMA_ENABLE
2024-11-14 13:26:11 +07:00
Ha Thach
0569188aed
Merge pull request #2869 from subsonicpulse/master
...
Fix Usage of Bootsel Button for Pico 2
2024-11-14 12:46:51 +07:00
hathach
394045f596
Merge branch 'master' into fork/subsonicpulse/master
2024-11-14 10:49:28 +07:00
Ha Thach
7e1c91fac2
Merge pull request #2863 from HiFiPhile/warning
...
Fix _rhport_role warning
2024-11-14 10:46:52 +07:00
Ha Thach
0af07f1cff
Merge branch 'master' into warning
2024-11-14 10:25:52 +07:00
Ha Thach
6f11f99f98
Merge pull request #2875 from hathach/hil-dwc2
2024-11-13 20:02:01 +07:00
hathach
401a704804
clean up
2024-11-13 19:32:57 +07:00
hathach
98bc480f73
retry test up to 2 times, somehow open serial failed randomly with rp2040
2024-11-13 18:23:58 +07:00
hathach
202aaa49ad
change test order (no cdc or msc back to back).
2024-11-13 17:34:22 +07:00
hathach
3ee3658dad
skip max3421e metro m4 for now, due to cdc output too fast.
2024-11-13 17:01:54 +07:00
hathach
9ff02daa56
improve hil for dual cdc, close cdc once done
2024-11-13 16:20:41 +07:00
hathach
6776c7171e
fix hil set matrix
2024-11-13 15:06:39 +07:00
hathach
42ead3a8e0
hil cleanup flahser
2024-11-13 13:37:29 +07:00
hathach
aeae2966a2
hil add stm32f723disco, add test flags for device/host/dual
2024-11-13 13:08:30 +07:00
hathach
839ec17292
fix example build
2024-11-12 22:03:13 +07:00
hathach
e391e33492
update host/device_info to build with freertos for espressif board. Add hil test for host/device_info
2024-11-12 19:00:00 +07:00
hathach
3a89442dba
use arm arch to detect rp2040
2024-11-11 21:55:30 +07:00
hathach
65e741937a
fix build filter for esp32
2024-11-11 21:40:03 +07:00
hathach
3c564fd947
try adding host test for p4
2024-11-11 18:40:31 +07:00
hathach
d8970506a6
hil replace f407disco by h743nucleo
2024-11-11 17:33:02 +07:00
hathach
57c8c223e5
correctly test dwc2 dma device for s3, disable for p4 (cache issue) and f407 fs (slave only)
2024-11-11 16:42:08 +07:00
hathach
13f78e2e77
add esp32p4 to hil
2024-11-11 16:07:33 +07:00
Ha Thach
a8903d3152
Merge pull request #2854 from roma-jam/fix/esp32p4_device
2024-11-10 15:25:52 +07:00
Ha Thach
fde947b124
fix typo
2024-11-10 12:55:13 +07:00
Ha Thach
449753ae69
Merge branch 'master' into fix/esp32p4_device
2024-11-10 12:40:52 +07:00
Ha Thach
9d86ca1777
Merge pull request #2870 from hathach/hcd-dwc2
...
Implement Host Driver support for synopsys dwc2
2024-11-09 00:10:32 +07:00
hathach
3831786ede
minor clean up
2024-11-08 22:53:28 +07:00
hathach
c8d104fb47
fix warnings
2024-11-08 21:55:23 +07:00
hathach
5d00488907
get hcd work esp32p4 but only in slave mode. In DMA channel's HCDMA is increased but data transfer over USB is not correct.
2024-11-08 17:23:43 +07:00
Roman Leonov
f5c5aaf017
fix(tusb.h): Fixed backward comatibility for port selection
2024-11-07 13:28:55 +01:00
subsonicpulse
4f11243d30
Merge pull request #1 from subsonicpulse/subsonicpulse-patch-fix-usage-bootsel-button-pico2
...
Fix Usage of Bootsel Button for Pico 2
2024-11-07 12:19:38 +01:00
subsonicpulse
8174ab0640
Fix Usage of Bootsel Button for Pico 2
...
see code from
https://github.com/raspberrypi/pico-examples/blob/master/picoboard/button/button.c
2024-11-07 12:16:42 +01:00
hathach
ab8160a29b
hcd work with esp32p4 in slave mode but have issue with DMA mode. In slave it enumerate device but has issue with msc bulk in
2024-11-07 16:37:33 +07:00
hathach
48b32f5d1e
enable host dwc2 dma by default
2024-11-07 15:18:09 +07:00
hathach
9920ebff4a
update bsp for h7 to support host mode
2024-11-07 15:04:19 +07:00
hathach
4baeeeb564
enable stm32f4 host
2024-11-07 09:49:04 +07:00
hathach
772edf879b
fix iar build
2024-11-06 22:13:05 +07:00
hathach
e5c26924ed
update bsp for f7
2024-11-06 21:46:18 +07:00
hathach
fe79a93594
implement split for slave, got mouse working
2024-11-06 12:09:32 +07:00
hathach
fbc193647a
split interrupt work with fs mouse
2024-11-05 16:26:56 +07:00
hathach
372db1e19a
implement split transaction, got control working
2024-11-05 10:37:39 +07:00
hathach
5f891e020c
usbh use the new tusb_time_delay_ms_api()
...
fix duplicated device attach for some devices which cause "USBH Defer Attach until current enumeration complete"
include dev0 for tuh_edpt_abort_xfer()
2024-11-04 17:24:49 +07:00
hathach
29262f3e24
improve port0_enable(), properly configure hcfg and hfir according to port speed. Enable low power UTMI+ phy mode for ls/fs device.
2024-11-04 17:22:25 +07:00
hathach
80ad7c4e87
add tusb_time_millis_api() and default/weak tusb_time_delay_ms_api(). Which is required for host and some device without RTOS.
2024-11-04 17:20:58 +07:00
HiFiPhile
cdc98e12c1
Improve EP IN flow control.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2024-11-02 17:09:51 +01:00
HiFiPhile
ed8d2c9594
Fix align issue of _audiod_fct.alt_setting.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2024-11-02 17:07:44 +01:00
HiFiPhile
54df3b2e94
mimxrt1170_evkb: add M4 build support.
2024-11-02 15:13:08 +01:00
hathach
5d6d905cb0
got interrupt in working with slave
2024-11-02 20:20:27 +07:00
HiFiPhile
56f53a6132
Replace cache clean/invalidate by MPU config.
2024-11-02 12:50:32 +01:00
HiFiPhile
038be21e4d
Merge pull request #2713 from rgrr/ncm-fix-in-tud_network_recv_renew
...
NCM: avoid recursions in tud_network_recv_renew()
2024-11-01 22:22:31 +01:00
HiFiPhile
b648a38ae8
Fix Warning[Pe188]: enumerated type mixed with another type.
2024-11-01 19:49:00 +01:00
hathach
a0f75e5b67
fix slave in nak & ack order
2024-11-02 00:20:40 +07:00
hathach
c96e04159e
implement periodic endpoint using sof
2024-11-01 21:31:01 +07:00
hathach
4f288c030a
move buffer and buflen to hcd_endpoint_t to support periodic endpoint
2024-11-01 20:58:29 +07:00
hathach
b1182de872
clean up is_period
2024-11-01 19:04:32 +07:00
hathach
b7ff10f59c
rename and add both CFG_TUH_DWC2_SLAVE_ENABLE/CFG_TUH_DWC2_DMA_ENABLE better out dma handle
2024-11-01 17:54:10 +07:00
hathach
4c8ce9733a
dma host work well with bulk/control
2024-11-01 16:55:12 +07:00
hathach
f7f80e844c
do ping for slave out when nak/nyet
2024-10-31 23:22:49 +07:00
hathach
9afa64014c
testing hcd with dma, work well after enumeration.
2024-10-31 21:37:57 +07:00
hathach
9897a36ac4
fix f7 ci build
2024-10-31 12:11:47 +07:00
hathach
92e7ac6c23
fix bulk out and txfifo_empty(), should not rely on hcchar_bm.ep_size for OUT. msc explorer seems to work well.
2024-10-31 10:50:09 +07:00
HiFiPhile
b89fa89779
Merge pull request #2861 from bollenn/callback-doxygen-info
...
Extend callback information
2024-10-30 21:10:09 +01:00
hathach
80d8157048
handle out nak slave -> halted -> retry transfer
2024-10-30 18:11:41 +07:00
Bollen Nico
5d74fb43b3
Extend callback information
2024-10-29 20:41:13 +01:00
hathach
3c1cb0e08f
correct the fifo_available comparison (words not byte)
2024-10-29 22:48:58 +07:00
hathach
616b5770f2
fix pid token calculation, implement hcd_edpt_clear_stall(). msc explorer example read work, but write10 still wip
2024-10-29 21:54:21 +07:00
hathach
074811c251
refactor channel_send_in_token(), support IN token for multiple transaction per transfer
2024-10-29 19:08:45 +07:00
hathach
df55d587df
update handle in/out, separate allocated and xfer result to make it easier to manage. Fix channel disable/deallocated.
2024-10-29 18:23:56 +07:00
hathach
1e164412bf
split handle channel slave out/in
2024-10-29 16:06:44 +07:00
hathach
cef9bab4b5
minor clean up
2024-10-29 15:07:28 +07:00
hathach
4797c4f508
fix nptx fifo empty handling
2024-10-29 14:47:44 +07:00
hathach
c93d3eda5f
restructure, add hcd endpoint, xfer to minimize footprint for managing xfer.
2024-10-29 13:01:48 +07:00
hathach
f953b6bf92
minor rename
2024-10-28 18:40:21 +07:00
hathach
dd99da9dce
implement hcd_edpt_abort_xfer, hcd_device_close,
...
check request queue available before making usb attempt. Though there is no handling when queue is full.
device_info example work well
2024-10-28 17:45:44 +07:00
hathach
79c0a249e8
got In transfer working, able to get 1st device descriptor and set address
2024-10-25 22:56:25 +07:00
hathach
77fa2f6701
fix make build
2024-10-25 19:27:09 +07:00
hathach
07abc722b6
hcd able to send setup packet
2024-10-25 19:00:45 +07:00
hathach
063661e3a3
more progress on dwc2 hcd, initial code for edpt xfer
2024-10-25 00:20:34 +07:00
hathach
8461525d48
add tusb_time_millis(), able to reset and enable dwc2 port and get SOF active
2024-10-21 18:18:33 +07:00
hathach
f5978876d2
get hprt interrupt triggered
2024-10-21 11:43:37 +07:00
GuavTek
ebcd7067c9
Recover host enumeration from zero length descriptors
2024-10-18 18:05:58 +02:00
hathach
61b33ca926
testing hcd with f723 due to h743eval issue with mfx vbus drive.
2024-10-18 22:16:21 +07:00
hathach
42b6f30eda
add VBUS drive via MFX for h743 eval, but does not seems to work yet
2024-10-18 18:33:50 +07:00
hathach
b5a4f18879
get hpri triggered
2024-10-17 15:56:12 +07:00
hathach
8d9d3d9a2a
move gahbcfg/gintmsk with dma to dwc2 common
2024-10-16 13:19:28 +07:00
Phil Schatzmann
970a03e398
Merge branch 'hathach:master' into rp2040-iso
2024-10-16 03:52:46 +02:00
HiFiPhile
8b1e40c3e2
Merge pull request #2846 from pschatzmann/rp2040-audio-corrections
...
Rp2040 audio corrections / Merge to master
2024-10-15 23:59:36 +02:00
pschatzmann
87a35c5734
RP2040 Compile Errors
2024-10-15 23:38:16 +02:00
pschatzmann
1b17bc04f9
RP2040 New ISO API
2024-10-15 23:09:05 +02:00
HiFiPhile
047ba0a62d
Add comment to BOS descriptor.
2024-10-15 21:49:02 +02:00
hathach
4012e15075
move core init code to dwc2 common. update/correct build for esppressif
2024-10-15 17:55:24 +07:00
hathach
10a3aa3cc8
adding hcd dwc2
2024-10-15 13:03:12 +07:00
Ha Thach
933ac29d77
Merge pull request #2836 from hathach/more-tusb_init()
...
change tusb_init() to use init struct
2024-10-14 21:38:45 +07:00
hathach
e83e08343a
change dcd_init() return from void to bool
2024-10-14 19:42:22 +07:00
hathach
1f18be93db
change the tusb_rhport_init_t struct, exclude the rhport to make API more consistent
2024-10-14 18:27:52 +07:00
hathach
1587d48e89
hcd_init() take init struct
2024-10-11 17:53:39 +07:00
hathach
f3b7d7515e
fix fuzzing build
2024-10-11 16:00:51 +07:00
hathach
d997f0071e
change dcd_init() to take rhport struct
2024-10-11 15:31:49 +07:00
hathach
92602b9de3
change tusb_init(), tusb_rhport_init() to use init struct for expandability
2024-10-11 13:41:53 +07:00
Ha Thach
a4fb8354e4
Merge pull request #2834 from hathach/add-tusb_int_handler-update-tinyusb_init
...
add new tusb_int_handler(rhport, in_isr) and update tusb_init(rhport, role)
2024-10-10 17:00:40 +07:00
hathach
57aac432b5
add new tusb_int_handler(rhport, in_isr) as common irq handler
...
update tusb_init() to take rhport and role, defined as macro with optional argument for backward compatible
2024-10-10 16:28:36 +07:00
Ha Thach
ffdf81f53a
Merge pull request #2833 from hathach/update-dwc2
...
more dwc2 enhance
2024-10-10 11:34:05 +07:00
hathach
1406ad84e3
remove debug code
2024-10-10 11:05:32 +07:00
hathach
ba3a5b4374
clion files
2024-10-10 10:48:25 +07:00
hathach
c3437961b8
remove stm32f769disco since it is not reliable
2024-10-10 00:08:47 +07:00
hathach
98e94a5d6d
enhance dwc2
2024-10-10 00:08:46 +07:00
hathach
07c14f30a6
add f407disco to hil pool
2024-10-10 00:08:46 +07:00
hathach
599bb0c822
improving dwc2, merging diep and doep if possible
2024-10-10 00:08:45 +07:00
hathach
b2a98eadab
add stm32f769disco to hil pool
2024-10-10 00:08:45 +07:00
hathach
cb5e273e9a
enhance dwc2 markdown with field mapping
2024-10-10 00:08:41 +07:00
Ha Thach
65242fd11f
Merge pull request #2720 from YixingShen/master
...
fixed video_device.c _find_desc_format
2024-10-07 11:12:53 +07:00
Ha Thach
a13dbd4452
Merge pull request #2809 from shuffle2/master
...
make all python files executable and standardize interpreter
2024-10-07 11:11:54 +07:00
HiFiPhile
ad362c8ac4
Add MSOS 2.0 descriptor to auto load NCM driver on Windows.
2024-10-05 15:51:02 +02:00
Stéphane Lenclud
3d3dcb1ee9
service_traffic: Don't call pbuf_free when ethernet_input is Ok
2024-10-05 15:51:02 +02:00
Ha Thach
6bfd024137
Merge pull request #2824 from Maerdl/master
...
support stm32U0 device
2024-10-04 17:51:58 +07:00
Ha Thach
4e0d5343b4
Merge pull request #2827 from hathach/ci-dwc2-dma
...
Ci dwc2 dma
2024-10-04 17:51:34 +07:00
hathach
31c123aa32
update new json change
2024-10-04 17:38:57 +07:00
hathach
73f7ce7103
U0 does not have dwc2 controller
2024-10-04 17:26:14 +07:00
hathach
0abd6474d9
fix circleci set-matrix
2024-10-04 17:10:13 +07:00
hathach
790a107287
revert hfp dma for now, due to ci build matrix
2024-10-04 17:05:45 +07:00
hathach
7cdab1c94b
enable dma hil test with hfp.json
2024-10-04 16:33:58 +07:00
hathach
06347661de
accept and ignore -f1 option
2024-10-04 16:09:43 +07:00
hathach
072a80d088
hil test both slave and dma for dwc2 esp32s3
2024-10-04 16:02:46 +07:00
hathach
5a5dbfc8c6
fix missing json
2024-10-04 15:05:02 +07:00
hathach
1b295de9ad
add hil_ci_set_matrix.py, starting to support hil with additional build flags
2024-10-04 15:01:03 +07:00
hathach
db15f63736
Merge branch 'master' into fork/Maerdl/master
2024-10-02 18:22:06 +07:00
Haefner, Martin
3fa7da95bd
support stm32U0 device
2024-10-01 15:24:11 +02:00
Ha Thach
eda3cceab2
Merge pull request #2818 from hathach/add-esp32p4
...
Add esp32p4 OTG HS support
2024-10-01 11:15:33 +07:00
hathach
49d250be8f
Merge branch 'master' into add-esp32p4
2024-10-01 00:18:24 +07:00
Ha Thach
ad6e1ec782
Merge pull request #2820 from HiFiPhile/vendor_fix
...
Fix vendor class reset.
2024-10-01 00:17:57 +07:00
HiFiPhile
53989a99f6
Fix vendor class reset.
2024-10-01 00:03:01 +07:00
Ha Thach
254167bdbd
Merge pull request #2823 from hathach/hil-piousb-host-optional
...
HIL have dual/host_info_to_device_cdc optional for pico/pico2
2024-10-01 00:02:08 +07:00
hathach
d6c8719bcb
temporarily update hil_test.py to have dual/host_info_to_device_cdc optional for pico/pico2 since it does not seem to be stable enough
2024-09-30 23:16:53 +07:00
hathach
fa44923de1
skip some examples for mcxa15
2024-09-30 22:13:30 +07:00
hathach
4617fb5229
update build script to correctly skip non max3421 enabled for espressif boards
2024-09-30 21:53:57 +07:00
hathach
4c81d91a73
bump up idf to 5.3.1
2024-09-30 11:53:20 +07:00
hathach
87f1993304
esp32p4 use port0 as fs, port1 as highspeed
2024-09-30 11:53:19 +07:00
hathach
67e5577b42
added p4, seems to work well and enumerated
2024-09-30 11:53:18 +07:00
hathach
7e472fa3ca
try to add esp32 p4 and esp-idf v5.3 support
2024-09-30 11:53:18 +07:00
hathach
bb2d1dd0c1
update/rename ghwcfg registers
2024-09-30 11:53:17 +07:00
hathach
47233f863a
update to dwc2 register struct
2024-09-30 11:53:17 +07:00
Ha Thach
e209acb8d3
Migrate hil vm ( #2822 )
...
* migrate hil to new x64 VM instead of rpi
* re-enable hil for s3
2024-09-30 10:58:19 +07:00
Ha Thach
c8ab65fbb6
Merge pull request #2576 from HiFiPhile/dwc2_dma
...
DWC2 DMA support
2024-09-25 10:16:28 +07:00
HiFiPhile
e483c6a2ad
Add a note about data cache.
2024-09-24 21:30:16 +02:00
hathach
6a15e7875c
more rename
2024-09-24 18:12:01 +07:00
hathach
a1244381b3
add CFG_TUD_DWC2_DMA, make it compile time option
2024-09-24 17:55:15 +07:00
hathach
86b4608365
update dfifo allocation scheme to use top pointer, update document and explanation for EPInfo address and GDFIFO.
...
some function rename
update h743 linker to use SRAM1 since USB DMA cannot access DTCM ram
update xmc4500 to use uuid for testing
2024-09-24 17:38:31 +07:00
hathach
40b55170c8
skip pico2 dual test, it seems not stable
2024-09-18 20:27:34 +07:00
hathach
9bfb3e7787
Merge branch 'refs/heads/master' into fork/HiFiPhile/dwc2_dma
2024-09-18 18:01:28 +07:00
Shawn Hoffman
616532892d
make all python files executable and standardize interpreter
2024-09-17 12:17:12 -07:00
Ha Thach
f4dd176484
Merge pull request #2803 from UweBonnes/b_u585i-iot
...
Add STM32 B_5585I-IOT2A board
2024-09-16 10:48:06 +07:00
Uwe Bonnes
2c27f29f71
Add STM32 B_5585I-IOT2A board
2024-09-14 20:32:18 +02:00
Ha Thach
5217cee5de
Merge pull request #2801 from hathach/release-0.17.0
2024-09-13 23:42:53 +07:00
hathach
115b1bb71e
prepare for 0.17.0 release
2024-09-13 23:23:37 +07:00
Ha Thach
3ff128bacf
Merge pull request #2799 from hathach/add-pico2
...
add pico2 rp2350 (arm) board
2024-09-13 19:29:53 +07:00
hathach
c419b1e7c5
add pico2 rp2350 (arm) board
...
add pico2 to hil ci
2024-09-13 19:12:26 +07:00
Ha Thach
91c8700a9f
Merge pull request #2794 from hathach/fix-circleci
...
[circleci] fix build with rx by get-deps before install toolchain
2024-09-11 10:48:15 +07:00
hathach
013b4488b0
[circleci] fix build with rx by get-deps before install toolchain
2024-09-11 10:20:17 +07:00
Ha Thach
4b107a2b9e
Merge pull request #2450 from HiFiPhile/vendor_fifo
...
Allow vendor class to be used without FIFO.
2024-09-11 10:10:06 +07:00
hathach
9b4bb61cbd
ep stream init: wrap with OSAL_MUTEX_REQUIRED, only create fifo mutex if needed
2024-09-10 20:41:01 +07:00
hathach
7909a62569
fix warnings
2024-09-10 18:47:58 +07:00
hathach
dd1822ba03
reduce ep stream footprint by using is_mps512 since it only support bulk so far
2024-09-10 18:37:53 +07:00
hathach
3ab63fbc65
remove vendor ep_addr, use stream api instead
2024-09-10 18:27:22 +07:00
hathach
7373a02396
minor clean up
2024-09-10 18:13:38 +07:00
hathach
bbeae09259
update vendor device to use edpt stream which also support non-buffereed (no fifo) mode
2024-09-10 17:45:03 +07:00
hathach
cc816dc9c0
change edpt stream api to take hwid from API to reduce memory footprint
2024-09-10 17:41:20 +07:00
hathach
c0030810dd
update edpt_stream to support non-buffered (no fifo) mode
2024-09-10 16:15:51 +07:00
hathach
867f17acea
change vendor device to use edpt stream API
2024-09-10 10:44:22 +07:00
HiFiPhile
7867464694
Merge branch 'master' into dwc2_dma
2024-09-08 17:15:28 +02:00
HiFiPhile
3eea46056e
Merge pull request #2788 from dp111/cppcheck
...
make function prototypes match functions( found by cppcheck)
2024-09-04 20:06:47 +02:00
Ha Thach
55951b71ae
Merge pull request #2789 from hathach/enhance-disconect-connect-esp32
...
dwc2: for esp32 force disconnect/connect using USB_WRAP otg pad overr…
2024-09-04 21:15:40 +07:00
hathach
0bb7b992d8
dwc2: for esp32 force disconnect/connect using USB_WRAP otg pad override (DM=DP=0) in addition to dwc2's dctrl
2024-09-04 20:56:04 +07:00
dp111
6935c66309
Make function parameter definitions match function prototypes ( found with cppcheck)
2024-09-03 20:32:23 +01:00
dp111
fc07df320b
use fixed with in printf ( found by clang)
...
NB %lu is a minimum of 32 bits where as the variable use is exactly 32 bits . This can affect porting to other systems.
2024-09-03 20:28:42 +01:00
dp111
dde81f8f03
make function prototypes match definitions ( found with cppcheck)
2024-09-03 19:59:55 +01:00
dp111
8ab1e4fbd0
make function prototypes match ( found by cppcheck)
2024-09-03 19:38:34 +01:00
HiFiPhile
4349e99fb2
Merge pull request #2786 from dp111/breakinside
...
Put break inside #if
2024-09-02 13:50:59 +02:00
HiFiPhile
ee551909b2
Merge pull request #2783 from donatieng/don/bth_device-zlp
...
Bluetooth Device: Issue ZLP on ACL IN ep when transfer is multiple of endpoint max packet size
2024-09-02 13:50:44 +02:00
HiFiPhile
8eb3bd213f
Merge pull request #2765 from hinxx/usbtmc-clean
...
couple of fixes for usbtmc example
2024-09-01 18:09:36 +02:00
HiFiPhile
12f5a6edbe
Merge pull request #2781 from lurch/patch-1
...
Fix compiler warning in hid_boot_interface example
2024-09-01 18:03:32 +02:00
Ha Thach
29e025cbf5
Merge pull request #2731 from cumhuronat/master
...
Fix: Properly Handle NAK Response in MAX3421E driver
2024-08-30 18:10:15 +07:00
Donatien Garnier
cef4c466b3
Bluetooth Device: Issue ZLP on ACL IN ep when transfer is multiple of endpoint max packet size
2024-08-30 07:53:49 +00:00
Ha Thach
64e62bad0d
Merge pull request #2784 from tannewt/fix_esp32_sx_resume
...
Fix ESP32-SX resume
2024-08-30 09:50:35 +07:00
Scott Shawcroft
6890975f80
Fix ESP32-SX resume
...
The interrupt handler pipes through the resume event but the
interrupt wasn't enabled in the first place.
2024-08-29 14:04:49 -07:00
HiFiPhile
ed0d58749d
Merge pull request #2782 from rgrr/fix-dcd_nrf5x-wrong-order
...
dcd_nrf5x: fix race condition
2024-08-29 20:56:51 +02:00
Reinhard Griech
1d2c9f929d
change order, fixes #2778
2024-08-29 15:31:29 +02:00
Andrew Scheller
f73964e3e5
Fix compiler warning in hid_boot_interface example
2024-08-28 13:30:48 +01:00
Ha Thach
669f341b0b
Merge pull request #2780 from hathach/bump-pio-usb
...
bump up pio-usb to 0.6.1
2024-08-28 14:57:55 +07:00
hathach
0d542a0bdc
enable i386 arch for running rx-gcc
2024-08-28 14:44:32 +07:00
hathach
973cbd3338
enable i386 arch for running rx-gcc
2024-08-28 14:27:29 +07:00
hathach
59883237f7
enable rx-gcc for circleci
2024-08-28 13:07:52 +07:00
hathach
9985b9faf4
try to build hil in parallel
2024-08-28 13:02:53 +07:00
hathach
6fdf206f11
bump up pio-usb to 0.6.1, enable dual hil test for pico
2024-08-28 11:43:14 +07:00
hathach
72ee3b4f48
Merge branch 'master' into fork/HiFiPhile/vendor_fifo
2024-08-27 21:13:15 +07:00
Ha Thach
c46adc7ba8
Merge pull request #2779 from hathach/update-hil-max32
...
change hil max32666 to use picodebug
2024-08-27 20:47:32 +07:00
hathach
29d4c82efb
reset usb when init for max32650/66. change hil max32 to use pico (cmsis dap2), change metro m4 flasher
2024-08-27 20:24:18 +07:00
Mengsk
cefee1a743
Merge remote-tracking branch 'tinyusb/master' into vendor_fifo
2024-08-27 12:13:29 +02:00
hathach
27ddf19631
add sndfifo owner info to skip rewriting data for retrying NAKed
2024-08-26 14:27:23 +07:00
Cumhur Onat
c7851e8dcb
only check SNDBAV IRQ if there is data to send
2024-08-23 10:54:28 +07:00
Cumhur Onat
5bb2e66ce7
fix for out retry attempts with nak response
2024-08-23 10:54:28 +07:00
Ha Thach
4485bffd13
Merge pull request #2771 from hathach/hil-add-host-test
...
[HIL] add dual host_info_to_device_cdc support
2024-08-22 23:21:43 +07:00
hathach
45d06cd4ab
skip dual/host_info_to_device_cdc for pico due to a bug in pio-usb
2024-08-22 22:25:14 +07:00
hathach
ccf886ca80
add pio-usb host test to hil. fix build as well
2024-08-22 18:51:32 +07:00
hathach
0db42aac71
add hil support for dual host_info_to_cdc
...
replace itsybitsy m4 by metro m4 + max3421e
2024-08-22 18:14:14 +07:00
Ha Thach
858ad66c93
circleci tweaks ( #2770 )
...
* skip circleci build on master push
* change max32666 probe to jlink, max32625pico is not reliable enough
2024-08-22 12:37:11 +07:00
Ha Thach
6118700828
update circle ci to build make ( #2769 )
...
* update build.py script to work with circleci
* build make with circle ci
* build vm for esp only
* nrf imxrt with large resource
* nrf imxrt with large resource
* remove 2 of nrf boards
2024-08-21 19:09:37 +07:00
Ha Thach
5f519819ba
Merge pull request #2767 from hathach/minor-update
...
Minor update
2024-08-19 21:42:14 +07:00
hathach
0541598d07
mimxrt1015_evk does not work reliably in hil pool (like metro m7).
2024-08-19 21:22:59 +07:00
hathach
ea4f9ceb58
remove weak from dcd_edpt_close() for port without TUP_DCD_EDPT_ISO_ALLOC
2024-08-19 20:08:55 +07:00
hathach
215832397b
update doc, re-enable metro m7 for hil, only build make windows/macos on PR
2024-08-19 19:44:22 +07:00
hathach
088486186f
rename TUD_ENDPOINT_EXCLUSIVE_NUMBER to TUD_ENDPOINT_ONE_DIRECTION_ONLY
2024-08-19 19:05:33 +07:00
Ha Thach
ca3925a4c5
Merge pull request #2708 from BrentK-ADI/max32_port
...
Add port for Analog Devices MAX32 MCUs
2024-08-19 18:22:13 +07:00
hathach
635bdc1fce
fix ci build
2024-08-19 17:36:11 +07:00
hathach
0c9d7a2185
add hwfifo_flush()
2024-08-19 13:11:48 +07:00
hathach
8fdd8d9a7b
implement dcd_edpt_iso_alloc/dcd_edpt_iso_activate for musb. video_capture example with iso kind of work but not smoothly. audio example does not seems to work as expected
2024-08-19 12:04:24 +07:00
hathach
e345380723
add flash_openocd_adi() for use with max32
...
add feather max32666 to the hil pool
2024-08-18 17:15:07 +07:00
hathach
76eb2f5066
more musb update
2024-08-18 16:34:58 +07:00
hathach
fe7ffc8eda
rename register bit definition to prevent conflict
2024-08-17 19:08:48 +07:00
hathach
123830c1f0
remove unused register def
2024-08-17 19:06:19 +07:00
hathach
a6bee747b6
define and use TUD_ENDPOINT_EXCLUSIVE_NUMBER
2024-08-17 18:07:36 +07:00
hathach
993473312b
minor update
2024-08-17 17:11:54 +07:00
hathach
e9109f36ba
refactor fifo configure/setup for dynamic and static fifo
2024-08-17 16:37:27 +07:00
hathach
eaf9cc1beb
more refactor to simplify musb driver
2024-08-17 13:33:53 +07:00
dp111
c34d5e7a71
Put break inside #if #endif
2024-08-16 21:43:41 +01:00
hathach
8e3093e06f
update cmake profile
2024-08-16 08:21:20 +07:00
dp111
802713523e
Merge pull request #1 from hathach/master
...
Sync
2024-08-15 21:05:41 +01:00
hathach
33e3ea3645
remove analog PHY from musb_regs_t
...
hil: remove ch32v203 since not reliable enough
2024-08-15 23:46:33 +07:00
hathach
6152adb17f
use musb_ep_csr_t for indexed CSR, also use indexed csr for TI access as well. Merge ep0 and epn together
2024-08-15 19:39:20 +07:00
Hinko Kocevar
06e52e4fb2
couple of fixes for usbtmc example
2024-08-15 14:33:02 +02:00
hathach
7d8d364332
update musb fifo usage
2024-08-15 16:52:50 +07:00
hathach
e339702a2a
adding universal register structs for musb
2024-08-15 16:41:20 +07:00
hathach
a9df933e0d
add TUP_USBIP_MUSB macro, minor rename
2024-08-15 15:24:04 +07:00
hathach
1402e6ec0d
add flash-uniflash support for ti tm4c
2024-08-15 14:36:31 +07:00
hathach
0be427bae9
use max32 cmsis, fix NVIC_GetEnableIRQ() not defined when using with CMISIS < 5
2024-08-14 23:59:35 +07:00
hathach
f6b96f7ea9
fix spelling, add max32 to ci with arm-gcc build
2024-08-14 22:56:59 +07:00
hathach
761399b5e0
Merge branch 'refs/heads/master' into fork/BrentK-ADI/max32_port
2024-08-14 06:33:42 +07:00
Ha Thach
b8d3c0c4a8
Circi dynamic config ( #2763 )
...
Circleci
* build cmake armgcc and arm clang on circleci
* use docker medium+
2024-08-13 23:57:01 +07:00
Ha Thach
9d8052b5da
Merge pull request #2762 from hathach/fsdev_iso_fix
...
Fsdev iso fix
2024-08-13 16:20:19 +07:00
hathach
86419df42c
use zero wait flash for nano v203
2024-08-13 16:01:51 +07:00
hathach
0f732a2f8b
remove metro m7 for now
2024-08-13 14:50:54 +07:00
hathach
5f8599f6d4
metro m7 has issue with cdc_msc example randomly on hil test. Exclude it for now
2024-08-13 14:35:42 +07:00
hathach
5254065976
change pio-usb back to upstreaam
2024-08-13 13:51:28 +07:00
hathach
f23170786a
increase pyserial timeout
2024-08-13 13:50:19 +07:00
hathach
61725a5263
fix concurrent mass storage test conflict, use pyfatfs to access disk dev by usb id instead of mounted in /media/
2024-08-13 13:16:46 +07:00
hathach
45f50ebaa8
increase enum timeout
2024-08-13 11:04:53 +07:00
hathach
ad411b6c25
minor update to cmake profile
2024-08-13 10:55:17 +07:00
HiFiPhile
96c5c72e97
Fix double buffer not disabled for smaller devices.
2024-08-13 10:19:08 +07:00
HiFiPhile
f565267daf
Fix stm32l0 clock init.
2024-08-13 10:19:07 +07:00
HiFiPhile
549f20d179
Fix buf_id read for ISO transfer.
2024-08-13 10:19:07 +07:00
HiFiPhile
5666aa196f
Fix tusb_dir_t warning.
2024-08-13 10:19:06 +07:00
Ha Thach
ac1fd32666
Merge pull request #2761 from hathach/hil-readd-v203
...
readd v203 to hil pool
2024-08-12 21:26:10 +07:00
hathach
a621c4b6fc
fix more race with ch32v203 and setup when queuing zlp.
...
improve hil test failed output
2024-08-12 16:39:25 +07:00
hathach
7a9ef9e7bd
readd v203 to hil pool
2024-08-11 11:10:15 +07:00
Ha Thach
9ee7d1b77e
Merge pull request #2760 from hathach/update-pio-usb
...
change pio to fix rp2040 build
2024-08-11 10:19:52 +07:00
hathach
8b88749223
skip ch32v203 for hil test
2024-08-11 09:51:14 +07:00
hathach
2871bb0da6
fix spi_set_format() -Wnull-dereference when compiling with -Os
2024-08-11 00:51:51 +07:00
hathach
c07928e1b3
fix build with rp2040 PICO_DEFAULT_SPI rename
2024-08-10 22:07:10 +07:00
HiFiPhile
18b5affce9
Merge pull request #2759 from hjalleboii/master
...
Marked the keycode parameter of the keyboard_report functions as const since the functions don't modifies the value
2024-08-10 11:00:33 +02:00
hathach
e8f42df97a
change pio to fix rp2040 build
2024-08-10 09:47:34 +07:00
Hjalmar
b786d6f4e6
Marked the keycode parameter of the keyboard_report functions as const since the functions don't modifies the value
2024-08-09 21:08:32 +02:00
Ha Thach
ea64dd4999
Update ci toolchain ( #2758 )
...
* move toolchain url to its setup action
2024-08-09 22:45:35 +07:00
Ha Thach
643a26ca8d
Merge pull request #2756
...
Fix ESPs without device support
2024-08-09 10:16:22 +07:00
Scott Shawcroft
00eb0144cb
Fix ESPs without device support
...
The newer tusb_option.h assumes that there is a number of device
endpoints to check against.
2024-08-08 12:55:30 -07:00
Ha Thach
dcd0f39b53
Merge pull request #2750 from hathach/fix-ch32v203-setup
...
rework fsdev driver, fix ch32v203 race condition and stability issue
2024-08-08 22:41:26 +07:00
hathach
e7e6fe7cd5
add riscv url
2024-08-08 22:28:13 +07:00
hathach
c3f3465a40
remove hiL build-esp, add riscv support
2024-08-08 22:04:54 +07:00
hathach
0d44977b54
add ch32v203 nano to hil pool
2024-08-08 21:38:49 +07:00
hathach
1ea38ebe13
refactor read/write pma from/to fifo
2024-08-08 15:43:11 +07:00
hathach
bd64625df2
revert the use of EP_KIND. ch32v203 seems to unconditionally accept ZLP on EP0 OUT, which can incorrectly use queued_len of previous transfer. So reset total_len and queued_len to 0.
2024-08-08 12:40:11 +07:00
hathach
57c26fdc72
use EP_KIND for STATUS OUT to fix OUT packet is auto accepted after SETUP without usbd consent
2024-08-08 00:27:51 +07:00
hathach
3a22163067
fix v203 race condition between rx bufsize and RX_STAT which cause PMAOVR
...
fix set_rx_bufsize with invalid value for zero length packet
2024-08-07 15:16:22 +07:00
hathach
0860cd3b5e
minor rename
2024-08-06 22:20:24 +07:00
hathach
d680424f62
improve dcd_int_handler()
...
- skip DIR and use CTR TX/RX to handle complete transfer
- clear CTR first, except for setup which we need to get data first
- separate handle_ctr_setup()
2024-08-06 22:18:25 +07:00
HiFiPhile
a7d1888328
Merge pull request #2328 from HiFiPhile/rx_fb
...
UAC2: Implement feedback by fifo counting.
2024-08-05 17:07:47 +02:00
hathach
30e0ef221a
fix running hil in parallel
2024-08-05 19:23:35 +07:00
hathach
315dae6a85
finally fixed fsdev setup handling, which cause race condition for ch32v203
2024-08-05 17:43:27 +07:00
hathach
91e5a066c5
more fsdev clean up
...
hil test boards in parallel
2024-08-02 17:12:28 +07:00
HiFiPhile
95cb319bde
Merge branch 'master' into vendor_fifo
2024-08-02 11:52:35 +02:00
hathach
e9a5af3512
add stm32f103ze_iar
2024-08-02 16:06:00 +07:00
Graham Sanderson
4232642899
Merge pull request #2743 from hathach/header_fix
...
rp2040: add clocks.h as set_sys_clock_khz is moving there from stdlib.h
2024-08-01 19:26:24 -05:00
hathach
e180d915c6
read/write packet enhancement, merge 16-bit and 32-bit together
2024-08-01 23:08:12 +07:00
hathach
af8609e96e
fsdev improve ep bit manipulation
2024-08-01 18:36:28 +07:00
Ha Thach
271e2a30e1
Merge pull request #2749 from hathach/hil-change
...
HIL test hardware changes
2024-08-01 16:12:57 +07:00
hathach
3f4f6c0ec7
increase hil timeout, reduce fuzzing from 600 to 400 seconds
2024-08-01 15:40:47 +07:00
hathach
f5d8796a6c
add f072 (fsdev 1k) to hil test
2024-08-01 15:38:59 +07:00
hathach
46fd822990
increase freerto min task stack for some stm32
2024-08-01 14:24:23 +07:00
hathach
8407252fa3
fix hil ci
2024-08-01 14:13:03 +07:00
hathach
4e114b7bfa
update hil ci
2024-08-01 14:01:35 +07:00
hathach
5fa03dd906
add stm32g0 (fsdev 2k) to hil pool
...
remove esp32s3 since cp210x cause usb bus issue in the long run
2024-08-01 13:00:38 +07:00
Ha Thach
c60934eedc
Merge pull request #2739 from hathach/enhance-fsdev
...
Enhance fsdev
2024-07-31 21:42:29 +07:00
hathach
332f75cd44
simplify read/write 16-bit packet
2024-07-31 20:53:42 +07:00
hathach
7d9b399466
fix ep type bulk typo
2024-07-31 18:28:17 +07:00
hathach
7954d9cb4c
rename to fsdev_type.h, use FSDDEV_REG instead of USB
2024-07-31 18:15:22 +07:00
hathach
26b0df2c26
refactor xfer_ctl_ptr() to take epnum/dir to reduce computation
2024-07-31 17:24:41 +07:00
hathach
ce0fdc5609
refactor dcd_ep_ctr_handler
2024-07-31 17:10:43 +07:00
hathach
ee831d27ac
rename to ep_read/write(), drop USBx argument
2024-07-31 16:56:42 +07:00
hathach
3156f1c4a7
remove all pcd ep read, modify write
2024-07-31 16:52:00 +07:00
hathach
8139840d7a
fix ep_add_dtog()
2024-07-31 15:32:37 +07:00
hathach
76cc721e8f
clean up dcd_edpt_stall/clear_statll
2024-07-31 12:45:27 +07:00
hathach
e60efec6b7
improve using ep_add_status/ep_add_dtog
2024-07-31 12:09:50 +07:00
hathach
126778298e
enhance dcd_ep_ctr_rx_handler()
2024-07-31 11:35:09 +07:00
hathach
0c8d41e25e
correct ep toggle bit
2024-07-31 09:46:31 +07:00
hathach
f4aaad6869
add edpt0_open(), slightly update dtog
2024-07-30 21:35:24 +07:00
hathach
1cf8e34ae5
improve set endpoint
2024-07-30 20:32:26 +07:00
hathach
b15814b2f9
move align buffer to pma_alloc()
2024-07-30 16:29:54 +07:00
hathach
749f092174
refactor btable_set_rx_bufsize()
2024-07-30 13:05:46 +07:00
hathach
6771ef35d9
more btable set/get clean up
2024-07-30 11:17:55 +07:00
graham sanderson
0ebe81f4c3
add explcit dependency
2024-07-29 12:34:25 -05:00
graham sanderson
cfb44a3892
add clocks.h as set_sys_clock_khz is moving there from stdlib.h
2024-07-29 12:29:27 -05:00
HiFiPhile
6a67bac47c
Integrate OS guessing quirk into uac2_speaker_fb example.
2024-07-28 13:25:57 +02:00
HiFiPhile
4a48544aeb
audiod_function_t clean up.
2024-07-28 12:04:25 +02:00
HiFiPhile
f48a4567a6
Merge branch 'master' of https://github.com/hathach/tinyusb into rx_fb
2024-07-28 11:59:52 +02:00
hathach
75d3a3be84
implement btable_set_addr/count
2024-07-26 00:02:06 +07:00
hathach
3b8f9a2b1f
refactor btable tx/rx into arr[2]
2024-07-25 23:51:20 +07:00
hathach
ef4285c00c
add flash stlink
2024-07-25 22:38:23 +07:00
Brent Kowal
5122d6d109
Combined DCD MUSB implementations
...
Combined the new MAX32 MUSB implementation with the existing (TI) implementation to provide generic code base for working the MUSB DCD peripheral.
- Added abstraction calls for FIFO setup, EP registers, Ctrl registers and interrupt setup.
- Combined TM4C and MSP432E into a single header file.
- Created musb_max32.h, and removed the MAX32 specific C implementation.
- Updated MAX32 build system to use dcd_musb.c.
- Added MAX32 conditions for cdc_dual_ports example descriptors missed during first testing.
2024-07-25 09:08:37 -04:00
hathach
02caf00772
simplify btable rx/tx count/address access
2024-07-25 19:00:59 +07:00
hathach
a5bc0430f7
fix race condition where reset event cleaar setup count
2024-07-25 16:49:01 +07:00
hathach
0eb0baed19
fsdev: remove unused _setup_packet
2024-07-25 11:53:42 +07:00
hathach
2f8078f5b5
minor changes
2024-07-24 16:59:12 +07:00
hathach
c0f38ebf8d
fsdev read/write packet use unaligned function
2024-07-23 19:53:41 +07:00
hathach
5d26f5794e
update fsdev bsp for hil testing
2024-07-23 18:06:24 +07:00
Ha Thach
cfbdc44a8d
Merge pull request #2734 from hathach/hil-change-esp32s3-baudrate
...
change hil s3 baudarte
2024-07-22 22:25:33 +07:00
hathach
ce5fe3cc19
change s3 baudrate
2024-07-22 22:05:21 +07:00
Ha Thach
f09e23e453
Merge pull request #2732 from hathach/fix-fsdev-issue
...
fix fsdev issue introduced by #1942
2024-07-22 21:28:44 +07:00
hathach
4de46fcf97
fix a bug in fsdev introduced by #1942
2024-07-22 21:07:28 +07:00
Ha Thach
e09cf36104
Merge pull request #2728 from hathach/hil-add-lpc11u377
...
[HIL] add lpc11u37 for hil test
2024-07-20 00:33:22 +07:00
hathach
66193cba05
fix build with make
2024-07-19 22:48:01 +07:00
hathach
6bb59eeb3f
add lpc11u37 for hil rpi
2024-07-19 22:33:53 +07:00
Ha Thach
e9f9d43d67
Merge pull request #2723 from liamfraser/rp2040_tweaks
...
RP2040 tweaks
2024-07-19 21:33:50 +07:00
Ha Thach
9a418317f3
Merge pull request #2694 from feaser/keil_weak_fix
...
Additional fix related to issue #1018 . Corrects the usage of TU_ATTR_WEAK for the Keil compiler
2024-07-19 21:20:55 +07:00
Ha Thach
dcf133b6ae
Merge pull request #2681
...
usbh: Add set address recovery time
2024-07-19 21:10:31 +07:00
hathach
8183433600
fix compile with tud_vendor_control_xfer_cb() and check tud_descriptor_device_cb()
2024-07-19 21:05:10 +07:00
hathach
e92acf0a91
also migrate tud_descriptor_device_qualifier_cb() / tud_descriptor_other_speed_configuration_cb()
2024-07-19 20:53:23 +07:00
Frank Voorburg
d040644b6c
Additional fix related to issue #1018 . Corrects the usage of TU_ATTR_WEAK for the Keil
...
compiler for the callback functions:
* tud_descriptor_bos_cb()
* tud_vendor_control_xfer_cb()
* tud_mount_cb()
* tud_umount_cb()
* tud_suspend_cb()
* tud_resume_cb()
Without the fix for the first two functions, the USB device won't enumerate properly, if
the device makes use of a BOS description. For example when using a Microsoft OS 2.0
platform capability descriptor to set a specific Device Interface GUID for WinUSB.
The fix for the other four functions were added, because it's probably just a matter of
time before someone runs into the same problem with those callback functions.
2024-07-19 20:43:26 +07:00
Ha Thach
c48d2eba0d
Merge pull request #2630 from HiFiPhile/dcd_race
2024-07-19 18:28:33 +07:00
hathach
6fb6602a09
- add tud_cdc_n_ready() though not used
...
- usbd now change _usbd_dev.cfg_num before calling driver's open()
2024-07-19 18:08:04 +07:00
hathach
be18af8235
revert changes to usbds configuration_reset() (deal with it in separated PR)
2024-07-19 17:10:53 +07:00
HiFiPhile
4b55af17c9
Fix STM32F7 FS port build.
2024-07-19 17:02:57 +07:00
HiFiPhile
772398f6ea
Save setup_count on bus reset.
2024-07-19 17:02:57 +07:00
HiFiPhile
a1fd43ebaf
Clear _usbd_dev prior to driver reset.
2024-07-19 17:02:56 +07:00
HiFiPhile
60b3d14d19
Check tud ready check for OUT xfer.
2024-07-19 17:02:53 +07:00
Ha Thach
ad3c49ca43
Merge pull request #2726 from hathach/hil-add-ra4m1
...
add ra4m1 ek for hil test
2024-07-19 13:06:33 +07:00
hathach
b35173b5b0
skip msc tests for ra due to existing bug
2024-07-19 12:23:04 +07:00
Ha Thach
7706e6f5d2
Merge pull request #2725
...
UAC2: Fix memclr on driver reset.
2024-07-19 12:21:36 +07:00
hathach
7e7a38b97d
update test json
2024-07-19 11:48:43 +07:00
hathach
94454684f7
add ra4m1 ek for hil test
2024-07-19 11:29:48 +07:00
HiFiPhile
ffe1d0664b
UAC2: Fix memclr on driver reset.
2024-07-18 20:02:57 +02:00
graham sanderson
31a979a6cc
fix some clang compiler warnings
2024-07-18 11:11:06 +01:00
graham sanderson
5f6152a87e
not all GCC compiler builds support --no-warn-rwx-segments; check_linker_flag is not available in all supported version of CMake, so just allow it to be passed in
2024-07-18 11:11:06 +01:00
graham sanderson
0d72f153cf
fix arguable bug caught as warning by LLVM embedded toolchain for ARM 14.0.0
2024-07-18 11:11:06 +01:00
Liam Fraser
23c9353cd8
net_lwip_webserver: allow TINYUSB_LWIP_PATH to be defined by parent CMake file
2024-07-18 11:10:55 +01:00
Ha Thach
a615b0a003
Merge pull request #2722 from hathach/fix-hil-boardtest
2024-07-18 14:10:21 +07:00
hathach
eb698f8cc7
skip hil test if binary not exist
2024-07-18 13:54:11 +07:00
hathach
30a48c57bd
fix hil board_test duplication, add cdc_msc_freertos test
2024-07-18 13:21:38 +07:00
Ha Thach
b8581b4ab7
Merge pull request #2721 from hathach/hild-add-metro-m7
...
HIL add metro m7
2024-07-18 10:48:47 +07:00
hathach
8be0d503da
fix make build
2024-07-18 09:34:58 +07:00
hathach
68518aaa4b
add metro_m7_1011 to hil rpi
2024-07-18 09:25:52 +07:00
hathach
ea5deb0018
add unique id for imxrt
2024-07-18 09:24:29 +07:00
YixingShen
15766ad988
fixed _find_desc_format
2024-07-18 00:46:20 +08:00
Liam Fraser
3804ab9a67
RP2040: no need to clear usb_hw (usb registers) as they are reset to default state by a hardware reset
2024-07-17 15:47:00 +01:00
Liam Fraser
770efd9b46
RP2040: Use our own unaligned memcpy to avoid alignment faults with some memcpy implementations
2024-07-17 15:47:00 +01:00
Ha Thach
c6339204f4
Merge pull request #2719 from hathach/add-family-da1469x
2024-07-17 21:18:11 +07:00
hathach
daa7acd585
add FreeRTOSConfig.h for da1469
2024-07-17 20:40:27 +07:00
hathach
0e53b0b846
update workflow build ci
2024-07-17 19:45:40 +07:00
hathach
e1e68cdb9b
bump up ch32 v20x and v307 deps
2024-07-17 19:40:05 +07:00
hathach
0004faca83
minor update hid device
2024-07-17 19:29:21 +07:00
hathach
57a08200fc
add family cmake/make for da1469x boards
2024-07-17 19:28:59 +07:00
Ha Thach
e86826318c
Merge pull request #2718 from hathach/hid-2253-followup
...
follow up to #2253
2024-07-17 15:19:43 +07:00
hathach
0ecf15bc61
follow up to #2253
...
- rename tud_hid_report_fail_cb() to tud_hid_report_failed_cb() and change its signature
- use default implementation for hid callbacks to be compatible with keil compiler
- code format
2024-07-17 14:35:23 +07:00
Ha Thach
1ba88ff3ac
Merge pull request #2715 from hathach/more-hil-pi5
...
hil flash itsybitsy m4 with picoprobe
2024-07-16 14:43:58 +07:00
hathach
5edc8458f2
hil flash itsybitsy m4 with picoprobe
2024-07-16 14:30:51 +07:00
Hardy Griech
6b0b889f25
avoid recursions in tud_network_recv_renew()
2024-07-15 18:15:01 +02:00
Ha Thach
7ff52021ad
Merge pull request #2712 from hathach/migrate-hil-pi5
...
update hil test to run on new pi5
2024-07-15 18:10:16 +07:00
hathach
cc6806144f
update hil test to run on new pi5
2024-07-15 17:46:20 +07:00
Ha Thach
bd15f65e81
Merge pull request #2710 from hathach/dwc2-test-mode-followup
2024-07-12 21:15:52 +07:00
hathach
4ce1cce40a
simplify dwc2 test mode
...
- all dwc2 ip seems to support test mode in both fs/hs -> remove TUP_USBIP_DWC2_TEST_MODE
- remove dcd_check_test_mode_support(), all should be supported
- move enum tusb_feature_test_mode_t to tusb_types.h
2024-07-12 20:17:14 +07:00
Ha Thach
b97520e89f
Merge pull request #2709 from hathach/add-tud_cdc_configure_fifo
...
add tud_cdc_configure_fifo() to replace CFG_TUD_CDC_PERSISTENT_TX_BUFF
2024-07-12 17:38:33 +07:00
hathach
ef71093046
add lsusb for hil pi4
2024-07-12 17:20:06 +07:00
Ha Thach
d26b574f80
Merge pull request #2688 from HiFiPhile/3511_rtos
...
LPC55: FreeRTOS fix
2024-07-12 17:16:44 +07:00
hathach
1f590c3628
- add tud_cdc_configure_fifo() to replace CFG_TUD_CDC_PERSISTENT_TX_BUFF
...
- new line, and code format
2024-07-12 16:53:21 +07:00
Brent Kowal
13f5f20c98
Pre-commit fixes.
...
Resolve codespell and EOF errors found in the pre-commit CI task.
2024-07-11 12:13:30 -04:00
Ha Thach
65b3edbb09
Merge pull request #2705 from hathach/v203-use-224kb
...
V203 use 224kb
2024-07-11 21:36:00 +07:00
Brent Kowal
494533f9d7
Minor build system fix
...
Correct a case-sensitive file extension issue in the MAX32690 build scripts. Did not present itself as an issue under MinGW or MSYS, just Linux.
2024-07-10 15:52:43 -04:00
Brent Kowal
f49725d2c9
BSP Cleanup
...
- Added MSDK flash rules for CMake
- Removed partial IAR support. Uniform GCC support across MAX32 parts
- Updated build scripts for correctly signing the MAX32651
- Added README files for the BSPs to describe flashing and limitiations
2024-07-10 15:18:59 -04:00
hathach
e251493a16
skip FLASH_ function to reduce dependency
2024-07-10 22:58:00 +07:00
hathach
c1175b7013
enable full 224KB flash for ch32v203 with flash enhanced read mode in SystemInit (better with startup).
...
add flash with wlink-rs
2024-07-10 22:48:06 +07:00
Ha Thach
cb37a17ef7
Merge pull request #2699 from hathach/revert-2693-enum-int
...
Revert "audio.h: fix error ISO C restricts enumerator values to range of 'int'"
2024-07-05 15:42:39 +07:00
hathach
8d5dbb9577
add board_reset_to_bootloader(), try to implement that for ch32v203 but not working yet
2024-07-05 15:40:02 +07:00
hathach
ca12a57902
add u for unsigned
2024-07-05 15:19:16 +07:00
Ha Thach
bd562e4180
Revert "audio.h: fix error ISO C restricts enumerator values to range of 'int'"
2024-07-05 15:15:00 +07:00
Brent Kowal
0c37f93bc8
MAX32650/1/2 Support
...
Added support for the MAX32650/1/2 series parts
- MAX32650FTHR, MAX32650EvKit, MAX32651EvKit
- Added special flash rule for MAX32651 due to signing required
- Added depencies to flash-msdk rules for executable
2024-07-02 18:02:11 -04:00
Brent Kowal
61beb6316d
MAX32666 Support
...
Added support for the MAX32666, Boards MAX32666EvKit and MAX32666FTHR.
2024-07-02 14:31:38 -04:00
Brent Kowal
835a6ed622
Build System Updates
...
Updated MAX32690 and MAX78002 linker and cmake scripts to work with CMake + Ninja build system. Verified all example projects build with the tools/build.py script for both board, and both make and cmake build systems.
2024-07-02 11:54:23 -04:00
Brent Kowal
2353c4ffba
Add MAX78002 Support
...
-Added support for MAX78002, MAX78002EVKIT
-Added provisions for remaining MAX32 USB parts
2024-07-01 17:31:38 -04:00
Brent Kowal
0b82af61f3
AD-APARD32690-SL Support and Cleanup
...
- Added BSP for AD-APARD32690-SL board (apard32690)
- Ran clang-formatting on previously committed code
- Removed LOG messages from dcd_max32.c
2024-07-01 16:31:17 -04:00
Brent Kowal
0f288326cc
Initial Commit for MAX32 Support
...
Initial commit for the port of TUSB to MAX32xxx parts, staring with MAX32690
- Added dcd_max32.c (based on dcd_musb.c) for interfacing with the peripheral
- Added MAX32690 part family support
- Added max32690evkit board support
- Updated examples for unique EP number requirement
- Updated get_deps.py to fetch the MSDK
Known Issues / Additional Testing Required
- msc_dual_lun only shown 1 volume on Windows
- USBTMC does not have a valid Windowsdriver
- DFU does not have a valid Windows driver
- WebUSB is "Device not Recognized"
- Need to test build scripts with IAR and Clang
2024-06-28 16:55:27 -04:00
HiFiPhile
236aa9622a
Merge pull request #2693 from ra1nb0w/enum-int
...
audio.h: fix error ISO C restricts enumerator values to range of 'int'
2024-06-28 20:45:45 +02:00
Davide Gerhard
8f9a57636c
audio.h: fix error ISO C restricts enumerator values to range of 'int'
...
fix error
~/dsp/libs/tinyusb/src/class/audio/audio.h:643:53: error: ISO C restricts enumerator values to range of 'int' before C23 [-Werror=pedantic]
643 | AUDIO_CHANNEL_CONFIG_RAW_DATA = 0x80000000, // TODO
| ^~~~~~~~~~
compilation terminated due to -Wfatal-errors.
Closes: https://github.com/hathach/tinyusb/issues/2690
2024-06-28 19:57:59 +02:00
HiFiPhile
7125ac20ca
Merge pull request #2691 from ra1nb0w/strict-overflow
...
audio_device.c: fix strict-overflow warning with gcc >= 12
2024-06-28 11:12:56 +02:00
Davide Gerhard
8f699023f3
audio_device.c: fix strict-overflow warning with gcc >= 12
...
Fix the following error
~/libs/tinyusb/src/class/audio/audio_device.c:1493:23: error: assuming pointer wraparound does not occur when comparing P +- C1 with P +- C2 [-Werror=strict-overflow]
1493 | while (p_desc < p_desc_end)
| ~~~~~~~^~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
2024-06-28 10:55:43 +02:00
HiFiPhile
6d4e2f6c16
Fix GenID 3.10 issue on STM32L4.
2024-06-27 22:02:18 +02:00
HiFiPhile
756ad3553d
Merge pull request #2689 from ra1nb0w/semicolon
...
remove double semicolon since ISO C not allow it
2024-06-27 21:48:25 +02:00
Davide Gerhard
85e1f423bf
remove double semicolon since ISO C not allow it
...
ISO C does not allow extra ';' outside of a function [-Werror=pedantic]
2024-06-27 21:30:16 +02:00
HiFiPhile
eefca229b6
Merge branch 'master' of https://github.com/hathach/tinyusb into dwc2_dma
2024-06-27 20:49:40 +02:00
HiFiPhile
fbe025190c
Make FreeRTOS config work with Cortex-M33.
2024-06-27 20:46:44 +02:00
HiFiPhile
b82e0a9f1e
update lpc55 bsp for rtos use.
2024-06-27 20:44:40 +02:00
Ha Thach
13dedddd19
Merge pull request #2686 from hathach/add-host-devinfo
2024-06-25 15:29:17 +07:00
hathach
4396ecd22c
change COMPILE_DEFINE to CFLAGS_CLI for cmake/make
2024-06-25 11:31:19 +07:00
Ha Thach
044f4d1801
Merge pull request #2676 from Okarss/fsdev_documentation
...
[FSDEV] Update the STM32 documentation
2024-06-21 20:45:44 +07:00
Okarss
822ff7b316
Update for OTG_FS devices
2024-06-21 16:23:28 +03:00
Okarss
7594d8e103
Fix the legend
2024-06-21 15:56:54 +03:00
hathach
f9cd5ccdf0
skip examples for ch32v203g6
2024-06-21 18:50:44 +07:00
HiFiPhile
906c84d2b6
Merge pull request #2683 from andrewleech/synopsys_esp32_freertos
...
synopsys/dwc2_esp32: Add header for vTaskDelay.
2024-06-21 12:42:11 +02:00
hathach
ab55bc077d
update cmake.xml
2024-06-21 16:09:08 +07:00
hathach
02bea8982e
add new ch32v203g6u board, sysfreq is defined in board.cmake/mk
2024-06-21 16:08:37 +07:00
Andrew Leech
0d79da37e7
synopsys/dwc2_esp32: Add header for vTaskDelay.
2024-06-20 15:18:41 +10:00
Ryzee119
5e58ec127f
usbh: Add set address recovery time
...
Ref USB Spec 9.2.6.3
2024-06-20 09:33:01 +09:30
Ha Thach
1cc319a15d
Merge pull request #2680 from Ryzee119/patch-1
2024-06-18 19:21:30 +07:00
Okarss
458be5dad8
Fix the table
2024-06-18 13:40:49 +03:00
hathach
ac3ec59845
add optional COMPILE_DEFINE from cmake cli
2024-06-18 16:18:58 +07:00
Okarss
5083d1eb33
Update Host mode information for FSDEV devices
2024-06-18 12:12:44 +03:00
hathach
de62b55042
add dual/host_info_to_device_cdc example
2024-06-18 13:29:04 +07:00
hathach
d945261aef
LOG3 in isr
2024-06-18 12:53:57 +07:00
hathach
f93eb40b1d
add host/device_info example
2024-06-18 12:52:32 +07:00
Ryzee119
d52d659261
usbh: Set interface recipient should be interface
2024-06-18 14:02:36 +09:30
Ha Thach
007a8bd46d
Merge pull request #2672 from tinic/master
...
Add support for STM32U535xx/STM32U545xx
2024-06-15 10:56:24 +07:00
HiFiPhile
edf1ef6d97
Merge pull request #2675 from Okarss/fsdev_toggle_bits
...
[FSDEV] Simplify toggle bit logic
2024-06-14 20:36:03 +02:00
Okarss
5f060a357d
Update the STM32 documentation
2024-06-14 21:23:17 +03:00
Okarss
fb6a6acbff
Revert the DSB because of RISC-V
2024-06-14 18:39:48 +03:00
Okarss
00062ddb0c
[STM32 FSDEV] Simplify toggle bit logic
2024-06-14 18:16:09 +03:00
Ha Thach
0ac0c37078
Merge pull request #2674 from hathach/add-ch32v103
...
Add ch32v103 (not working yet)
2024-06-14 20:34:32 +07:00
hathach
2be72a97b8
minor update
2024-06-14 17:55:36 +07:00
hathach
e1012997f0
more update
2024-06-14 16:55:46 +07:00
hathach
f32851cf2a
fix ci skip example for ch32v1
2024-06-14 16:16:10 +07:00
hathach
5e9ad7daee
add ch32v10x to ci build
2024-06-14 16:09:08 +07:00
hathach
9ae0053573
newline
2024-06-14 16:08:26 +07:00
hathach
33f5547ed4
add ch32v103 bsp support, compile but does not run, probably due to compile/linker issue
2024-06-14 16:06:37 +07:00
hathach
969b06d77c
minor update
2024-06-14 12:51:50 +07:00
hathach
2ed027f2bd
use stock core_riscv.h for ch32 v2 v3
2024-06-14 12:51:28 +07:00
Tinic Uro
a6d3e2a36d
Use STREQUAL instead of EQUAL to fix the cmake build.
2024-06-12 09:23:18 -07:00
Tinic Uro
48e18762b5
Use correct definition.
2024-06-12 09:02:48 -07:00
Tinic Uro
9be10f2adb
Fix pin definitions.
2024-06-12 08:59:43 -07:00
tinic
a0006e6861
Merge branch 'hathach:master' into master
2024-06-12 08:33:48 -07:00
Tinic Uro
bc576e7cee
Make it work.
2024-06-12 08:33:10 -07:00
Tinic Uro
6a1dc25079
Add missing files.
2024-06-12 08:14:06 -07:00
Tinic Uro
28c2433375
Add stm32u545nucleo board.
2024-06-12 08:08:25 -07:00
Ha Thach
ba2f2299c3
Merge pull request #2668 from hathach/add-c6-board
...
Add esp c6 devkit board
2024-06-06 16:48:08 +07:00
hathach
8df372ae7a
clean up
2024-06-06 16:19:02 +07:00
hathach
7771cae94c
fix gnurx bin
2024-06-06 16:13:25 +07:00
hathach
902cc3310b
correct script
2024-06-06 16:09:38 +07:00
hathach
302445e64f
try to build rx using build_util
2024-06-06 16:07:11 +07:00
hathach
90deeddf3d
add c6 devkit, tested with max3421e
2024-06-06 15:49:20 +07:00
HiFiPhile
b0f5422262
Merge branch 'master' of https://github.com/hathach/tinyusb into rx_fb
2024-05-31 12:38:18 +02:00
Tinic Uro
60d7fcb1ee
Use correct backend.
2024-05-30 13:26:14 -07:00
Tinic Uro
2e946ac77a
Use correct specs.
2024-05-29 13:23:18 -07:00
Tinic Uro
22e6b1130f
Cleaner approach.
2024-05-29 13:13:47 -07:00
Tinic Uro
4938128ccc
Make it compile for STM32U545.
2024-05-29 12:54:15 -07:00
Ha Thach
d10b65ada4
Merge pull request #2663 from hathach/tweak-espidf-include
...
fix xtensa_api.h include
2024-05-29 15:20:55 +07:00
hathach
8767d1ab7d
fix xtensa_api.h include
2024-05-29 15:19:59 +07:00
HiFiPhile
1fe86f654f
Merge pull request #2647 from andrewleech/additional_dcd_sof_enable
...
Add support for dcd_sof_enable() to some additional ports.
2024-05-27 20:42:28 +02:00
HiFiPhile
003a5d4f55
Merge branch 'master' into additional_dcd_sof_enable
2024-05-27 20:10:44 +02:00
HiFiPhile
a9745c9818
Fix tud_sof_cb_enable() return type.
2024-05-27 20:35:35 +10:00
HiFiPhile
8f0459c89e
Fix frame count in tud_sof_cb().
2024-05-27 20:35:35 +10:00
Andrew Leech
087fe79e2c
renesas: Add support for dcd_sof_enable().
2024-05-27 20:35:35 +10:00
Andrew Leech
160cd79fdb
nrf5x: Add support for dcd_sof_enable().
2024-05-27 20:35:35 +10:00
Andrew Leech
e229270a1c
microchip samd: Add support for dcd_sof_enable().
2024-05-27 20:35:35 +10:00
Andrew Leech
a2e5ea1882
chipidea/mimxrt: Add support for dcd_sof_enable().
2024-05-27 20:35:35 +10:00
Ha Thach
fd11bf17fd
Merge pull request #2661 from hathach/release-0.17.0
...
bump up version to 0.17.0 (not release yet)
2024-05-24 20:39:33 +07:00
hathach
3175aaa0eb
increase version as pre-releases, still need more clean up before actual relesae
2024-05-24 20:17:53 +07:00
hathach
afbb07b472
test README.rst
2024-05-24 17:36:17 +07:00
HiFiPhile
37e638b3dd
Merge pull request #2657 from Rbb666/rtthread
...
[osal]Add usb-device and host macro controls.
2024-05-24 12:25:12 +02:00
Rbb666
2c880012f7
[osal]Add usb-device and host macro controls.
2024-05-24 16:51:22 +08:00
Ha Thach
41c7cdac68
Merge pull request #2659 from hathach/fsdev-generalize-ch32
...
CH32 add support for usbd (only), fsdev
2024-05-24 15:18:30 +07:00
hathach
daffb24111
minor clean up
2024-05-24 14:13:58 +07:00
hathach
937b2eac36
change default clock to 144mhz
2024-05-24 14:00:02 +07:00
hathach
4ce439a75a
add ch32 support for fsdev driver. v20x can select fsdev or usbfs with make/cmake PORT=0/1. default to fsdev
2024-05-24 13:58:44 +07:00
hathach
927015baae
wch usbfs/usbhs need to specify which driver to use. for v307 default to highspeed
2024-05-24 11:38:44 +07:00
Li Junru
61eee535c1
feat(uvc): support format frame based
2024-05-22 20:57:23 +08:00
Ha Thach
1f259b3ab0
Merge pull request #2392 from Krasutski/bugfix/ch32-hs-dcd
...
bugfix(ch32-hs-dcd): fix ch32 DATAx managment and long packet transmit
2024-05-21 19:15:54 +07:00
hathach
4a5b190a22
re-add sof event
2024-05-21 18:34:25 +07:00
hathach
953e3bd634
- minor update to ep_set_response_and_toggle/xfer_data_packet
...
- merge USBHS_ISO_ACT_FLAG, USBHS_TRANSFER_FLAG handler since they are similar
- improve uart output
- add note for link speed in bus reset
2024-05-21 17:50:50 +07:00
hathach
4bd72da5cd
use CFG_TUD_ENDPOINT0_SIZE, rename ep0_data_in_out_buffer to simply ep0_buffer
...
reformat indent to 2 spaces
2024-05-21 15:41:59 +07:00
Denis Krasutski
3e604d1d54
fix(ch32, iso): fix iso IN transfers for CH32
2024-05-21 15:24:40 +07:00
dkrasutski
869e5e950c
bugfix(ch32-hs-dcd): fix ch32 DATAx managment and long packet transmission
2024-05-21 15:24:36 +07:00
Ha Thach
a1abbd70cb
Merge pull request #2654 from hathach/update-circleci
...
circle ci remove deps caching to reduce storage credit
2024-05-21 14:01:32 +07:00
hathach
1d7aeb3fb6
try to update cache for esp-idf
2024-05-21 13:25:15 +07:00
hathach
4e24ec5e5d
circle ci skip cache for toolchain
...
action skip cache for toolchain url hosted by github
2024-05-21 13:04:56 +07:00
hathach
c2cfb71dce
circle ci remove deps caching to reduce storage credit
2024-05-21 12:11:08 +07:00
Ha Thach
a068b81674
Merge pull request #2362 from dragonlock2/master
...
Add CH32V20x USB OTG/FS Driver
2024-05-20 18:47:22 +07:00
hathach
10b1e38404
revert unrelated changes to video_device.c
2024-05-20 18:30:38 +07:00
hathach
3b144be37f
try fixing codeql
2024-05-20 18:05:45 +07:00
hathach
07d879378f
code format
...
add missing MIT license
2024-05-20 17:41:48 +07:00
hathach
b19295c1c1
use correct wch usbhs, usbfs for ch32v307 using CFG_TUD_MAX_SPEED
2024-05-20 17:26:04 +07:00
hathach
4a5fee503b
- update ch203 family to allow to specify flash and ram size. Introduce
...
- add ch32v203_ro_1v0 board
- CFG_EXAMPLE_MSC_DUAL_READONLY to build msc_dual_lun for ch32v203
2024-05-20 13:24:57 +07:00
hathach
5fee292606
temp code
2024-05-20 11:54:48 +07:00
Matthew Tran
ab5f276877
fix ep0 stall not clearing
2024-05-19 21:50:30 -07:00
Ha Thach
ccc7a36043
Merge pull request #2648 from tannewt/esp32c2_h2
...
Add esp32c2 and esp32h2 for max3421 support
2024-05-17 11:01:30 +07:00
Scott Shawcroft
d3098747c0
Add esp32c2 and esp32h2 for max3421 support
2024-05-16 11:17:05 -07:00
hathach
2a67ce773d
change default risv-gcc to riscv-none-elf- and add _zicsr extension
...
add cmake for ch32v20x, skip freertos examples for CH32V20X, also skip net webserver due to lack of RAM
update to use openocd with wlinke adapter
2024-05-16 19:18:43 +07:00
Matthew Tran
db60fa1c63
add CH32V20x USB OTG/FS driver
2024-05-15 20:01:00 +07:00
Ha Thach
5393f8ddbc
Merge pull request #2626 from rgrr/dcd_nrf5x-fix-race-condition
...
dcd_nrf5x: fix race condition
2024-05-15 19:31:13 +07:00
Ha Thach
cf532d1479
Merge pull request #2646 from hathach/max3421-abort-xfer
...
Implement Max3421 hcd abort xfer
2024-05-15 16:42:15 +07:00
hathach
50278211f4
circleci light build for merged commit to master
2024-05-15 16:20:01 +07:00
hathach
83499a2cd0
tweak action
2024-05-15 16:03:31 +07:00
hathach
aa2685536b
implement max3421e hcd_edpt_abort_xfer()
2024-05-15 16:00:15 +07:00
Ha Thach
3c24ba3ff2
build arm-clang on circleci with pull request ( #2644 )
...
* Build arm-clang using circle ci (only on PR): cache most of mandatory deps, clang toolchain
* update get_deps.py to include CMSIS_5 with --print + no arguments, prevent duplicated deps
2024-05-14 12:44:36 +07:00
HiFiPhile
ae01de2464
Merge pull request #2416 from Rocky04/test-mode-support
...
Add DWC2 Test Mode Support
2024-05-13 22:51:25 +02:00
HiFiPhile
ad734e658c
Remove dead code.
2024-05-13 22:27:33 +02:00
HiFiPhile
e250b82377
Adjust logic.
2024-05-13 22:26:19 +02:00
HiFiPhile
0fce7d1f54
Merge branch 'master' into test-mode-support
2024-05-13 21:08:11 +02:00
Hardy Griech
9d561410e5
revert (unverified) second race condition
2024-05-13 18:57:03 +02:00
Ha Thach
7cf1bdd284
Ci tweak3 ( #2643 )
...
- enable --one-per-family to build 1 board per family, also skip family if board specified in -b also present
- minimize ci run for push event
- only build one board per family
- skip hil test on both pi4 and hfp
- full build will be runn for PR event
- IAR always build 1 board per family regardless of event
- update build.py to optimize make
- remove all setup python since we don't really need it
2024-05-13 20:27:49 +07:00
Ha Thach
6f47746e5f
more ci update ( #2642 )
...
* Circi use small docker
* caching espressif docker image
* only run make job on pull request or push to master
* hw test run on pull request only, rename build_cmake to build.yml
* enable all ci build, cmake(clang) and make(*) only run with pull_request or push to master
2024-05-13 16:41:11 +07:00
HiFiPhile
67456357c5
Fix HS playback on OSX.
2024-05-12 19:00:02 +02:00
HiFiPhile
d54a1578aa
Typo.
2024-05-12 17:33:31 +02:00
HiFiPhile
301fb2a9f7
Fix CI.
2024-05-12 14:05:57 +02:00
HiFiPhile
32d0baaaf8
Tested 3 bytes feedback work on OSX.
2024-05-12 14:03:29 +02:00
HiFiPhile
df6740353f
Optimize fifo level display.
2024-05-12 14:02:07 +02:00
HiFiPhile
08f9e4e0c8
Hint missing import, exit on error.
2024-05-12 13:57:17 +02:00
HiFiPhile
256ccc4757
Fix CI.
2024-05-11 12:57:38 +02:00
HiFiPhile
ad85c37c03
Optimize SOF.
2024-05-11 12:51:18 +02:00
HiFiPhile
33882b3e89
Merge remote-tracking branch 'remotes/tinyusb/master' into rx_fb
2024-05-11 12:44:16 +02:00
HiFiPhile
d707ea56b4
Merge pull request #2639 from Rbb666/rtthread
...
[osal]add usb host script of RT-Thread to USB HOST.
2024-05-11 12:35:21 +02:00
HiFiPhile
9ce44db56f
Always send 4 bytes feedback despite 10.14 format (Apple wtf ?!)
2024-05-11 12:33:51 +02:00
Rbb666
4cecb759c9
[osal]add usb host script.
2024-05-11 16:51:21 +08:00
Ha Thach
3e2ea77506
More ci tweak ( #2636 )
...
* change concurrency group to ${{ github.workflow }}-${{ github.ref }}
* use argparse for build.py hil_test.py, remove the need to install click
* move ci win/mac to build_cmake.yml
* rename build_family.yml to build_util.yml
* build_util.yml support esp32
* integrate build-espressif into build.yml
* build.py support make with --board option
* add get_deps action
* update hil test to reuse action
2024-05-10 18:55:43 +07:00
Ha Thach
bf9cf107c6
Merge pull request #2637 from hathach/circleci-project-setup
...
Circleci project setup
2024-05-10 17:56:46 +07:00
Ha Thach
81ceb837b9
Update config.yml
2024-05-10 17:53:26 +07:00
HiFiPhile
a13141a633
Merge pull request #2213 from Rocky04/patch-5
...
Adding support for a generic SOF callback
2024-05-10 10:58:37 +02:00
Ha Thach
8d63d9368e
Add .circleci/config.yml
2024-05-10 13:00:19 +07:00
Ha Thach
15e2ccf1b3
CircleCI Commit
2024-05-10 12:44:54 +07:00
Ha Thach
e827829850
Merge pull request #2635 from hathach/fix-cifuzz
...
use argparse instead of click to fix cifuzz.yml
2024-05-10 11:03:02 +07:00
hathach
2f5db37c1a
use argparse instead of click to fix cifuzz.yml
2024-05-10 10:30:47 +07:00
HiFiPhile
f4d4f2da29
Merge remote-tracking branch 'remotes/tinyusb/master' into rx_fb
2024-05-10 00:16:45 +02:00
HiFiPhile
fc7647f9e4
Allow feedback EP size change.
2024-05-10 00:11:04 +02:00
HiFiPhile
36ba42cc0f
Little optimization.
2024-05-09 22:57:25 +02:00
HiFiPhile
eea7d7b327
Fix CI.
2024-05-09 22:08:41 +02:00
HiFiPhile
376b43906a
Convert to bit-field since it's more reliable.
2024-05-09 21:55:28 +02:00
HiFiPhile
16cd92fbf1
Don't forget to queue SOF event.
2024-05-09 21:47:22 +02:00
HiFiPhile
dd17f6cc80
Merge pull request #2633 from jotonedev/missing-keys
...
Add missing key codes for keypad
2024-05-09 19:23:18 +02:00
John Toniutti
f09fa22bbc
Fix redefinition
2024-05-09 18:45:20 +02:00
HiFiPhile
ca479d6e4b
Disable SOF on configuration change.
2024-05-09 18:44:27 +02:00
HiFiPhile
11b5b2af51
Move sof status into usbd_device_t.
2024-05-09 18:37:51 +02:00
HiFiPhile
c8beaad2b1
Switch to weak default implementation.
2024-05-09 18:07:22 +02:00
HiFiPhile
6c286e3b02
Merge branch 'master' into patch-5
2024-05-09 18:00:52 +02:00
John Toniutti
015b57b6ef
Add missing key codes
...
Source: https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf from page 57 to page 59
2024-05-09 17:05:14 +02:00
HiFiPhile
63e64f374b
Merge pull request #911 from thierer/vendor_class_zero_length_transfer
...
Enable empty transfers for tud_vendor_n_write()
2024-05-09 16:56:31 +02:00
HiFiPhile
2b9e53772e
Take updated change from cdc_device.
2024-05-09 16:28:25 +02:00
HiFiPhile
36ce6fad8c
Merge branch 'master' into vendor_class_zero_length_transfer
2024-05-09 15:51:53 +02:00
Ha Thach
ba6babf570
Rework ci ( #2631 )
...
* add name field to usbd_class_driver_t
* ci: use set matrix py script
* add riscv32 and cmake support for ch32v307, fomu, gd32vf103
* update build_cmake.py to take --family --board --toolchain
* separate hil test to its own workflow
* move esp32 board into separated hil json
* add make build to ci
* remov build_make.py
* build.py support esp32 board
* setup toolchain support esp-idf
* fix missing click
* merge family in matrix build to reduce jobs
* skip cifuzz since it still has issue with get_deps and click
2024-05-09 20:43:46 +07:00
HiFiPhile
1af56a30cf
Merge pull request #2181 from Xelus22/ch32v307_SOF
...
Add SOF interrupt to CH32V307
2024-05-09 14:48:42 +02:00
HiFiPhile
1cab553f4b
Format.
2024-05-09 13:55:18 +02:00
HiFiPhile
fd1cde9b89
Merge branch 'master' into pr/2181
2024-05-09 13:45:44 +02:00
HiFiPhile
8133af4e08
Merge remote-tracking branch 'remotes/tinyusb/master' into rx_fb
2024-05-08 23:18:29 +02:00
HiFiPhile
0e907b49c9
Add callback to to set feedback format correction at runtime.
2024-05-08 23:17:56 +02:00
HiFiPhile
ab539895a5
Reorganize feedback documentation.
2024-05-08 23:08:47 +02:00
HiFiPhile
8dc767fa1d
Fix cycle based feedback calculation.
2024-05-08 22:31:30 +02:00
HiFiPhile
73d61fa2b8
Migrate to weak default implementation.
2024-05-08 21:03:49 +02:00
HiFiPhile
70ae07b084
Merge pull request #2252 from rsolorzanomsft/hid-lighting
...
Add HID Lighting and Illumination functionality
2024-05-08 15:00:08 +02:00
HiFiPhile
d37d25d557
Merge pull request #2532 from acscd/master
...
Added support for SCSI_CMD_PREVENT_ALLOW_MEDIUM_REMOVAL
2024-05-08 14:48:47 +02:00
HiFiPhile
c773c612fd
Merge pull request #2629 from andrewleech/cdc-persistent-tx-buffer
...
Add option to make CDC TX buffer persistent.
2024-05-08 12:17:45 +02:00
Andrew Leech
d01b2cfc0e
Add option to make CDC TX buffer persistent.
2024-05-08 19:41:02 +10:00
HiFiPhile
74e57499ba
Merge pull request #2216 from rgrr/remove-tud_network_link_state_cb
...
removed obsolete tud_network_link_state_cb()
2024-05-07 13:46:57 +02:00
HiFiPhile
4abdfc10f5
Merge branch 'master' into remove-tud_network_link_state_cb
2024-05-07 12:32:28 +02:00
HiFiPhile
e5b6f93df3
Merge pull request #2227 from rgrr/ncm_device_new2
...
Rewrite of NCM device driver
2024-05-07 09:08:43 +02:00
HiFiPhile
e5d92c4ea7
Fix CI.
2024-05-07 00:37:57 +02:00
HiFiPhile
0f4ea8e918
Enable NCM + iperf for MCU with bigger RAM.
2024-05-07 00:23:50 +02:00
HiFiPhile
63d5103f42
Increase TCP_WND for better performance.
2024-05-07 00:18:31 +02:00
HiFiPhile
d25ee82d3f
Reformat net_lwip_webserver example.
2024-05-07 00:17:09 +02:00
HiFiPhile
91d69fa942
Reformat NCM class.
2024-05-07 00:10:26 +02:00
HiFiPhile
45d450d1f0
Merge remote-tracking branch 'remotes/tinyusb/master' into pr/2227
2024-05-06 22:49:29 +02:00
Ha Thach
104a5daef4
Merge pull request #2618 from HiFiPhile/fifo_const_split
...
tusb_fifo: skip constant address functions if not used
2024-05-06 18:31:29 +07:00
Ha Thach
4101369c35
Merge pull request #2622 from hathach/ci-update
...
Ci update
2024-05-06 18:28:46 +07:00
hathach
dfda0b124f
fix typo
2024-05-06 17:31:00 +07:00
hathach
a9f1c62dff
temp fix for mm32 redundant-decls of SystemCoreClock
2024-05-06 17:28:48 +07:00
hathach
497785393d
add cmake for mm32, remove mm32 bluepill since it is custom/reworked board (not available for order)
2024-05-06 17:14:35 +07:00
Hardy Griech
82547372d1
edpt_dma_start() is called during interrupt time as well, dcd_edpt_xfer() needs DI/EI at one point
2024-05-06 08:42:08 +02:00
hathach
d79c71abf5
update flash openocd
2024-05-06 10:52:52 +07:00
HiFiPhile
02ec486610
Fix spurious EP0 completion.
2024-05-05 22:01:09 +02:00
Hardy Griech
cc70958c16
mostly comments
2024-05-05 21:18:57 +02:00
Hardy Griech
ea55537fb2
minor changes due to CR with HiFiPhile
2024-05-05 20:33:01 +02:00
hathach
3791514908
add cmake for samg55
2024-05-04 17:23:16 +07:00
hathach
c020a0190d
add cmake for f1c100s
2024-05-04 12:36:40 +07:00
hathach
666702f478
fix ci
2024-05-04 10:28:47 +07:00
hathach
f1940439e4
fix get_deps.py for samd5x_e5x
2024-05-04 10:07:54 +07:00
hathach
7c7be885b4
clion setting
2024-05-03 23:16:21 +07:00
hathach
58248f3e7f
mm32 temp
2024-05-03 23:15:14 +07:00
hathach
fcfd5a6625
fix ci
2024-05-03 18:12:55 +07:00
hathach
f38fbbfb2b
add cmake for xmc4000
2024-05-03 16:48:55 +07:00
hathach
704412bb48
add cmake for tm4c
2024-05-03 16:15:29 +07:00
hathach
59f8e9dff9
rename to samd5x_e5x
2024-05-03 15:17:07 +07:00
hathach
4b86b49260
merge samd51 and same5x
2024-05-03 15:15:27 +07:00
hathach
1cf68f98b3
- add cmake to samd11
...
- build_cmake.py always build with -DCMAKE_BUILD_TYPE=MinSizeRel
2024-05-03 12:45:41 +07:00
hathach
43f4317a97
add missing FreeRTOSConfig.h
2024-05-03 12:21:02 +07:00
hathach
6524e26e62
add cmake for stm32wb
2024-05-03 11:39:42 +07:00
hathach
1b97cec995
fix missing linker entry with cmake for broadcom family
2024-05-03 11:19:44 +07:00
hathach
fc843c5827
add cmake for saml2x
2024-05-03 10:59:29 +07:00
hathach
dde13a3d4b
add cmake to msp432e4
2024-05-02 21:28:43 +07:00
hathach
68a4d0c8db
add cmake to lpc51
2024-05-02 20:50:41 +07:00
hathach
e812fce29c
update cmake ci
2024-05-02 18:26:01 +07:00
hathach
2213fe40e5
add cmake for lpc15
2024-05-02 18:24:47 +07:00
hathach
19cb2f1a3c
add cmake to lpc1347
2024-05-02 18:15:55 +07:00
hathach
374a4b4ead
update clang format
2024-05-02 17:56:36 +07:00
hathach
c717e52ab2
add cmake for lpc11
2024-05-02 17:54:44 +07:00
hathach
4b537a4f8c
add cmake for kinetis k32l2 family
2024-05-02 16:58:43 +07:00
hathach
980f5992c8
add cmake for broadcom 64-bit, like 32-bit it compiles but text is only 8 bytes (incorrect)
2024-05-02 16:57:50 +07:00
hathach
ea3f1d39e8
add cmake for pi zero (renamed from pi zero_w), build but the flash size seem wrong (only 24 bytes for text)
2024-05-02 13:29:29 +07:00
HiFiPhile
a435befcde
Merge pull request #2616 from trejan/patch-1
...
Add missing capability bit for CDC ACM serial break support
2024-04-30 22:25:09 +02:00
Trevor
35e7fddc73
Add missing capability bit for CDC ACM serial break support
...
The send break capability bit is needed for serial break support with Linux and possibly MacOS hosts. [A recent Linux kernel patch made it check the ACM capability bits before sending a serial break](19e321c3ee
).
2024-04-30 16:53:25 +01:00
HiFiPhile
40319ccf9d
Merge pull request #2615 from maflcko/patch-1
...
Update dnserver.c: Match dnserv_free signature with fwd-decl
2024-04-30 13:42:57 +02:00
maflcko
56dbfe59d9
Update dnserver.c: Match dnserv_free signature with fwd-decl
2024-04-30 11:00:45 +02:00
HiFiPhile
c303b5d81d
Guard const addr fifo functions with TUP_MEM_CONST_ADDR.
2024-04-29 22:35:55 +02:00
HiFiPhile
bf1540af4c
Merge branch 'master' of https://github.com/hathach/tinyusb into pr/2132
2024-04-29 22:22:59 +02:00
HiFiPhile
327e3ec4bd
Stall unsupported class request.
2024-04-28 21:59:54 +02:00
HiFiPhile
a29852320a
Merge remote-tracking branch 'upstream/master' into pr/2227
2024-04-28 19:46:00 +02:00
HiFiPhile
1c04d5992a
Merge pull request #2494 from tommie/usbtmcnotif
...
Add notification support for device class USBTMC
2024-04-28 12:36:41 +02:00
HiFiPhile
ee008620d2
Merge pull request #1709 from kaspernyhus/audio_test_freertos
...
Add audio_test_freertos & audio_4_channel_mic_freertos
2024-04-28 11:14:08 +02:00
HiFiPhile
ef7be4c2ff
Fix CI.
2024-04-28 01:17:32 +02:00
HiFiPhile
bc8c8df316
Build STM32F7 with single-point FPU.
2024-04-28 00:29:19 +02:00
HiFiPhile
a29a3af218
audio_4_channel_mic_freertos : merge changes from audio_4_channel_mic.
2024-04-28 00:28:12 +02:00
HiFiPhile
bb89a5a5bf
audio_test_freertos : merge changes from audio_test.
2024-04-28 00:28:12 +02:00
HiFiPhile
7dd26877de
Update audio_test & audio_test_freertos examples to work with high-speed.
2024-04-28 00:28:11 +02:00
HiFiPhile
4f41e105b3
Update build system.
2024-04-28 00:28:11 +02:00
Kasper Nyhus Kaae
c917d47e71
audio_test_freertos & audio_4_channel_mic_freertos
2024-04-27 20:29:07 +02:00
HiFiPhile
bd033a2d53
Fix CI.
2024-04-27 17:24:19 +02:00
HiFiPhile
a018b229ba
Update .gitignore.
2024-04-27 17:12:23 +02:00
HiFiPhile
fdb431b5c7
Buffer int msg to ensure alignment and placement correctness.
2024-04-27 17:12:00 +02:00
HiFiPhile
98e85a296d
bulk_in: copy buffer to ensure alignment correctness.
2024-04-27 17:09:05 +02:00
HiFiPhile
31b559370d
Merge pull request #2253 from Rocky04/patch-7
...
HID class driver fixes
2024-04-26 20:41:43 +02:00
HiFiPhile
a7762ff82e
LPC55 : Use PLL clock for better precision, allows easier UAC testing.
2024-04-26 20:11:09 +02:00
HiFiPhile
0a70a66b07
Fix up TUD_AUDIO_SPEAKER_MONO_FB_DESCRIPTOR.
2024-04-26 20:11:09 +02:00
HiFiPhile
ba27179f17
Fix typo.
2024-04-26 20:11:08 +02:00
HiFiPhile
f69255e735
Fix CI.
2024-04-26 20:11:08 +02:00
HiFiPhile
f2d455226a
Add UAC2 speaker with feedback example.
2024-04-26 20:11:08 +02:00
HiFiPhile
02e129a38e
Guard ep_fb with usbd_edpt_claim().
2024-04-26 20:06:20 +02:00
HiFiPhile
187c379331
Add tu_static to global variables.
2024-04-26 20:06:19 +02:00
HiFiPhile
1b66c148cc
UAC2: Implement feedback by fifo counting.
2024-04-26 20:06:19 +02:00
HiFiPhile
24339dbcce
Code format.
2024-04-26 18:01:02 +02:00
HiFiPhile
268cc19f44
Merge remote-tracking branch 'remotes/tinyusb/master' into pr/2253
2024-04-26 17:57:53 +02:00
HiFiPhile
4af67dd007
Simplify transfer failure cb.
2024-04-26 17:45:14 +02:00
HiFiPhile
ee9ad0f184
Merge pull request #2612 from HiFiPhile/iar_temp
...
Update IAR template.
2024-04-26 15:59:48 +02:00
HiFiPhile
6c3a60e5f2
Update IAR template.
2024-04-26 14:56:22 +02:00
HiFiPhile
085bd3c9d5
Merge pull request #2283 from shuffle2/hid-device-set-report
...
hid_device: use separate buffer for SET_REPORT instead of epout
2024-04-26 14:39:15 +02:00
HiFiPhile
1661acf82f
Add missing alignment.
2024-04-26 13:42:20 +02:00
HiFiPhile
7fb8d3341c
use separate buffer for ctrl transfer.
2024-04-26 13:40:13 +02:00
HiFiPhile
9ef3755f03
Merge branch 'master' of https://github.com/hathach/tinyusb into pr/2283
2024-04-26 13:12:56 +02:00
HiFiPhile
69313ef455
Merge pull request #2609 from tyustli/patch-1
...
Remove redundant header file includes for the hid class
2024-04-26 00:22:22 +02:00
HiFiPhile
8765568282
Change DMA condition.
2024-04-25 23:26:19 +02:00
Limor "Ladyada" Fried
a0cba9b045
Merge pull request #2611 from hathach/add-esp32-max3421e
...
Add esp32 max3421e
2024-04-25 17:24:51 -04:00
HiFiPhile
298f7f2d81
Fix DMA FIFO reservation.
2024-04-25 23:23:43 +02:00
HiFiPhile
394dc0686a
Check IN ep count limit.
2024-04-25 22:44:48 +02:00
HiFiPhile
cde722385c
dwc2: add dma support.
2024-04-25 22:44:48 +02:00
hathach
022de87550
add devkit c3 board
2024-04-26 00:15:04 +07:00
hathach
223ce56625
- add esp32 c3, c6 mcu option
...
- skip breakpoint for espressif riscv
2024-04-26 00:10:57 +07:00
hathach
03ccc8d8df
revert a change in tusb_mcu
2024-04-25 20:41:44 +07:00
hathach
2e995d7cf4
adding support for esp32 for use with max3421e host
2024-04-25 20:23:40 +07:00
tyustli
1e7091dae9
fix ci error
2024-04-25 19:47:12 +08:00
Ha Thach
fc91e15488
Merge pull request #2607 from HiFiPhile/dwc2_fix
...
Some misc fixes
2024-04-25 12:31:14 +07:00
HiFiPhile
c2f836279e
Disable EPs correctly to clear incomplete transfer.
2024-04-25 11:51:06 +07:00
HiFiPhile
f32eb07487
stm32u5: fix IAR build.
2024-04-25 11:51:06 +07:00
HiFiPhile
13bde7af40
uac2: return on clear_feature.
2024-04-25 11:51:05 +07:00
HiFiPhile
5f473d51cf
Fix IAR breakpoint test.
2024-04-25 11:51:04 +07:00
Ha Thach
c237d18ef5
Merge pull request #2599 from Rbb666/rtthread
...
[osal]Add rt-thread script support.
2024-04-25 11:48:59 +07:00
hathach
d664cbfcdd
fix pre-commit
2024-04-25 11:28:18 +07:00
Ha Thach
313d96677f
Merge pull request #2606 from hathach/build-clang
...
Add Clang support
2024-04-24 23:13:30 +07:00
hathach
19f1080e38
fix make build due to clang changes
2024-04-24 22:41:22 +07:00
hathach
eab42d90d4
update clang make build for stm32: f0 f1 f2 f3 f4 f7 h7 g0 g4 l0 l4 samd21 samd51 nrf
2024-04-24 22:11:08 +07:00
tyustli
7a3e730ded
Remove redundant header file includes for the hid class
2024-04-24 21:44:03 +08:00
hathach
a7bf0e3e7f
clang make work for samd21
2024-04-24 19:21:26 +07:00
Ha Thach
366f1cf186
Fix bsp mistake
2024-04-24 16:32:56 +07:00
hathach
b67cb26e51
change hil board s3 devkitm (devkitc seems to have usb issue with cp2104)
2024-04-24 16:17:33 +07:00
hathach
eaec0fb139
skip clang rp2040 build
2024-04-24 12:12:39 +07:00
hathach
41f9fd6513
update clion metadata
2024-04-24 11:38:33 +07:00
hathach
36e07093b8
fix samd linker with clang: cannot self-check defined symbol with lld e.g STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0x1000
--> STACK_SIZE = 0
2024-04-24 11:26:22 +07:00
hathach
60f39f7b1e
fix l4 linker with clang
2024-04-24 00:33:56 +07:00
hathach
0e06c4cfdf
clang u5, also bump up cmsis u5 version
2024-04-24 00:03:13 +07:00
hathach
6a39c8b3ff
clang l4
2024-04-23 22:45:36 +07:00
hathach
999177fe39
- fix g4 clang linker
...
- clang work with l0
2024-04-23 22:36:00 +07:00
hathach
d6814a3f3a
clang support for H5
2024-04-23 16:23:27 +07:00
hathach
75d376a439
clang g0, g4
2024-04-23 16:00:28 +07:00
hathach
9e7046cbf1
more stm32 linker fix
2024-04-23 12:57:57 +07:00
hathach
16e099a9f9
integrate msp430 to build cmake
2024-04-23 12:38:55 +07:00
hathach
a42e34701f
fix stm board linker define stack before memory def
2024-04-23 12:32:47 +07:00
hathach
1e882c7c24
clang f7, update cmsis f7 to fix startup bug
2024-04-23 12:22:40 +07:00
hathach
b4d0303a26
clang f4
2024-04-23 12:11:37 +07:00
hathach
0f3d6c61b5
port clang stm32: f1, f2, f3
2024-04-23 12:04:08 +07:00
hathach
f76d38c924
clang work with f0
2024-04-23 11:35:42 +07:00
hathach
a410eb345c
fix ci typo
2024-04-23 11:25:01 +07:00
hathach
81cdf3ce55
bump up gcc to 12.3
2024-04-23 11:17:20 +07:00
hathach
71e0fd11c8
clang skip mcx since it does not work any more with gcc
2024-04-23 11:15:59 +07:00
hathach
3fd82cfe22
clang work with lpc55
2024-04-23 10:57:45 +07:00
hathach
d486a56ded
clang work with lpc54
2024-04-23 10:03:17 +07:00
hathach
31a44c0b7e
fix linker libgcc for nrf
2024-04-22 22:37:37 +07:00
hathach
675daf32e9
skip malloc/free in embedded
2024-04-22 22:33:39 +07:00
hathach
b8f60da8d8
clang work with k64f (nostartfiles)
2024-04-22 22:17:07 +07:00
hathach
8da2970748
clang work with kl25
2024-04-22 22:09:14 +07:00
hathach
c9e467822c
clang work with imxrt tested with metro rt1011 and rt1060 evk. Don't use startfiles for imxrt
2024-04-22 22:00:45 +07:00
hathach
6294e4aa43
update lpcopen
2024-04-22 20:39:30 +07:00
hathach
fd059ee24d
clang compile with lpc40
2024-04-22 20:09:54 +07:00
hathach
06c81d8bee
clang compile with lpc17
2024-04-22 19:52:55 +07:00
hathach
838a58df99
clang work with lpc43
2024-04-22 19:45:27 +07:00
hathach
db30eee0fc
clang tested with mcb1800, add heap to lpc18 linker
2024-04-22 18:31:11 +07:00
hathach
c097c85dcf
fix print lu format warnings with clang
2024-04-22 16:17:22 +07:00
hathach
62331f0207
fix nrfx v3 spim freq when init
...
fix clang build with nrf
2024-04-22 15:55:50 +07:00
hathach
c8e533e612
fix build with nrfx v3, though max3421e spi does not seem to work well.
2024-04-22 14:54:35 +07:00
hathach
2e383bf901
dcd nrf change atoimc_bool to atomic_flag
2024-04-22 12:12:56 +07:00
hathach
9d1d171b0c
- update nrfx to v3.4.0
...
- compile nrf with __STARTUP_CLEAR_BSS and link flag -nostartfiles
2024-04-19 23:17:47 +07:00
hathach
83b4cb178b
adding clang for nrf
2024-04-19 23:17:02 +07:00
hathach
d157abe77c
clang samd21 build but has issue as samd51
2024-04-19 23:17:02 +07:00
hathach
4a183d2e3f
try to add clang for rp2040 but pico-sdk does not support that. (got assert.h file not found)
2024-04-19 23:17:01 +07:00
hathach
be0d62ba6c
clang samd51 compile but does not run, rom is correct, but ram is lacking bss. Got stkerr -> hardfault
2024-04-19 23:17:00 +07:00
hathach
824e39ddeb
more clang update
2024-04-19 23:16:59 +07:00
hathach
5ca68ec049
forgot to specify clang
2024-04-19 23:16:59 +07:00
hathach
982713ad47
add clang to ci build
2024-04-19 23:16:58 +07:00
hathach
3442a87d5b
- clang h743 build and run cdc_msc ok
...
- switch unit test back to gcc, since path to clang conflict on local setup (x86 and arm)
2024-04-19 23:16:57 +07:00
hathach
96f7ca02bf
clang build board test with h743
2024-04-19 23:16:57 +07:00
hathach
9f0e4c2889
run config update
2024-04-19 23:16:56 +07:00
hathach
632a001955
update cmake build
2024-04-19 23:16:55 +07:00
hathach
7545c40003
cmake detect toolchain based on -DCMAKE_C_COMPILER
2024-04-19 23:16:54 +07:00
Ha Thach
0fb73eac7e
Merge pull request #2603 from hathach/nrf-code-format
...
nrf code format
2024-04-18 22:09:49 +07:00
Rbb666
5ee008c997
[add]Add rtthread script support to better integrate into rtthread projects.
2024-04-18 13:31:31 +08:00
hathach
bf29417e5f
code format
2024-04-16 20:58:02 +07:00
Ha Thach
e54023d765
Merge pull request #2354 from slark-yuxj/master
2024-04-16 12:26:34 +07:00
Ha Thach
bebc00a851
Merge pull request #2263 from rgrr/compile-with-old-nordic-sdk
...
dcd_nrf5x: make it compile also with old Nordic SDK
2024-04-16 12:08:13 +07:00
hathach
10a86172ec
fix pre-commit
2024-04-16 12:06:26 +07:00
hathach
e03774be88
skip symlink in pre-commit
2024-04-16 12:06:07 +07:00
yuxiaojun
86710c9bb2
fix: memory leak: buf
...
Signed-off-by: yuxiaojun <yuxiaojun@uniontech.com>
2024-04-16 12:02:14 +07:00
hathach
d82ee79bd0
- in case of mdk conflict to use nrfx v2
...
- allow to force nrfx version with CFG_TUD_NRF_NRFX_VERSION=1
2024-04-16 11:55:03 +07:00
hathach
37a05e0264
revert nvic changes
2024-04-16 11:23:38 +07:00
Hardy Griech
c535a4d42b
catch all nrfx versions with an old API
2024-04-16 11:18:47 +07:00
Hardy Griech
2567fe3fd8
softdevice nvic calls only if old SDK
2024-04-16 11:18:46 +07:00
Hardy Griech
1b0ec6b1bd
make it compile also with old Nordic SDK
2024-04-16 11:18:45 +07:00
Ha Thach
178c4144ad
Merge pull request #1685 from battlesnake/st_synopsys_sof
...
Add SOF support for ST Synopsys port
2024-04-16 11:11:29 +07:00
Ha Thach
f3781a45d8
Merge pull request #1662 from Erlkoenig90/check-usbd-queue-overflow
...
Check for event queue overflow in usbd / dcd_event_handler
2024-04-16 10:58:15 +07:00
hathach
e1c3b5aeab
minor update to sof
2024-04-16 10:57:54 +07:00
Ha Thach
fcb2df8eb9
Merge pull request #1537 from pigrew/endpoint_halt
...
When clearing an endpoint stall, reset DTOG
2024-04-16 10:40:53 +07:00
hathach
189080b684
add TU_ASSERT() to check for adding new usb event
2024-04-16 10:40:24 +07:00
hathach
5dabef79ee
don't check local endpoint stalled status, just carry the request for host.
2024-04-16 10:27:16 +07:00
NConrad
9588c3fac9
USBD: When SET_FEATURE(ENDPOINT_HALT), the DTOG must be reset.
2024-04-16 10:19:16 +07:00
Ha Thach
50738f2ab4
Merge pull request #2588 from hathach/support-ra2a1
...
Enhance dcd rusb2, support ra2a1 pipe number scheme
2024-04-16 00:16:18 +07:00
hathach
6328301bb6
revert to use __builtin_ctz() for optimized time
2024-04-15 23:56:55 +07:00
Ha Thach
fb21b6a67d
Merge pull request #2134 from clhenry/non-bus-powered-re-enumeration
...
Non-bus-powered MSP430 support.
2024-04-15 23:14:10 +07:00
hathach
afb66a955c
update msp430 make build
2024-04-15 22:49:08 +07:00
hathach
9561e38267
install ninja build for msp430
2024-04-15 22:35:52 +07:00
hathach
b2acbd305d
use cmake to build msp430
2024-04-15 12:52:10 +07:00
hathach
bf649988ef
add blocking delay for msp430 with max 25mhz
2024-04-15 12:06:13 +07:00
hathach
abddc850ac
add cmake support for msp430
2024-04-12 11:45:36 +07:00
Ha Thach
d816a9bdf8
Merge pull request #2594 from hathach/more-labler-update
...
Update labeler.yml
2024-04-12 10:59:44 +07:00
Ha Thach
48b1e73402
Merge pull request #2592 from HiFiPhile/fsdev_close
...
FSDEV: Implement dcd_edpt_close_all()
2024-04-12 10:59:30 +07:00
Ha Thach
2fef23d066
Update labeler.yml
2024-04-12 10:57:27 +07:00
HiFiPhile
049ceda315
Implement dcd_edpt_close_all()
2024-04-11 22:02:59 +02:00
HiFiPhile
dfef0bc81b
Cleanup
2024-04-11 22:01:57 +02:00
Ha Thach
6144da9602
Merge pull request #2574 from HiFiPhile/fsdev
...
FSDEV fix/cleanup.
2024-04-11 21:11:27 +07:00
Clifroy Henry
5d3b0896e1
Removed trailing whitespace.
2024-04-11 20:57:40 +07:00
Clifroy Henry
a3286932ad
Correctly implementing recommended workarounds for erratas USB4 and USB10.
2024-04-11 20:57:40 +07:00
Clifroy Henry
b8b22b929e
Allow re-enumeration on host power cycle.
2024-04-11 20:57:39 +07:00
Clifroy Henry
5a9b3eab6f
Resolve erroneous data on enumeration.
2024-04-11 20:57:38 +07:00
Clifroy Henry
87905d30ab
Increase bus powe stabilization delay.
2024-04-11 20:57:37 +07:00
Clifroy Henry
0ce2452a08
Add non-bus-powered MSP430 re-enumeration support.
2024-04-11 20:57:37 +07:00
hathach
0f775630c7
rename, invert logic for iso_in_sending. Also limit its usage to ISO endpoint
2024-04-11 20:53:44 +07:00
hathach
535571c3d2
- remove redundant call of pcd_set_ep_rx_cnt()
...
- minor code format
2024-04-11 19:25:02 +07:00
hathach
b992b6d7a6
apply find_pipe() and forloop for hcd
2024-04-11 12:06:13 +07:00
Ha Thach
c83e28ca85
Merge pull request #2589 from HiFiPhile/dwc_close
...
dwc2: flush fifo in dcd_edpt_close_all()
2024-04-11 11:56:58 +07:00
Ha Thach
6bc4aae37d
Merge pull request #2591 from hathach/labeler-pull_request_target
...
use pull_request_target for labeler
2024-04-11 11:05:51 +07:00
hathach
79cbe93fcf
separate flush tx/rx fifo
2024-04-11 11:02:54 +07:00
hathach
3991ff34f1
use pull_request_target for labeler
2024-04-11 10:50:26 +07:00
HiFiPhile
03cfe90f3e
flush fifo in dcd_edpt_close_all()
2024-04-10 22:21:53 +02:00
hathach
daf1c7303c
fix mask typo for brdysts when using pipe9
2024-04-10 20:09:11 +07:00
hathach
241e436d19
support ra2a1 pipe numbering, fix ra2a1 ek led/button. Though usb not enumerated yet, probably due to bsp/clock setup
2024-04-10 19:17:23 +07:00
hathach
fb69d80e70
use for loop instead of__builtin_ctz() which is not portable (e.g with ccrx)
2024-04-10 18:26:56 +07:00
Ha Thach
f1944f2b37
Merge pull request #2587 from hathach/revert-pr2245
...
Revert PR #2245
2024-04-10 17:24:05 +07:00
hathach
a173e6ed13
revert pr2245
2024-04-10 17:02:35 +07:00
Ha Thach
aa076476fc
Merge pull request #2223 from arntsonl/hid_host_get_report
...
Add tuh_hid_get_report(...) to hid_host.h
2024-04-10 16:06:07 +07:00
Luke A
804a73a454
Adding tuh_hid_get_report(...) to hid_host.h
...
This allows USB host functionality to call HID_REQ_CONTROL_GET_REPORT on the IN Endpoint, and read the report buffer in the callback.
2024-04-10 15:46:57 +07:00
Ha Thach
b0829ed999
Merge pull request #2586 from hathach/fix-2097
2024-04-10 10:36:27 +07:00
Ha Thach
b15b560539
Merge pull request #2585 from hathach/dwc2-txfifo-empty-level
2024-04-10 10:36:06 +07:00
hathach
1e41b9725a
remove the usage of TU_BIT() and TU_GENMASK() from tusb_types.h
2024-04-10 10:13:36 +07:00
hathach
724ef1af8d
set txfifo empty level to complete and change back fifo tx to normal size
2024-04-10 09:58:43 +07:00
HiFiPhile
3ecabe3ebe
Fix stm32h573i_dk button & led.
2024-04-09 23:55:38 +02:00
HiFiPhile
0d4465a098
Optimize audio_4_channel_mic waveform data.
2024-04-09 23:21:01 +02:00
HiFiPhile
5f4d6ae20c
Fix STM32L0 IAR build.
2024-04-09 23:09:43 +02:00
HiFiPhile
402b084646
Format doc.
2024-04-09 23:00:29 +02:00
HiFiPhile
146c3c6945
Cleanup.
2024-04-09 22:59:48 +02:00
HiFiPhile
c0824472e8
Enable double buffer only for PMA > 1024b
2024-04-09 22:15:18 +02:00
HiFiPhile
472996e2bf
Ignore spurious RX interrupt.
2024-04-09 18:32:03 +02:00
HiFiPhile
973d29acd0
Rework ISO double buffering.
2024-04-09 18:32:03 +02:00
HiFiPhile
41fb2b69f7
Rework macro according to ST driver.
2024-04-09 18:32:03 +02:00
HiFiPhile
bf3e9b8653
Refactor edpt_xfer(), support double buffering in dcd_pma_alloc().
2024-04-09 18:32:02 +02:00
HiFiPhile
68b973aa9f
Reduce uac2_headset max sample rate for better compatibility.
2024-04-09 18:32:02 +02:00
HiFiPhile
00db422745
Cleanup ep/pma free, ISO ep should use alloc/activate.
2024-04-09 18:32:02 +02:00
Ha Thach
9986bd8908
Merge pull request #2584 from hathach/dwc2-interrupts
...
Dwc2 interrupts (based on #2050 )
2024-04-09 23:10:04 +07:00
hathach
2bce68a065
Merge branch 'master' into dwc2-interrupts
2024-04-09 22:04:43 +07:00
Ha Thach
68a08e33d2
Merge pull request #2583 from hathach/labler-permission
...
add permission to lable issue/pr
2024-04-09 19:56:31 +07:00
hathach
bf240ce9bb
add permission to lable issue/pr
2024-04-09 19:50:10 +07:00
Ha Thach
9506e2c972
Merge pull request #2582 from HiFiPhile/uvc_typo
...
Fix pointer typo in video_capture_2ch
2024-04-09 19:48:32 +07:00
HiFiPhile
455a2879fb
Fix typo.
2024-04-09 12:48:27 +02:00
Ha Thach
9e227182e6
Merge pull request #2580 from hathach/labeler-more-catch
...
more try/catch for labeler
2024-04-09 17:41:23 +07:00
hathach
ec1a06843c
more try/catch for labeler
2024-04-09 17:37:12 +07:00
Ha Thach
a5b109b699
Merge pull request #1580 from MatiMcFly/master
...
Fixing Renesas register write protection and some compiler warnings in static code analysis
2024-04-09 17:25:23 +07:00
Ha Thach
1195fa8ee3
Merge pull request #2579 from HiFiPhile/uvc_race
...
Fix tud_video_n_streaming check
2024-04-09 17:23:31 +07:00
hathach
6c2f71ad19
make veryfi static in ccrx consistent with the rest
2024-04-09 17:12:15 +07:00
hathach
27fc8a21cd
update gr_citrus as well
2024-04-09 17:07:59 +07:00
hathach
2828a56a4f
apply oldPRCR to board_init()
2024-04-09 17:05:25 +07:00
HiFiPhile
b0568e32a5
Fix tud_video_n_streaming check
2024-04-09 11:11:06 +02:00
Matthias Schär
bd67fdf011
Renesas RX controllers: Recover the previous state of the system write protect register in functions that are called within init-code
2024-04-09 12:15:32 +07:00
Matthias Schär
385611c5a9
Revert "Fixed behavior of the PRCR register. Previous write protection will be recovered."
...
This reverts commit 4d7296109e31690972d8cf09e6138131938cb0ed.
2024-04-09 12:14:27 +07:00
Matthias Schär
5c7876d444
Fixed behavior of the PRCR register. Previous write protection will be recovered.
2024-04-09 12:13:38 +07:00
HiFiPhile
adc7a78fd6
Merge branch 'master' of github.com:HiFiPhile/tinyusb into vendor_fifo
2024-04-08 21:44:14 +02:00
Ha Thach
42decf28f1
Merge pull request #1835 from MasterQ32/otg_bringup
...
Implements deinit functions for host/device mode switch
2024-04-08 23:48:52 +07:00
hathach
be25a3fc20
revert usbd driver name change to be backward compatible
2024-04-08 22:56:22 +07:00
hathach
4bc6a5feb7
fix unused warning
2024-04-08 22:22:00 +07:00
hathach
366564e952
fix missing if mutex required
2024-04-08 22:13:05 +07:00
hathach
c3c0648456
add class driver deinit
2024-04-08 22:07:56 +07:00
Felix "xq" Queißner
47c12a07f2
Implements tuh_deinit() and tud_deinit() to uninitialize host/device mode.
2024-04-08 19:00:35 +07:00
Ha Thach
d33fe38a62
Merge pull request #1363 from tobozo/master
...
HID Mouse with absolute positioning
2024-04-08 18:33:40 +07:00
Ha Thach
b90eccccfd
Merge pull request #2575 from HiFiPhile/dwc2_free
...
dwc2: remove fifo free code.
2024-04-08 18:27:21 +07:00
Ha Thach
872864e397
Merge pull request #2567 from HiFiPhile/iso_alloc
...
ISO endpoint allocation improvments
2024-04-08 16:24:50 +07:00
Ha Thach
bc10394e66
Merge pull request #2577 from hathach/max3421-configuration
...
add cpuctl and pinctl to tuh_configure() option for max3421
2024-04-08 14:24:16 +07:00
hathach
cbbfbbb57e
add cpuctl and pinctl to tuh_configure() option for max3421
2024-04-08 13:16:08 +07:00
Ha Thach
af1346c748
Merge pull request #2466 from wavenumber-eng/MCX
...
TinyUSB stack ported to MCXA and MXCN freedom boards.
2024-04-08 12:30:25 +07:00
hathach
d6d8acad90
add CFG_EXAMPLE_VIDEO_READONLY for mcxa15
2024-04-08 11:15:21 +07:00
hathach
7f7dca7b15
fix configENABLE_FPU=0 for cortex-m33+nodsp
2024-04-08 11:04:15 +07:00
Ha Thach
ffab7bf9dd
Merge pull request #2538 from kkitayam/add_uvc_2ch_example
...
Add an example of 2ch video capture.
2024-04-08 10:52:29 +07:00
HiFiPhile
e642066562
Move TUP_DCD_EDPT_ISO_ALLOC outside usbd_edpt_close() loop.
2024-04-06 19:02:50 +02:00
HiFiPhile
5fd6241d28
Merge branch 'iso_alloc' of github.com:HiFiPhile/tinyusb into iso_alloc
2024-04-06 19:02:14 +02:00
hathach
dd3db9cc0c
fix ra2a1 fpu with freertos
2024-04-06 00:18:51 +07:00
HiFiPhile
e160366a1e
dwc2: remove fifo free code.
2024-04-05 19:12:28 +02:00
hathach
c97c3418c7
minor update bsp
2024-04-05 20:31:55 +07:00
hathach
757a1726e8
rename frdm board
2024-04-05 18:33:58 +07:00
hathach
4b59f80100
more reverted: re-add clock_config.h
2024-04-05 18:09:29 +07:00
hathach
1c5abc835f
Merge branch 'master' into MCX
2024-04-05 17:59:38 +07:00
hathach
5ce4585884
fix pre-commit format
2024-04-05 17:14:51 +07:00
hathach
7fff83086f
more reverted changes
2024-04-05 17:08:22 +07:00
hathach
caf2c5e0b7
reverted un-related file changes
2024-04-05 17:04:33 +07:00
hathach
2f9700dc2b
fix ram overflow with ram41
2024-04-05 16:28:17 +07:00
hathach
5b2441d8a3
support CFG_EXAMPLE_VIDEO_READONLY for stream0 for small mcu
2024-04-05 16:12:31 +07:00
hathach
df1f84adad
change .bss section from ramloc32 to ramloc40 for lpc43xx
2024-04-05 13:12:58 +07:00
hathach
34737f9c60
update uvc 2ch to stream0 use yuy2, stream1 use mpeg
...
this help reduce sram requirement for example, also provide different format (uncompressed & mpeg)
2024-04-05 00:55:48 +07:00
hathach
34870d3481
update linker for lpc18, move bss to ramloc40 to have more space for .data in ramloc32
2024-04-05 00:52:23 +07:00
Ha Thach
5738757e2c
Merge pull request #2421 from antoniovazquezblanco/debug
...
Log outbound xfer bytes while in debug
2024-04-04 18:34:26 +07:00
Ha Thach
802ad885ab
minor update
2024-04-04 17:15:38 +07:00
Ha Thach
177b388be0
Merge pull request #2571 from hathach/fix-max3421-rp2040-build
...
fix build with rp2040 + max3421
2024-04-04 14:35:29 +07:00
hathach
ebe6923500
update build script to allow skip.txt and only.txt both exist
2024-04-04 14:10:48 +07:00
hathach
f603c4a330
skip cdc_msc_hid_freertos example for rp2040
2024-04-04 13:01:16 +07:00
hathach
93fb3b00de
fix build with gcc 11
2024-04-04 12:51:07 +07:00
hathach
7910cc2981
fix build with rp2040 + max3421
...
- forward MAX3421_HOST=1 from makefile to cmake
- add feather_rp2040_max3421 board to run with ci for rp2040 + max3421
2024-04-04 10:55:14 +07:00
Ha Thach
66cdf6d097
Merge pull request #2514 from camilaodsouza/sdk_3.2_update
...
Changes required for new SDK 3.2.0
2024-04-03 23:58:18 +07:00
hathach
11722cc533
add note for sdk v2 and v3, also add check if allocreq failed
2024-04-03 23:08:15 +07:00
hathach
594833374c
add new example to cmake include list
2024-04-03 22:24:04 +07:00
Mengsk
e4ceb0a865
Merge branch 'master' of https://github.com/hathach/tinyusb into iso_alloc
2024-04-03 12:00:49 +02:00
Ha Thach
b8d4684683
Merge pull request #2569 from hathach/fix-labler-error
...
try catch labeler rest api
2024-04-03 13:09:24 +07:00
hathach
252e630433
try catch labeler rest api
2024-04-03 13:05:53 +07:00
HiFiPhile
2e4d4e4a01
Add endpoint ISO allocation to video class.
2024-04-02 20:54:33 +02:00
HiFiPhile
db28437218
Move endpoint alloc define to tusb_mcu.h
2024-04-02 20:54:33 +02:00
HiFiPhile
60acb990b6
Merge pull request #1702 from battlesnake/uac2-interrupt-endpoint
...
UAC2 supports interrupt-endpoint for providing control-change notifications to the host
2024-04-02 20:19:58 +02:00
Ha Thach
0062e12113
Merge pull request #2568 from hathach/max3421-check-cfg-param
2024-04-03 00:50:53 +07:00
Ha Thach
f8dc3b97be
check cfg_param pointer
2024-04-02 22:47:50 +07:00
Ha Thach
a70109697f
Merge pull request #2566 from hathach/max3421-correct-max-nak
...
correct max nak
2024-04-02 20:59:53 +07:00
Ha Thach
9fb1fb9044
correct max nak
2024-04-02 20:39:06 +07:00
Ha Thach
29cdd6a9c2
Merge pull request #2565 from hathach/max3421-limit-max-nak
2024-04-02 20:31:15 +07:00
HiFiPhile
7cd947f96c
Add endpoint ISO allocation to video class.
2024-04-02 15:29:54 +02:00
Ha Thach
8936096846
max3421 limit max nak
2024-04-02 19:56:39 +07:00
HiFiPhile
d692d5ab3a
Move endpoint alloc define to tusb_mcu.h
2024-04-02 14:33:47 +02:00
hathach
18a458679f
Merge branch 'master' into MCX
2024-04-02 18:14:49 +07:00
Ha Thach
574916f530
Merge pull request #2497 from ChrisDeadman/sparkfun-samd21-mini-usb-support
...
sparkfun_samd21_mini_usb board support
2024-04-02 17:59:52 +07:00
Ha Thach
bc75881a40
Merge pull request #2563 from wjklimek1/master
...
Support for STM32H503 MCU
2024-04-02 17:24:09 +07:00
Ha Thach
2265bfeab6
Merge pull request #2543 from IngHK/max3421_nak_retry
...
MAX3421E NAK retry handling next frame
2024-04-02 17:13:54 +07:00
hathach
f2859287df
check for PWR_USBSCR_USB33DEN before enabling USB VDD
2024-04-02 17:11:22 +07:00
hathach
172c9f70c7
clean up
2024-04-02 16:55:49 +07:00
hathach
7d3d60f96d
add hcd_configure() to change max NAK dynamically
2024-04-02 16:38:40 +07:00
hathach
e802fe0677
refactor: add hxfr per endpoint
2024-04-02 16:04:03 +07:00
hathach
bd2210b812
always limit number of NAK per endpoint per usb frame to save cpu usage. Default to 1 NAK per endpoint
2024-04-02 12:36:00 +07:00
HiFiPhile
4b993708c9
Minor format
2024-04-01 21:30:36 +02:00
HiFiPhile
6cf27986b6
UAC2: add interrupt volume control to uac2_headset example.
2024-04-01 20:39:48 +02:00
HiFiPhile
7ca988018e
UAC2: fix mounted condition.
2024-04-01 20:02:45 +02:00
HiFiPhile
05f9cab191
UAC2: refactor interrupt endpoint support.
2024-04-01 20:02:35 +02:00
Wojciech Klimek
4fcfb30f81
Fixed trailing whitespace in family.c
2024-04-01 15:20:57 +02:00
Wojciech Klimek
057278c0c6
Support for STM32H503 MCU - review changes
...
Implemented changes suggested in the review:
- restored original name of SystemClock_Config() function
- some GPIO clocks are only enabled if macros are defined
- moved GPIO clocks init back to family.c
2024-04-01 14:51:46 +02:00
HiFiPhile
a1f01fcbe0
Merge remote-tracking branch 'upstream/master' into pr/1702
2024-04-01 12:35:57 +02:00
HiFiPhile
9570836cec
Merge branch 'master' of https://github.com/hathach/tinyusb into vendor_fifo
2024-04-01 12:20:20 +02:00
Wojciech Klimek
943a2a6db3
Support for STM32H503 MCU
...
- added support for STM32H503RB on H503RB-NUCLEO board
- modified H5 family.c file to allow portability between H503 and H565/H573
- redefined USB_DRD_BASE to USB_DRD_FS_BASE if STM32H503xx is used
2024-03-31 23:11:49 +02:00
Ha Thach
82dfe95655
Merge pull request #2560 from hathach/fix-h5-errata-2.15.1
...
Follow up to h5 errata 2.15.1
2024-04-01 00:03:10 +07:00
hathach
fc54ad43b1
move walkaround to dcd_ep_ctr_rx_handler(), increase cycle_count from 10 to 20 (40 cycle)
2024-03-31 21:54:40 +07:00
hathach
27afa56844
rename dcd_stm32_fsdev_pvt_st.h to simply dcd_stm32_fsdev.h
2024-03-31 18:42:49 +07:00
hathach
ac4e649e56
code format
2024-03-31 18:41:59 +07:00
Ha Thach
fadd9524c1
Merge pull request #2559 from hathach/fix-hid-close-not-clear-data
...
fix hid close not clear data
2024-03-31 18:29:54 +07:00
hathach
2012a0d369
fix hid close not clear data
2024-03-31 15:48:26 +07:00
IngHK
14ce05fea3
Merge remote-tracking branch 'remotes/hathach/master' into max3421_nak_retry
2024-03-31 10:28:53 +02:00
IngHK
b644e4d955
fixed spelling
2024-03-31 10:27:54 +02:00
IngHK
fe304576d0
reactivated TU_ASSERT(_hcd_data.hirq & HIRQ_SNDBAV_IRQ,);
2024-03-31 10:27:15 +02:00
IngHK
37cce8746d
updated all tusb_config.h
2024-03-31 10:27:15 +02:00
IngHK
8ded6d3d2e
added some description to tusb_option.h
2024-03-31 10:27:15 +02:00
IngHK
c1a17a7369
removed debug code
2024-03-31 10:27:15 +02:00
IngHK
fbb2818864
added multiple attemp counting per frame
2024-03-31 10:27:14 +02:00
IngHK
79bc09a68c
improved code readability
2024-03-31 10:27:00 +02:00
IngHK
f3fccaad26
improved/fixed trigger 1st retryable EP
2024-03-31 10:27:00 +02:00
IngHK
0bb26c97c3
removed redundant return true;
2024-03-31 10:27:00 +02:00
IngHK
009d85722b
replaced bits xfer_pending, xfer_complete and retry_pending by common 4 bits state
2024-03-31 10:26:59 +02:00
IngHK
11a54bc8e1
renamed define NAK_RETRY_HANDLING to CFG_TUH_MAX3421_MAX_ATTEMPS_PER_FRAME as official option
2024-03-31 10:26:39 +02:00
IngHK
818c64efec
fixed EP0 control handling
2024-03-31 10:26:39 +02:00
IngHK
998090d1a7
added further debug log outputs
2024-03-31 10:26:12 +02:00
Ha Thach
32743f112c
Merge pull request #2333 from HiFiPhile/dwc2_alloc
...
dwc2: add endpoint allocation support.
2024-03-31 15:05:01 +07:00
hathach
85420c61c7
minor clean up
2024-03-31 13:49:41 +07:00
HiFiPhile
8055bc88d8
Code refactor.
2024-03-30 10:36:29 +07:00
HiFiPhile
4116a962a6
Flush FIFO on bus reset.
2024-03-30 10:36:28 +07:00
HiFiPhile
cab1106416
dwc2: add endpoint allocation support.
2024-03-30 10:36:27 +07:00
Ha Thach
9a981237df
Merge pull request #2557 from hathach/fix-rp2-debug3
...
fix rp2 debug build with level 3
2024-03-29 11:45:10 +07:00
hathach
b9400df4c8
fix rp2 debug build with level 3
2024-03-29 11:23:36 +07:00
Ha Thach
5ff6e0f992
Merge pull request #2546 from tannewt/unplug_on_deinit
...
Fake unplug devices when a root hub is deinit
2024-03-28 22:23:11 +07:00
hathach
ddb1034a9c
use hub_addr=0, hub_port=0 for removing root hub port
2024-03-28 21:45:52 +07:00
Scott Shawcroft
d50003e33d
Fake unplug devices when a root hub is deinit
2024-03-28 21:41:59 +07:00
Ha Thach
a5a90937b4
Merge pull request #2549 from duckylotl/patch-1
...
forward declare board_millis for OPT_OS_CUSTOM
2024-03-28 20:58:59 +07:00
Ha Thach
eaab04fefa
Merge pull request #2550 from hathach/usbh-unroll-hub-remove
...
Usbh unroll hub removal
2024-03-28 20:57:19 +07:00
hathach
3dcb7362aa
fix build when CFG_TUH_HUB == 0
2024-03-28 19:18:20 +07:00
hathach
0da1da942a
enhance hub removal using while loop to unroll recursive instead of event queue.
2024-03-28 16:32:02 +07:00
duckylotl
275e2f318e
forward declare board_millis for OPT_OS_CUSTOM
2024-03-28 10:27:07 +01:00
Ha Thach
35aa9d06e1
Merge pull request #2547 from hathach/labeler-change-token-1
...
Change labeler token
2024-03-28 12:43:02 +07:00
Ha Thach
62864d5356
Update labeler.yml
2024-03-28 12:12:07 +07:00
Camila
307cce92c4
Improved SDK 3.2.0 compatibility
...
- Used usbdev_allocreq for compatibility with SDK 3.2.0
- Wrapped previous code in #ifdef for legacy compatibility
2024-03-26 19:48:08 +01:00
Ha Thach
925ad67f97
Merge pull request #2544 from hathach/hil-pi4-usbreset-hub2.0
...
use usbreset to reset built-in usb 2.0 hub VIA Labs before each test
2024-03-26 17:30:44 +07:00
hathach
7f1e327be3
add sudo usbreset
2024-03-26 17:13:02 +07:00
hathach
ecea890fdc
use usbreset to reset built-in usb 2.0 hub VIA Labs before each test
2024-03-26 16:56:13 +07:00
IngHK
9fdb1c1684
draft MAX3421E NAK retry handling next frame
2024-03-26 08:12:24 +01:00
Ha Thach
0cb7204e60
Merge pull request #2542 from hathach/max3421-hcd-deinit
...
implement hcd_deinit() for max3421
2024-03-26 11:45:52 +07:00
hathach
64bc0aac55
update doc index.rst to match readme.rst (duplicated)
2024-03-26 10:39:51 +07:00
hathach
fbb20373c1
implement hcd_deinit() for max3421
2024-03-26 10:26:42 +07:00
kkitayam
6a14dd190f
Fix compile errors when High Speed
2024-03-25 23:24:24 +09:00
kkitayam
8f04d96c07
Add small RAM MCUs/boards to skip list
2024-03-25 23:15:49 +09:00
Ha Thach
5b0e255f7e
Merge pull request #2530 from hathach/add-tuh-deinit
2024-03-25 19:15:39 +07:00
Ha Thach
0814ca0cc7
Merge pull request #2515 from Lurcy38/ReAlignMaster
2024-03-25 19:14:58 +07:00
Ha Thach
29f016ae15
fix pre-commit
2024-03-25 18:59:05 +07:00
Ha Thach
0610070d07
Update dcd_stm32_fsdev_pvt_st.h
2024-03-25 18:44:51 +07:00
hathach
a7a65e5d6d
add delete API for rtthread
2024-03-25 18:30:03 +07:00
hathach
98b8e960aa
Merge branch 'master' into add-tuh-deinit
2024-03-25 17:46:28 +07:00
Ha Thach
c028cfa7cf
Merge pull request #2540 from hathach/add-auto-label
...
add new labeler workflow
2024-03-25 14:04:44 +07:00
hathach
a555266174
add new labeler workflow
2024-03-25 13:54:35 +07:00
HiFiPhile
3ec22e24ed
Merge pull request #2472 from cdesjardins/master
...
Do not enable the Mode mismatch interrupt source, it is not cleared
2024-03-24 15:27:44 +01:00
kkitayam
5a880013c8
Add UVC 2ch example
2024-03-24 22:31:47 +09:00
HiFiPhile
81e4f65ddd
Merge pull request #2533 from kkitayam/fix_error_on_cmd
...
Fix the error that occurs when executing make on Windows
2024-03-24 11:40:29 +01:00
kkitayam
aba00ed22c
Fix the error that occurs when executing make in Windows
2024-03-23 22:35:06 +09:00
acscd
c8805c61f9
Add files via upload
2024-03-22 20:05:52 -05:00
Ha Thach
67cd8349d6
Merge pull request #2526 from hathach/fix-uvc-hardfault
...
Fix uvc hardfault
2024-03-22 21:23:14 +07:00
hathach
94c27fcdf7
skip rp2040 build for cdc_msc_hid_freertos
2024-03-22 20:19:12 +07:00
hathach
ad5c449f1e
bump up download artifacts to v4
2024-03-22 20:12:25 +07:00
hathach
54e35dd3cf
bump up upload artifact to v4
2024-03-22 18:52:52 +07:00
hathach
baffadca91
remove pca10095 suppport for max3421
...
also remove pico_bootsel_via_double_reset from rp2040
2024-03-22 17:54:08 +07:00
hathach
e84c9f3e22
implement tuh_init()
...
change usbh driver init() return type from void to bool
2024-03-22 16:12:57 +07:00
hathach
31f68495cf
update osal API
...
add osal_semaphore_delete(), osal_mutex_delete(), osal_queue_delete()
2024-03-22 16:10:26 +07:00
hathach
5774ac9886
add tu_edpt_stream_deinit()
2024-03-22 12:53:31 +07:00
hathach
2cf171095e
code format
2024-03-22 12:45:23 +07:00
hathach
74bd264758
adding deinit() stub for usbh/hcd class driver
...
add TUSB_VERSION_BUILD, also add TUSB_VERSION_NUMBER
2024-03-22 11:42:33 +07:00
hathach
08b09926a4
add note for max3421e is not signal compatible with pca10056/95
2024-03-22 11:12:40 +07:00
Ha Thach
60764de564
Merge pull request #2527 from tannewt/idf5.2.1
...
Tweaks for ESP-IDF 5.2.1
2024-03-21 10:21:29 +07:00
Scott Shawcroft
61a31db8ec
Tweaks for ESP-IDF 5.2.1
2024-03-20 15:20:24 -07:00
hathach
ff12544c9a
added dedicate buffer for probe commit payload
2024-03-20 22:45:46 +07:00
hathach
5630030a22
improve uvc debug message
2024-03-20 17:55:31 +07:00
hathach
6352081ded
code format
2024-03-20 17:55:31 +07:00
Koji KITAYAMA
a4101c4174
Merge pull request #2520 from lijunru-hub/fix/uvc_support_multiple_interface
...
fix: uvc multiple interface support
2024-03-19 22:40:13 +09:00
Li Junru
5d1f6934fb
fix: uvc multiple interface support
...
1. fix next interface may have IAD_DESC
2. fix vs_itf can't be open on bulk mode.
2024-03-18 10:20:36 +08:00
Tommie Gannert
9e674fa109
[usbtmc] cast to uintptr_t to get rid of const for usbd_edpt_xfer.
2024-03-15 15:02:13 +01:00
henneboi
f9c85ae47b
IAR Warning: Fixed due to an boolean operation between enum (Pa089)
...
Warning[Pa089]: enumerated type mixed with another enumerated type ...tusb_uac2_audio.c 199
This issue stops the build if we treat warning as error
2024-03-14 09:13:12 +01:00
henneboi
5a854ef2dc
dcd_stm32_fsdev.c: Fix a bug seend with stm32h5xxx when the driver is compiled with cubeide O1/O2/O3
2024-03-14 09:13:12 +01:00
HiFiPhile
7c66f9b2a4
Merge pull request #2473 from kaidegit/patch-1
...
use rt-thread 5+ mq recv api
2024-03-13 16:28:28 +01:00
Ha Thach
15775727e7
Merge pull request #2492 from tlyu/fix-rp2040-ctrl-xfer
...
work around possible RP2040 erratum
2024-03-13 12:02:08 +07:00
hathach
834e2c9560
usbd only process last setup packet in the event queue
2024-03-13 11:46:23 +07:00
hathach
6dc714b6de
- only abort ep0 if it is active
...
- rename reset_ep0_pid() to reset_ep0()
- minor update log message
2024-03-13 11:41:58 +07:00
hathach
2f0ad918cc
Merge branch 'master' into fix-rp2040-ctrl-xfer
2024-03-12 16:59:12 +07:00
Ha Thach
6b7ceed25c
Merge pull request #2516 from hathach/minor-code-format
...
Minor code format
2024-03-12 16:55:00 +07:00
hathach
2a4b27ed33
add led blinky to cdc_dual_ports example
2024-03-11 22:00:21 +07:00
hathach
5653232144
reformat code
2024-03-11 21:59:30 +07:00
Camila
eed3747661
Changes required for SDK 3.2.0:
...
- Define EP_ALLOCREQ
- Define EP_FREEREQ
- Define EP_ALLOCBUFFER
- Define EP_FREEBUFFER
Those were previously defined in spresense-exported-sdk, but now have been removed.
2024-03-11 13:11:07 +01:00
Deadman
0a2444e100
sparkfun_samd21_mini_usb board support
2024-03-09 03:21:52 +01:00
Ha Thach
a0e5626bc5
Merge pull request #2503 from hathach/tuh-set-config-abort-all-ep
...
[host] abort all pending transfer when SET_CONFIGURATION is complete
2024-03-04 18:07:35 +07:00
hathach
1d3969acbd
- usbh enumeration: move _parse_configuration_descriptor after SET_CONFIGURATION is successful
...
- usbh: abort all pending xfer when SET_CONFIGURATION is complete
- use tu_edpt_release in tuh_edpt_abort_xfer instead of usbh_edpt_release
- rename _xfer_complete -> _control_xfer_complete
2024-03-04 17:44:53 +07:00
hathach
ff76eca311
code reformat
2024-03-04 17:38:44 +07:00
hathach
9b6f13716f
correct rp2040 host with max3421
2024-03-04 16:14:53 +07:00
Ha Thach
6a9bca9ed3
Merge pull request #2500 from hathach/add-tuh-hid-abort
...
Add tuh hid abort
2024-03-04 15:48:44 +07:00
HiFiPhile
5c8b3d97f0
Use FIFO size as condition.
2024-03-03 20:11:20 +01:00
hathach
4f5d80d397
add tuh_hid_receive_abort() API
2024-03-01 17:40:38 +07:00
hathach
4ed02ae5f9
reformat code hid_host.c
...
- fix ceedling with ruby 3.1
- allow overwrite CMAKE_C_COMPILER/CMAKE_CXX_COMPILER from command line
2024-03-01 17:34:14 +07:00
Taylor Yu
473d400cfd
work around possible RP2040 erratum
...
RP2040 device controller does not seem to clear pending transactions
configured in EP0 buffer controls when the host aborts a control
transfer. This causes assertion failures, including when a buffer
AVAILABLE flag set for a previous transfer causes an unexpected
transaction completion.
2024-02-26 09:25:51 -06:00
Tommie Gannert
5ce7b14711
add notification support for device class USBTMC.
...
The ep_int_in is already used for responding to USB488
READ_STATUS_BYTE requests, but that EP is defined for all of USBTMC.
This extends the functionality to let callers send notifications and
receive ACKs.
2024-02-26 11:43:45 +01:00
Ha Thach
2720392a15
Merge pull request #2490 from IngHK/compiler_warning
...
fixed compiler warning src/tusb.c
2024-02-26 11:59:11 +07:00
Jerry Palacios
2a21b6980b
MCX family pointing to updated mcux-sdk repository
2024-02-24 17:16:32 -06:00
IngHK
23450d4f6b
fixed compiler warning src/tusb.c
2024-02-24 15:51:02 +01:00
Ha Thach
f21b792712
Merge pull request #2489 from hathach/fix-non-crystal-less-ci-fs
...
fix crytsal-less access on unsupported kinetis mcu
2024-02-24 17:43:53 +07:00
hathach
a52b4647ec
only save/restore CLK_RECOVER_IRC_EN/CTRL if FSL_FEATURE_USB_KHCI_IRC48M_MODULE_CLOCK_ENABLED is defined to 1
2024-02-24 17:18:30 +07:00
Ha Thach
21de8245ae
Merge pull request #2168 from emb4fun/nxp_k64
...
Added support for the NXP K64 series
2024-02-24 01:11:01 +07:00
hathach
65a2e5cdf8
fix build with cpu without USB_CLK_RECOVER using old dcd_khci driver
2024-02-24 00:53:05 +07:00
hathach
354998e96c
update freertosconfig
2024-02-24 00:41:46 +07:00
hathach
3d3bf45102
frdm k64f usb work well, add kinetis_k to ci cmake
2024-02-24 00:36:07 +07:00
hathach
a1bfde83fb
adding frdm k64f, board test run well with led, button and uart
2024-02-23 13:18:52 +07:00
Jerry Palacios
ec91660119
Revert "Merge branch 'hathach:master' into MCX"
...
This reverts commit 6afd4a57896f9c9e794de3ab6eabc73d18be4bd0, reversing
changes made to 5c14bd13da211ff2679115b0dba96ac80c1a516c.
2024-02-22 16:11:23 -06:00
jerpa77
6afd4a5789
Merge branch 'hathach:master' into MCX
2024-02-22 15:47:45 -06:00
Ha Thach
be5cc44f55
Merge pull request #2487 from hathach/update-cdc_msc_freertos-example
...
slightly change cdc_msc_freertos example
2024-02-22 20:15:56 +07:00
hathach
13d26d2166
slightly change cdc_msc_freertos example
2024-02-22 19:20:28 +07:00
Ha Thach
a2446068d3
Merge pull request #2420 from zx96/use-cfg-tud-msc-log-level
...
msc_device: Fix check for including MSC lookup tables
2024-02-22 18:03:51 +07:00
Ha Thach
0f3d28593d
Merge pull request #2484 from eightycc/uninited
...
video_device: fix uninitialized variable warning
2024-02-21 21:50:42 +07:00
Jerry Palacios
5c14bd13da
MCX A and MCX N merged to MCX family
2024-02-20 18:02:42 -06:00
Bob Abeles
3f2df94457
video_device: fix uninitialized warning
2024-02-20 08:16:39 -08:00
Ha Thach
65e60f3123
Merge pull request #2463 from kasjer/kasjer/nrf5x-isoout-corruption-detection
...
nrf5x: Handle ISOOUT CRC errors
2024-02-20 14:06:08 +07:00
Ha Thach
09589a6363
Merge pull request #2481 from xudongzheng/pca10095-pr
...
Fix nRF5340 DK USB host shield build
2024-02-20 12:56:42 +07:00
Xudong Zheng
1315bc196c
Fix nRF5340 DK USB host shield build
...
- Fix incorrect UART pins
- Enable MAX3421 host shield
- Use GPIOTE1_IRQn instead of GPIOTE_IRQn
2024-02-19 16:52:09 -05:00
Rocky04
d0373f4749
Opt-out for USB Test-Mode
2024-02-19 17:44:18 +00:00
Ha Thach
d241f32342
Merge pull request #2480 from hathach/fix-k32l2-clock
...
add clock_config.c/h from mcux to frdmk32l2a4 and frdm_k32l2b
2024-02-19 20:34:44 +07:00
hathach
e361b1a9ba
add clock_config.c/h from mcux to frdmk32l2a4 and frdm_k32l2b
2024-02-19 18:45:03 +07:00
Ha Thach
8469fafb10
Merge pull request #2479 from hathach/fix-ohci-volatile-2318
...
fix wrong volatile usage in ohci gtd
2024-02-19 18:35:09 +07:00
Ha Thach
e9dc8f3e7d
fix wrong volatile usage in ohci gtd
2024-02-19 18:12:03 +07:00
Ha Thach
382f686f19
Merge pull request #2389 from IngHK/improve_debug_prints
...
improved hex debug print, improved USBH debug prints, added pid/vid debug print
2024-02-19 17:55:43 +07:00
Ha Thach
fabc20b3fb
Merge pull request #2470 from IngHK/fix_2469
...
fixed #2469 compiler warning tusb_fifo.c -> missing default: break;
2024-02-19 16:46:32 +07:00
Kai
27c125416a
use rt-thread 5+ mq recv api
2024-02-16 15:16:17 +08:00
Chris Desjardins
5ca9980060
Do not enable the Mode mismatch interrupt source, it is not cleared
...
If this interrupt ever hits it will result in an infinite interrupt
loop as it is never cleared.
2024-02-15 16:34:31 +01:00
IngHK
79aecf3fb7
fixed #2469
2024-02-14 09:16:18 +01:00
jerpa77
69ad3e2c8d
Merge branch 'hathach:master' into MCX
2024-02-12 11:31:51 -06:00
Jerry Palacios
7b780c068c
Button modification
2024-02-12 09:29:10 -06:00
Jerzy Kasenberg
68bb858406
nrf5x: Handle ISOOUT CRC errors
...
NRF5x USB controller can detect ISO OUT CRC errors.
In such case USBEVENT is signaled with EVENTCAUSE_ISOOUTCRC set.
Even if controller detects corrupted ISO OUT packet it allows
to data transfer from ednpoint to RAM however packet is corrupted
and code could just as well drop packet altogether.
With current implementation incoming ISO OUT packets were put in
FIFO and exact information how much data already in FIFO is correct
was hard to keep track of.
If was observed that on certain configurations HS hub when FS device
was connected occasionally sent invalid (short) packet. In such case
if packet length was reported odd audio stream was not recognizable any
more.
With this change corrupted packets are not passed to upper layers
and are silently dropped.
2024-02-12 16:17:44 +01:00
Jerry Palacios
7e0100408d
MCX modified to MCXA and MCXN
2024-02-09 11:15:26 -06:00
Jerry Palacios
b44cae8f18
frdmmcxa153 now working with cmake+ninja
2024-02-09 11:07:51 -06:00
Jerry Palacios
73122cd5f9
mcx family renamed as mcxn
...
MCXN and MCXA have different ARM Cortex M33 core, can't be on the same family
2024-02-09 09:36:58 -06:00
Jerry Palacios
8dc581247a
Merge branch 'frdmmcxn947' into frdmmcxa153
2024-02-09 09:31:08 -06:00
Jerry Palacios
7369d1f36e
Update family.c
2024-02-09 08:51:37 -06:00
Jerry Palacios
5b762e189c
uart rx disabled
2024-02-08 16:25:41 -06:00
Jerry Palacios
2c766c4daf
Update family.c
2024-02-08 12:43:13 -06:00
Jerry Palacios
fa4314e0ce
button commented
2024-02-08 11:55:01 -06:00
Jerry Palacios
b9c6b22165
cortex m33+nodsp+nofpu make file created
2024-02-08 11:10:10 -06:00
IngHK
4d4e20b71e
missing \r\n after TU_LOG_BUF => moved \r\n to tu_print_buf()
2024-02-08 12:00:44 +01:00
Jerry Palacios
45454c53f1
frdmmcxa153 files added
2024-02-07 18:33:19 -06:00
Jerry Palacios
bab25c2d56
nxp-sdk pointing to Wavenumber repo
2024-02-07 17:26:43 -06:00
Jerry Palacios
31c9176b2b
frdmmcxn947 board added
2024-02-07 17:10:47 -06:00
Jerry Palacios
6c4a5292a6
Back to original
2024-02-07 17:03:13 -06:00
Antonio Vázquez Blanco
0531027b57
usbd: log outbound xfer bytes in debug
2024-02-07 13:06:41 +01:00
IngHK
a066002731
Merge remote-tracking branch 'remotes/hathach/master' into improve_debug_prints
2024-02-07 10:11:42 +01:00
IngHK
e784e20b93
changes after review
2024-02-07 10:11:28 +01:00
Ha Thach
b60d0ff1d4
Merge pull request #2442 from IngHK/hidh_mounted_fix
...
HIDh tuh_hid_mounted() returns true before process set config is completed
2024-02-06 16:34:02 +07:00
Michael Fischer
ea30041168
Merge branch 'hathach:master' into nxp_k64
2024-02-04 10:55:34 +01:00
Ha Thach
f918406a12
Merge pull request #2454 from hathach/fix-esp-build
...
Fix esp build
2024-02-02 13:46:25 +07:00
hathach
7ab39cda5f
fix rmt legacy driver warning
2024-02-02 13:17:29 +07:00
hathach
d1f77e08ac
build esp32 ci with v5.1
2024-02-02 13:08:42 +07:00
HiFiPhile
297290c16d
Allow vendor class to be used without FIFO.
2024-02-01 13:11:56 +01:00
HiFiPhile
c151da6455
Merge pull request #1928 from gschorcht/src/portable/synopsys/dwc2/fix_sof_int_handling
...
synopsys/dwc2: fix SOF interrupt handling
2024-02-01 11:26:27 +01:00
HiFiPhile
d692d77834
Merge branch 'master' into src/portable/synopsys/dwc2/fix_sof_int_handling
2024-02-01 11:12:20 +01:00
HiFiPhile
f505cc2add
Merge pull request #2443 from mamiral/tud_vendor_mutex
...
Update vendor_device.c fifo mutex config similar to cdc_device.c.
2024-02-01 11:04:27 +01:00
Ha Thach
7ea2384786
Merge pull request #2445 from IngHK/ch34x_fix2444
...
fix #2444 and other small things
2024-02-01 13:11:22 +07:00
IngHK
e63a2f5c58
fix #2444 and other small things
2024-01-31 18:00:25 +01:00
mamiral
82776aaca9
Update vendor_device.c fifo mutex config similar to cdc_device.c.
2024-01-31 10:48:15 +01:00
IngHK
f600a8a0fc
fix tuh_hid_mounted() similar to #2437
2024-01-30 10:33:55 +01:00
Ha Thach
68cc7089bd
Merge pull request #2438 from IngHK/cdch_mounted_fix
...
fix of #2437 CDCh tuh_cdc_mounted() returns true before process config is completed
2024-01-30 11:59:12 +07:00
hathach
00ba4e95ac
cdch: de-configure when closing, rename configured to mounted
2024-01-30 10:59:12 +07:00
Ha Thach
7a92038bc4
Merge pull request #2428 from YixingShen/master
...
update video_capture
2024-01-30 10:00:26 +07:00
YixingShen
073a7a5659
revert the change in the f1 family.c since it break compile with other f1 that does not use UART.
2024-01-30 08:30:37 +08:00
Ha Thach
b4c0530fda
Merge pull request #2435 from hathach/enhance-uvc
...
Enhance UVC decriptors and example
2024-01-30 00:12:09 +07:00
hathach
55950656cb
add freertos build support for video_capture example
2024-01-29 23:23:06 +07:00
IngHK
82be2477e8
fixed #2437
2024-01-29 12:04:00 +01:00
hathach
d52909ec5c
remove the use of descriptor template for video capture example
2024-01-29 18:02:57 +07:00
hathach
2da8f763d7
update example to work with iso streaming
2024-01-26 23:50:58 +07:00
hathach
0daf8ec51b
update example to work bulk mjpeg
2024-01-26 23:23:38 +07:00
hathach
b5cd673330
rename and add more video descriptors
...
use struct to define uvc descriptor for video_capture since uvc is
rather too complicated to use macro templates
2024-01-26 22:55:55 +07:00
YixingShen
2f2d2bcf3e
Merge branch 'master' of https://github.com/YixingShen/tinyusb
2024-01-26 09:09:44 +08:00
YixingShen
4c9f462423
add "set tx_busy 1" into video_capture's video_tas for "if (tx_busy) return"
2024-01-26 09:09:18 +08:00
沈玴興
b713493436
Merge branch 'hathach:master' into master
2024-01-26 02:49:52 +08:00
YixingShen
19130440cc
Revert "Merge branch 'master' of https://github.com/YixingShen/tinyusb "
...
This reverts commit 611f9d948be47b96520e84773525b9b79d3c7189, reversing
changes made to a7de4ac9b7a2dfb1fa44921fb0f41f249c8cdd5e.
2024-01-26 02:46:53 +08:00
YixingShen
611f9d948b
Merge branch 'master' of https://github.com/YixingShen/tinyusb
2024-01-26 02:41:34 +08:00
YixingShen
a7de4ac9b7
Correct VIDEO_CS_VS_INTERFACE_FRAME_MJPEG to VIDEO_CS_ITF_VS_FRAME_MJPEG for #define TUD_VIDEO_DESC_CS_VS_FRM_MJPEG_DISC
2024-01-26 02:37:15 +08:00
Ha Thach
bd3c4fbe1e
Merge pull request #2427 from hathach/setup-python@v5
...
bump up to actions/setup-python@v5
2024-01-26 01:32:46 +07:00
hathach
14d44171b5
bump up to actions/setup-python@v5
2024-01-25 19:13:11 +07:00
Ha Thach
5aaa1aa63e
Merge pull request #2426 from hathach/cleanup-uvc-example
...
house keeping uvc example
2024-01-25 18:00:18 +07:00
hathach
0b8b8af83d
minor update to video capture example
2024-01-25 17:25:48 +07:00
hathach
de1266699d
clean up video example for readability
2024-01-24 13:13:49 +07:00
Ha Thach
09ae91700c
Merge pull request #2424 from hathach/retry-hil-s3
...
Retry hil s3
2024-01-24 13:13:02 +07:00
hathach
9d0df8ebc5
add message when flashing failed
2024-01-24 12:10:17 +07:00
hathach
64f86ef8e7
build workflow with hil-test when test/hil changes
2024-01-24 11:32:28 +07:00
Jerry Palacios
17cd5e0952
Bunny brain board created, but not modified yet
...
Bunny brain board created, but not modified yet
2024-01-23 17:55:19 -06:00
Jerry Palacios
2fadc06412
BOARD_InitPins pinlist modification
...
BOARD_InitPins pinlist modification
2024-01-23 17:53:09 -06:00
Jerry Palacios
fca0b44fa1
Update pin_mux.c
2024-01-23 17:10:21 -06:00
Jerry Palacios
b3ce3e25eb
Led pin configurations changed from P3_4 to P0_10
2024-01-23 17:09:19 -06:00
Jerry Palacios
e819a28a8b
frdm-mcxn947 folder created
...
frdm-mcxn947 folder created.
Led and button pin modified compared to mcxn947brk board
2024-01-23 16:49:44 -06:00
hathach
82218c8d68
retry flashih a few time due to random failed by s3
2024-01-24 00:43:23 +07:00
HiFiPhile
f92c2c2758
Merge pull request #2422 from kasjer/kasjer/audio_device-fix-unused-param-warning
...
audio_device: Fix unused variable warning
2024-01-23 15:09:25 +01:00
Jerzy Kasenberg
1c9a839401
audio_device: Fix unused variable warning
...
In some configurations local variable p_desc_parse_for_params
is declared and never used resulting in warning that can
be escalated to build error (for mynewt)
Now variable is surrounded with same preprocessor condition
as function that uses it audiod_parse_for_AS_params()
2024-01-23 13:51:10 +01:00
Ha Thach
57bbf3ad2b
Merge pull request #2391 from IngHK/cdc_ch34x_support
...
initial support of CH34x CDC device
2024-01-22 23:08:16 +07:00
Jonathan Zentgraf
af3c6be79f
msc_device: Fix check for including MSC lookup tables
...
The _msc_scsi_cmd_lookup and _msc_scsi_cmd_table variables are needed
when logging is enabled for the MSC device via CFG_TUD_MSC_LOG_LEVEL.
Update the preprocessor check around them to use that definition when
deciding whether to define those variables.
Closes #2419
2024-01-20 20:19:02 -05:00
IngHK
769a237b19
accumulated review changes
2024-01-20 20:34:50 +01:00
hathach
87d509d416
make CFG_TUH_CDC_LINE_CODING_ON_ENUM optional for ch34x
2024-01-20 01:42:31 +07:00
hathach
55cb713264
- add new API tuh_cdc_set_data_format()
...
- add typedef for cdc enum
2024-01-19 16:56:32 +07:00
hathach
c196a2ed9c
move code around
2024-01-19 16:04:30 +07:00
hathach
98781bb903
- add ch34x_set_data_format()
...
- add ch34x_set_line_coding()
2024-01-19 15:58:05 +07:00
hathach
23c2d929a1
refactor process_internal_control_complete()
2024-01-19 12:40:37 +07:00
hathach
c568a6793e
- add requested line coding to make update data format easier
...
- change ch34x_xfer_get_itf_num() to simply 0
2024-01-19 12:14:45 +07:00
hathach
30eb35f17f
- revert the use of serial init for set line coding
...
- update ch34x_get_lcr and ch34x_get_factor_divisor
2024-01-19 01:06:24 +07:00
IngHK
3968a0fff8
implemented ch34x_set_line_coding() and some code cleanup
2024-01-17 16:04:31 +01:00
hathach
f221c0fb66
more clean up
2024-01-17 14:45:09 +07:00
IngHK
482a8068a5
change code style and code cleanup
2024-01-16 14:51:04 +01:00
hathach
46ac03ba85
change code style
2024-01-16 17:45:16 +07:00
hathach
55da1072b6
merge and cherry pick changes
2024-01-16 17:25:44 +07:00
hathach
07e3d5c691
fix number of endpoint for ch340x, also open notification even not used for now
2024-01-16 14:32:31 +07:00
IngHK
f7ef3c1b1c
Merge branch 'cdc_ch34x_support' of https://github.com/IngHK/tinyusb into cdc_ch34x_support
2024-01-16 08:20:23 +01:00
IngHK
4e6408ea49
CDCh host: further work on CH340/CH341 support
2024-01-16 08:07:22 +01:00
IngHK
43e655b896
Merge remote-tracking branch 'remotes/hathach/master' into cdc_ch34x_support
2024-01-16 07:57:06 +01:00
hathach
e2aa671346
move open() ad vid_pid_list into serial driver struct
2024-01-16 12:54:39 +07:00
hathach
57c6f8cfa2
Merge branch 'master' into cdc_ch34x_support
...
# Conflicts:
# src/class/cdc/cdc_host.c
2024-01-16 12:00:28 +07:00
Ha Thach
938cae818f
Merge pull request #2417 from hathach/serialhost-change-ftdi-cp210x-pid-list
...
change serila host FTDI/CP210X pid list to vid/pid list
2024-01-16 01:45:41 +07:00
hathach
aa58cdcfa6
change CFG_TUH_CDC_FTDI/CP210X_PID_LIST to CFG_TUH_CDC_FTDI/CP210X_VID_PID_LIST which contains both vid and pid.
2024-01-16 01:28:29 +07:00
Rocky04
e0ebece2c7
Missed static keyword
2024-01-15 18:23:59 +01:00
Rocky04
783a4f002b
Test mode support only for Hi-Speed devices
2024-01-15 16:45:58 +01:00
Rocky04
78a1d4c482
Merge branch 'master' into test-mode-support
2024-01-15 16:27:22 +01:00
Rocky04
3c4184dc15
Removed whitespace
2024-01-15 16:16:09 +01:00
Rocky04
c3e96e667f
Change to control complete cb
2024-01-15 15:10:46 +00:00
Rocky04
1755bba509
Add DWC2 Test Mode SUpport
2024-01-15 12:47:13 +00:00
hathach
1f2901e8b1
fix conflict of BIT() macro
2024-01-15 19:02:02 +07:00
hathach
d192868d62
fix sign-conversion warning
2024-01-15 18:25:15 +07:00
hathach
d92eb38c21
change code style
2024-01-15 16:56:18 +07:00
hathach
a67ee4f01b
Merge branch 'master' into cdc_ch34x_support
2024-01-15 16:17:42 +07:00
Ha Thach
4b3b401ce3
Merge pull request #2401 from Ryzee119/ohci_more_dev
...
[OHCI] Allow more than 16 devices
2024-01-12 17:48:01 +07:00
Ha Thach
39f397e25c
Merge pull request #2412 from hathach/change-weak-event-hook-style
...
change tuh_event_hook_cb, tud_event_hook_cb to weak default implementation
2024-01-12 16:22:09 +07:00
hathach
8eca596fa6
style changes
2024-01-12 16:05:35 +07:00
hathach
290f4bea91
- change tuh_event_hook_cb, tud_event_hook_cb to weak default implementation
...
- change code style
2024-01-12 15:47:08 +07:00
Ha Thach
858077483d
Merge pull request #2239 from XelaRellum/bugfix_stm32_fsdev_keil
...
Fixes #1018 the weak dcd_edpt0_status_complete for Keil Compiler
2024-01-12 15:26:02 +07:00
Ha Thach
71ce4b8be6
Merge pull request #2402 from Okarss/master
...
[STM32 FSDEV] Fix ISR race conditions
2024-01-12 10:26:52 +07:00
Okarss
2d3d148912
[STM32 FSDEV] Align names for consistency
2024-01-11 21:02:14 +02:00
Ha Thach
5002ce8798
Merge pull request #2382 from YixingShen/master
...
fixed device/video_capture/src/images.h,main.c CFG_EXAMPLE_VIDEO_DISA…
2024-01-12 00:58:32 +07:00
hathach
ab7538d93a
fix build with f1 without uart
2024-01-11 23:56:04 +07:00
Ha Thach
7db9119ef3
Merge pull request #2411 from IngHK/cdch_vendor_class
...
[cdch] replaced vendor specific bInterfaceClass number by define
2024-01-11 22:53:21 +07:00
hathach
e68c6658c9
move gtd extra out of control struct to save sram
...
also rename gtd_data to gtd_extra
2024-01-11 17:35:05 +07:00
hathach
3349e40276
add cmake support for lpc17
2024-01-11 17:32:21 +07:00
IngHK
c619a86141
bInterfaceClass number replaced by define
2024-01-11 08:53:47 +01:00
Ha Thach
f2f40c0965
Merge pull request #2400 from Ryzee119/hub_fix
...
[HUB] Fix double status xfer
2024-01-11 12:39:18 +07:00
Ha Thach
b7581f0995
Merge pull request #2404 from Ryzee119/patch-2
...
[HUB] Prevent status request to invalid ep_num
2024-01-11 12:34:54 +07:00
Ha Thach
b5d5ae9b18
Merge pull request #2408 from leptun/fix_tickless_ulpi_gating
...
Disable ULPI clock during sleep on stm32f7 when using internal phy
2024-01-11 11:40:44 +07:00
Okarss
545821399b
[STM32 FSDEV] Introduce a typedef for bus access width
2024-01-11 00:59:39 +02:00
Alex Voinea
3bf6826451
Disable ULPI clock during sleep on stm32f7 when using internal phy
2024-01-10 10:27:21 +01:00
Ryzee119
e7e19f5627
[OHCI] Allow more than 16 devices
2024-01-10 16:03:43 +10:30
Okarss
0d4b24e56c
[STM32 FSDEV] Fix ISR race conditions
2024-01-10 05:43:20 +02:00
Ha Thach
cf306ed913
Merge pull request #2406 from IngHK/move_acm_open
...
[CDC] host: moved acm_open to other acm prototypes
2024-01-09 18:30:44 +07:00
IngHK
91f65a36bf
[CDC] host: moved acm_open to other acm prototypes
2024-01-09 09:53:54 +01:00
Ryzee119
d39d06e6d9
[HUB] Prevent status request to invalid ep_num
2024-01-09 16:36:32 +10:30
Ryzee119
a4aa454a7a
[HUB] Fix double status xfer
2024-01-07 08:34:18 +10:30
沈玴興
149b50a2fa
Merge branch 'hathach:master' into master
2023-12-28 00:29:41 +08:00
YixingShen
9a1559a356
add __ARM_ARCH_8_1M_MAIN__ for M55
2023-12-28 00:28:24 +08:00
IngHK
c2bbcc9f60
initial support of CH34x CDC device
2023-12-26 20:14:03 +01:00
Ha Thach
ae364b1460
Merge pull request #2390 from hathach/max3421e-support-rp2040
...
support max3421e for rp2040
2023-12-26 23:10:32 +07:00
hathach
551e47a464
allow rp2040 to use max3421e as host controller
...
- fix warnings build hcd max3421 with rp2040
- add tinyusb_host_max3421 target for rp2040 cmake, -DMAX3421_HOST=1
will enable this
- add max3421 driver implementation for rp2040 family
- update tusb_config for host to allow easy enable host selection for
rp2040 (default/pio-usb/max3421)
2023-12-26 22:50:01 +07:00
hathach
a01d6d8b31
tested other ports with featherwing max3421, change cs, intr pin to D10, D9
2023-12-26 21:13:43 +07:00
IngHK
a39be99a58
improved hex debug print, improved USBH debug prints, added pid/vid debug print
2023-12-26 12:24:54 +01:00
YixingShen
1117880411
add high speed into examples\device\video_capture
2023-12-24 00:27:36 +08:00
Ha Thach
804f6718ed
Merge pull request #2385 from kasjer/kasjer/nrf5x-fix-dcd_edpt_open-for-iso
...
dcd_nrf5x: Fix dcd_edpt_open for iso endpoint
2023-12-21 15:53:11 +07:00
Jerzy Kasenberg
7f84fe9bda
dcd_nrf5x: Fix dcd_edpt_open for iso endpoint
...
When ISO endpoint handling was introduced two lines that
clear stall and data toggle bit were left unchanged and they
were effective for ISO enadpoint as well.
This is incorrect behavior since EPSTALL and DTOGGLE registers
have only 3 bits for address.
Leaving code that clears toggle bit results in endpoint 0 toggle bit
being reset when iso endpoint (8) is opened.
Now code that clears stall and toggle bit is applied to non-iso endpoint only
as it was done before iso handling was introduced.
2023-12-21 08:48:59 +01:00
Ha Thach
b9be733c3c
Merge pull request #2383 from hathach/update-freertos-11.0
...
update freertos deps to v11.0.0
2023-12-18 21:24:11 +07:00
hathach
1a3f5f7a09
update FreeRTOSConfig.h
...
- remove configAssert()
- configCHECK_HANDLER_INSTALLATION=0 (to prevent unused-parameter error with configAssert(x)=nil
2023-12-18 20:33:43 +07:00
hathach
c314cb2903
remove usage of linkermap, update checkout to v4
2023-12-18 20:07:17 +07:00
hathach
3c4db26e01
update freertos deps to v11.0.0
2023-12-18 16:50:28 +07:00
Ha Thach
7c181c4e9b
Merge pull request #2373 from Lurcy38/master
...
Add Support stm32h5 for stm32h573i based on stm32_fsdev G0 implementa…
2023-12-18 11:55:48 +07:00
hathach
c9c00eb26b
added ioc for h563 nucleo, usb working with on-board stlink
2023-12-18 11:42:42 +07:00
YixingShen
aa5accae23
add uart printf log into hw/bsp/stm32f1
...
fix hw/bsp/stm32f1/stm32f1xx_hal_conf.h's HAL_CORTEX_MODULE_ENABLED
2023-12-18 09:45:06 +08:00
YixingShen
3f4e77738b
fixed device/video_capture/src/images.h,main.c CFG_EXAMPLE_VIDEO_DISABLE_MJPG to CFG_EXAMPLE_VIDEO_DISABLE_MJPEG
2023-12-18 00:40:29 +08:00
hathach
a7fe956e35
rename dk board and more update
2023-12-15 18:57:21 +07:00
hathach
8633a2643a
update h5 build make/cmake
2023-12-15 18:08:19 +07:00
hathach
17a0ce655b
Merge branch 'master' into h5
2023-12-15 17:42:25 +07:00
Ha Thach
9474db8b0f
Merge pull request #2376 from HiFiPhile/iar_cmake
...
IAR CMake native support
2023-12-14 18:48:19 +07:00
Mengsk
6fda6e16f8
Update jlink script path.
2023-12-14 12:19:14 +01:00
Ha Thach
5a0c21a0aa
Merge pull request #2379 from hathach/tweak-hil-pi4
...
reset pi4 usb bus before checkout/download, so that we could skip delay
2023-12-14 17:08:27 +07:00
hathach
84839fa5f1
reset pi4 usb bus before checkout/download, so that we could skip delay
2023-12-14 16:52:45 +07:00
Mengsk
2396fecee2
Move jlink script.
2023-12-14 09:48:40 +01:00
Mengsk
35615ecb6f
Update doc.
2023-12-13 17:41:54 +01:00
Mengsk
3eb7d6ede9
Enhance IAR CMake support.
2023-12-13 17:20:51 +01:00
Ha Thach
ccc59e8763
Merge pull request #2375 from hathach/hil-add-samd51
...
add samd51 (itsybitsy_m4) to hardware test loop
2023-12-13 20:34:03 +07:00
HiFiPhile
f3d713ac73
Fix CI & typo.
2023-12-13 14:32:23 +01:00
hathach
3da0d78170
minor tweaking
2023-12-13 20:16:47 +07:00
hathach
31c33ca853
tweak usb reset wait time, fix test script with IAR server
2023-12-13 19:18:08 +07:00
hathach
b343ac6d0f
reset usb before running test
2023-12-13 19:05:44 +07:00
hathach
19d7d62e80
try to add samd51 to hil pool using doublereset (rpi gpio) and bossac
2023-12-13 18:54:00 +07:00
henneboi
93c40b6966
Add Support stm32h5 for stm32h573i based on stm32_fsdev G0 implementation Tested on Windows with IAR and gcc toolchain ( via cubeide) Tested only with audio examples, but sould be ok for other examples Cmake pacthed : but not tested Linux build : not tested Added a temporary workaround in make file to support H5 HAL repo ( ARMCC_VERSION=0)
2023-12-12 16:04:21 +01:00
Ha Thach
59ecdb78fe
Merge pull request #2368 from LarssonOliver/master
...
Add configuration option CFG_TUH_CDC_FTDI_PID_LIST to tusb_option.h
2023-12-12 15:54:35 +07:00
Oliver Larsson
9a7e23379c
Add configuration option CFG_TUH_CDC_FTDI_PID_LIST to tusb_option.h
2023-12-12 08:11:16 +01:00
Ha Thach
6bb92555f3
Merge pull request #2347 from IngHK/HostLogsFixes
...
fixed compile errors due to untreated CFG_TUH_LOG_LEVEL
2023-12-12 13:35:30 +07:00
Ha Thach
b6ad70bad9
Merge pull request #2371 from hathach/hil-add-nrf52840
...
add nrf52840 to hard in the loop pool
2023-12-12 13:05:08 +07:00
hathach
f986f1f22d
add reset usb bus
2023-12-12 12:23:07 +07:00
hathach
b5448a7987
add feather nrf52840 express to hil pool
2023-12-12 11:59:37 +07:00
Ha Thach
24c5e6ab45
Merge pull request #2369 from hathach/more-s3-hil
...
More s3 hil
2023-12-11 21:10:55 +07:00
hathach
bd1009e135
tweak openocd flash command
2023-12-11 20:43:59 +07:00
hathach
aa9dce09a1
change baudrate back to 1.5MB
2023-12-11 20:37:09 +07:00
hathach
b67855468d
fix build
2023-12-11 17:56:10 +07:00
hathach
ea885d5c83
reduce s3 baudrate to prevent usb isssue, reset rp2040 usb for board test example
2023-12-11 17:48:27 +07:00
Ha Thach
37158eddcb
Merge pull request #2367 from hathach/add-hil-s3
...
Add esp32s3 to hardware in the loop test
2023-12-11 16:16:28 +07:00
hathach
f5f087e99c
skip iar build for f4 and h7 to save build time
2023-12-11 15:56:48 +07:00
hathach
aa21d50196
rename hil json debugger to flasher, replace jlink cpu with flasher_args
2023-12-11 15:23:09 +07:00
Ha Thach
4c80f5a192
Merge pull request #2296 from LarssonOliver/master
...
Allow external definition of TU_CP210X_PID_LIST
2023-12-11 15:13:20 +07:00
hathach
e1142d4527
wrap up s3 hil test
2023-12-11 14:52:21 +07:00
hathach
c829116830
extract artifacts to same folder structure as ci build
2023-12-11 14:43:54 +07:00
hathach
3689c4c604
more test
2023-12-11 14:38:37 +07:00
hathach
721ae45ebb
update hil test to support s3
2023-12-11 14:29:11 +07:00
hathach
0642a6d9e7
more artifacts
2023-12-11 11:56:04 +07:00
hathach
fd55b96ca1
test changing upload artifacts for hil test
2023-12-11 11:45:50 +07:00
HiFiPhile
71f1400aea
Merge pull request #2366 from angmolin/bugfix/gcc+12-strict-overflow-warning
...
Fix strict-overflow warning when compiling with gcc >= 12
2023-12-10 17:22:43 +01:00
Ángel Molina Núñez
506617d4b3
Add comment to explain why the condition changes
2023-12-10 17:04:46 +01:00
Angel Molina
ac418f4d25
Fix strict-overflow warning when compiling with gcc >= 12
2023-12-09 23:13:53 +01:00
IngHK
efde252ed0
improved CFG_TUSB_DEBUG handling due to compile errors
2023-12-08 16:59:52 +01:00
IngHK
4d88f146e3
Merge remote-tracking branch 'remotes/hathach/master' into HostLogsFixes
2023-12-08 16:44:58 +01:00
Ha Thach
338ff2daba
Merge pull request #2351 from IVOES/master
...
Add CodeQL Workflow for Code Security Analysis
2023-11-30 11:56:52 +07:00
hathach
66b9bd52d6
minor tweak to codeql.yml
2023-11-30 11:38:54 +07:00
hathach
0504192fb7
update buildscript
2023-11-29 22:30:58 +07:00
Ha Thach
0877a486cb
Merge pull request #2356 from hathach/hil-esp32s3
...
update esp32 to also be supported by hil test
2023-11-29 18:34:45 +07:00
hathach
c1dbeb55b4
increase intial sleep for port check, otherwise it ccould fail on pi4
2023-11-29 18:11:50 +07:00
hathach
fe4bb40207
fix pre-commit typo
2023-11-29 17:22:33 +07:00
hathach
1c1c2dc3b9
Merge branch 'master' into codeql
2023-11-29 17:21:21 +07:00
Ha Thach
be4d65221b
Merge pull request #2346 from IngHK/LogLineEnds
...
made log line end consistent \r\n
2023-11-29 17:12:08 +07:00
hathach
83840041a8
update esp32 to also be supported by hil test
...
test run locally well
2023-11-29 17:09:52 +07:00
Ha Thach
9c9ebb342d
Merge pull request #2355 from hathach/update-hil-rp2040
...
Update hil test for rp2040 on self-hosted PI4
2023-11-29 15:34:05 +07:00
Ha Thach
390c109aed
Merge pull request #2271 from antoniovazquezblanco/stm32h750dk
...
stm32h750-dk support
2023-11-29 15:04:03 +07:00
Antonio Vázquez Blanco
46b0ddc5e6
stm32h750dk: Fix IAR linker script path
2023-11-29 08:39:33 +01:00
Antonio Vázquez Blanco
f87deba4ac
stm32h750dk: More codespell in linker file
2023-11-29 08:25:40 +01:00
Antonio Vázquez Blanco
c12e719808
stm32h750dk: Codespell in linker file
2023-11-29 08:23:11 +01:00
Antonio Vázquez Blanco
6849e210c0
stm32h750dk: Add linker script
2023-11-29 08:18:14 +01:00
hathach
b8d1acd104
improve hil test, correct pi4 uuid
2023-11-29 12:00:52 +07:00
Antonio Vázquez Blanco
c162ac8830
stm32h750bdk: Fix startup and linker script
2023-11-28 21:50:02 +01:00
hathach
b45ad57c50
spare checkout test/hil and correct hil_pi4 uuid
2023-11-28 23:02:26 +07:00
hathach
1a6756c254
fixed pi4 hil test elf location
2023-11-28 19:10:19 +07:00
hathach
0a4d92a71e
update hil for pi4 to use new hil_test.py
2023-11-28 18:28:45 +07:00
Brian
00484d18a5
Update codeql-buildscript.sh
...
Update script name
2023-11-27 12:14:38 -05:00
Oliver Larsson
c4e04d3db4
Add configuration option CFG_TUH_CDC_CP210X_PID_LIST to tusb_option.h
2023-11-25 08:34:52 +01:00
IngHK
b8881a3a14
fixed compile errors due to untreated CFG_TUH_LOG_LEVEL
2023-11-24 22:34:28 +01:00
IngHK
7e1fe2ff83
made log line end consistent \r\n
2023-11-24 22:02:58 +01:00
Ha Thach
1eb6ce784c
Merge pull request #2343 from hathach/release-0.16.0
...
Release 0.16.0
2023-11-24 23:38:37 +07:00
hathach
e5588697d5
update changelog for 0.16.0
2023-11-24 23:11:35 +07:00
hathach
d343321c6e
bump up pio-usb
2023-11-24 19:21:20 +07:00
hathach
0e12d36531
update doc, move sponsor to top of the page
2023-11-24 19:11:28 +07:00
hathach
031be18e26
update release version
2023-11-24 19:09:35 +07:00
hathach
426f791e7a
minor doc
2023-11-24 19:09:34 +07:00
Ha Thach
2fc9fbe27d
Merge pull request #2340 from hathach/hid-set-protocol-pr
...
Hid set protocol pr
2023-11-24 19:05:16 +07:00
Ha Thach
02017a81e9
Merge pull request #2303 from projectgus/feature/isr_event_hook
...
Add optional hooks for DCD and HCD events
2023-11-24 18:39:29 +07:00
hathach
f469250fa3
minor update
2023-11-24 18:35:00 +07:00
Xudong Zheng
2fed722b00
add tuh_hid_set_default_protocol() to set default USB host HID protocol
2023-11-24 18:27:03 +07:00
hathach
188fbd8ed9
add optional event hook callback tud_event_hook_cb() and tuh_event_hook_cb()
2023-11-24 18:21:24 +07:00
hathach
111b21e767
Merge branch 'master' into feature/isr_event_hook
2023-11-24 17:49:43 +07:00
Ha Thach
f1898fef8c
Merge pull request #2279 from antoniovazquezblanco/bth
...
Add historical EP compatibility to bth class
2023-11-24 16:28:08 +07:00
hathach
6e5c7f4390
rename to CFG_TUD_BTH_HISTORICAL_COMPATIBLE, move CFG_TUD_BTH_ISO_ALT_COUNT to tusb_option.h and mandatory for BTH driver
2023-11-24 16:08:48 +07:00
hathach
5e54bd37b6
Merge branch 'master' into bth
2023-11-24 15:57:06 +07:00
Ha Thach
f03f60eae2
Merge pull request #2278 from Krasutski/feature/ch32f20x
...
Add CH32F20x support
2023-11-24 13:21:38 +07:00
hathach
b6059fa942
fix pre-commit end of file
2023-11-24 12:04:03 +07:00
hathach
21022755f8
fix make build
2023-11-24 11:51:48 +07:00
Antonio Vázquez Blanco
60dbfe6f54
stm32h750dk: Initial support
2023-11-24 11:39:30 +07:00
Ha Thach
0601d174b1
Merge branch 'master' into feature/ch32f20x
2023-11-24 11:33:34 +07:00
Ha Thach
d6b8b3515d
Merge pull request #2339 from hathach/move-build-file
...
Move build file from tools/ to examples/build_system
2023-11-23 20:57:43 +07:00
hathach
26ca48e7a7
move make.mk and rules.mk to build_system/make
2023-11-23 20:20:01 +07:00
hathach
7213b8abb1
move tools/cmake to examples/build_system
2023-11-23 20:06:22 +07:00
hathach
54356a719e
minor-update
2023-11-23 17:53:17 +07:00
hathach
82880eecbd
make nanolib linking explicitly by each family/board
2023-11-23 12:43:13 +07:00
hathach
1a98f5389c
correct gcc version major comparison
2023-11-23 12:07:59 +07:00
hathach
e54a2c4f3c
rename build_family.py to build_make.py
2023-11-23 11:46:39 +07:00
hathach
51312f70fd
move make to examples/build_system
...
add -Wl,--no-warn-rwx-segment for gcc 12+
2023-11-23 11:44:14 +07:00
Angus Gratton
68894398af
Add optional hooks for DCD and HCD events
...
These are intended to allow bare metal platforms with one-shot scheduling
capabilities to schedule the TinyUSB task handlers whenever they know there is
work for them to do.
Signed-off-by: Angus Gratton <angus@redyak.com.au>
2023-11-23 14:42:51 +11:00
Ha Thach
08f9ed67c9
Merge pull request #2336 from hathach/fix-h7-otg_fs-wfi
...
Fix h7 running on fullspeed phy has issue with WFI
2023-11-23 10:22:26 +07:00
hathach
01f22a9e25
fix h7 running on fullspeed phy has issue with WFI if not disable ULPI clock
2023-11-22 22:50:10 +07:00
hathach
42e7bd4ce8
update clock setup for H743 eval
2023-11-22 21:39:28 +07:00
Ha Thach
460a8b50ac
Merge pull request #2335 from hathach/update-imxrt-usbphy
...
Update imxrt usbphy
2023-11-22 17:37:01 +07:00
hathach
025ffa200c
add spec version to dwc2 info
2023-11-22 17:36:52 +07:00
hathach
6a908ccfb6
correctly use xtal for initialize usbphy, rt1170 usb is working
2023-11-22 16:38:24 +07:00
hathach
89dce6882f
minor update board.h
2023-11-22 16:11:39 +07:00
Ha Thach
efcc2b69dc
Merge pull request #2334 from hathach/fix-cond-typo
...
fix typo in cdc line coding enum
2023-11-22 11:53:18 +07:00
hathach
aedc92f2d3
fix typo in cdc line coding enum
2023-11-22 11:25:55 +07:00
Ha Thach
41e2da79f4
Merge pull request #2331 from hathach/add-featherwing-max3421e
...
Add featherwing max3421e support
2023-11-21 00:06:30 +07:00
hathach
86f6588c3f
update example to work with featherwing max3421, set max3421 GPIO0 for vbus
...
tested with feather nrf52840, m0, m4
2023-11-20 22:09:38 +07:00
hathach
1f71625a32
add tuh_max3421_reg_read(), tuh_max3421_reg_read() for application usage
...
added max3241 for feather m4 and tested
2023-11-20 21:31:06 +07:00
Ha Thach
cbd3e0bc0b
Merge pull request #2326 from HiFiPhile/dwc2_f429
...
Add dwc2 info of F429.
2023-11-20 09:56:25 +07:00
HiFiPhile
8af470e06d
Fix CI
2023-11-19 16:19:11 +01:00
HiFiPhile
b5b34e73d6
Add dwc2 info of F429.
2023-11-19 16:10:16 +01:00
Ha Thach
da3e511b92
Merge pull request #2320 from hathach/update-imxrt-family
...
Update imxrt family
2023-11-18 20:11:17 +07:00
hathach
2187ece844
update freertos to fix build with IAR cm0
2023-11-18 15:11:29 +07:00
hathach
fbf64b122d
switch freertos to static allocation only (dynamic = 0), since it is possible now with latest freertos cmake
2023-11-16 22:12:38 +07:00
hathach
83d6263ade
update freertos-kernel which remove compiler warning from freertos_kernel lib
2023-11-16 21:51:49 +07:00
hathach
e666a39dd7
update clion setting
2023-11-16 21:37:30 +07:00
hathach
936551ebd1
update rt1170 evk with led and button, but usb not working yet
2023-11-16 21:35:12 +07:00
hathach
759f70f092
update teensy 4.0 and 4.1 (not tested)
2023-11-16 20:43:02 +07:00
hathach
68f1841e3c
update rt1060 and rt1064 evk
2023-11-16 20:28:41 +07:00
hathach
baa1b4ec20
correct and tested rt1050 evkb
2023-11-16 20:12:08 +07:00
hathach
2ff08aceec
update rt1050 (not tested)
2023-11-16 20:05:27 +07:00
hathach
882da9944d
update rt1024 evk
2023-11-16 18:23:48 +07:00
hathach
794dbf923a
updat rt1020
2023-11-16 17:33:33 +07:00
hathach
f9bdc8ad22
update rt1015 evk
2023-11-16 17:19:15 +07:00
hathach
fe2a759159
update metro m7 airlift and sd
2023-11-16 17:01:43 +07:00
hathach
d13d79acfe
update imxrt1010 with mex
2023-11-16 16:54:43 +07:00
hathach
2e924f727f
add imxrt1170 evkb
2023-11-16 15:38:55 +07:00
hathach
9ffb20429a
add metro m7 1011 sd with trace etm, try to enable but not working yet
2023-11-16 12:32:35 +07:00
Ha Thach
0f187b4d1c
Merge pull request #2317 from hathach/add-ra2a1-ek
...
add ra2a1 ek
2023-11-15 16:35:13 +07:00
hathach
e0d632a954
add ra2a1 ek
...
also make some other changes
2023-11-15 16:07:44 +07:00
Ha Thach
a973887399
Merge pull request #2316 from hathach/typo
...
Typo fix.
2023-11-14 17:57:10 +07:00
HiFiPhile
be325ca8bd
Typo fix.
2023-11-14 11:00:59 +01:00
HiFiPhile
0ab1bffde9
Merge pull request #2315 from kasjer/kasjer/nucleo-g491re
...
Add BSP for nucleo-g491re
2023-11-13 20:26:49 +01:00
Jerzy Kasenberg
c9f09d6079
Add BSP for nucleo-g491re
...
This adds bsp for ST nucleo-g491re board.
This is mostly copy of nucleo-f474 only differences being:
- PLL configured to 170MHz (not affecting USB which runs on HSI48)
- Linker script freshly generated from STM32CubeIDE (smaller RAM)
Signed-off-by: Jerzy Kasenberg <jerzy.kasenberg@codecoup.pl>
2023-11-13 17:38:19 +01:00
Ha Thach
a6b29ae57c
Merge pull request #2314 from jfm92/master
...
Adding extern C to definitions to allow link on C++ project
2023-11-13 17:50:43 +07:00
jfm92
d4be0fd104
Adding extern C to definitions to allow link on C++ project
2023-11-13 10:14:55 +01:00
Antonio Vázquez Blanco
8bac68db84
Add historical EP compatibility to bth class
2023-11-07 17:38:26 +01:00
Ha Thach
f84eafcaa2
Merge pull request #2310 from hathach/fix-usbh-enumeration-removal-race
...
Fix usbh enumeration removal race
2023-11-03 23:25:03 +07:00
hathach
9377fd6901
fix -Werror=null-dereference warning
2023-11-03 22:34:49 +07:00
hathach
4b9320e40e
fix race condition when dev0 is removed while enumerating
2023-11-03 22:22:13 +07:00
Ha Thach
f3eaf0652d
Merge pull request #2293 from Yveaux/master
...
Add PlatformIO manifest
2023-11-03 09:08:10 +07:00
Yveaux
2f2ccb33ed
Added end of file per ci recommendation
2023-11-02 17:06:16 +01:00
Ha Thach
3af44089bc
Merge pull request #2308 from hathach/add-u5-uid
...
add unique id for u5, also allow to build with OPT_OS_CUSTOM
2023-11-02 20:56:27 +07:00
hathach
89475fcf26
add unique id for u5, also allow to build with OPT_OS_CUSTOM
2023-11-02 19:32:25 +07:00
Ha Thach
b28d121a54
Merge pull request #2307 from hathach/minor-upate-max3421
...
skip tuh_max3421_spi_cs_api() in hcd_init()
2023-11-02 18:44:46 +07:00
hathach
46106c6ef4
skip tuh_max3421_spi_cs_api() in hcd_init()
...
only call tuh_max3421_spi_cs_api() in SPI start/end transfer since
Arduino port use this to call begin/endTransaction()
2023-11-02 15:22:02 +07:00
Ha Thach
68faa45c6a
Merge pull request #2302 from HiFiPhile/f4_otg
...
Add STM32F4 OTG_HS support to BSP
2023-11-02 09:54:34 +07:00
Ha Thach
d73d8ecfbe
Merge pull request #2305 from hathach/remove-legacy-st-synopsys-driver
...
remove legacy driver st/synopsys
2023-11-01 17:12:00 +07:00
hathach
06c9d9a79a
remove legacy driver st/synopsys
2023-11-01 16:36:28 +07:00
Ha Thach
4ee36092e9
Merge pull request #2304 from hathach/update-doc
...
Update doc & add Adafruit as sponsor in readme
2023-11-01 16:30:16 +07:00
hathach
7c56c05c9a
more readme
2023-11-01 11:51:34 +07:00
hathach
04c12d302e
add target link to adafruit logo
2023-11-01 11:23:01 +07:00
hathach
0ff327f25f
resize logo, add white background
2023-11-01 11:20:18 +07:00
hathach
484937a042
update readme, add sponsor section
2023-11-01 10:40:20 +07:00
HiFiPhile
de02748504
Update make
2023-10-31 21:29:07 +01:00
HiFiPhile
bf2e54e3d3
Add STM32F4 OTG_FS pin to BSP.
2023-10-31 20:46:55 +01:00
HiFiPhile
86f00f6b49
Fix STM32F7 OTG_HS GPIO alt mapping.
2023-10-31 20:45:06 +01:00
hathach
765ba4b9ac
update doc to add supported mcus
2023-10-31 16:21:45 +07:00
Ha Thach
4c01c5a714
Merge pull request #2300 from hathach/add-u5a5
...
Add support for stm32u5a5 (highspeed with built-in femtoPHY)
2023-10-31 13:27:54 +07:00
hathach
3e140756dc
update stm32u5xx_hal_driver, fix build with old u575 board
2023-10-31 12:08:45 +07:00
hathach
214a4afa6a
dwc2 flush tx,rx fifo in dcd_init()
2023-10-31 11:53:40 +07:00
hathach
6ab7875aab
uart working on u5a5
2023-10-31 11:39:20 +07:00
hathach
db3ff4b352
usb on u5a5 hs work well with correct VBVALEXTOEN/VBVALOVAL set
2023-10-31 11:26:31 +07:00
hathach
9f0223dccd
minor clean up
2023-10-31 10:58:15 +07:00
hathach
305ef5d48a
minor space format dwc2 driver
2023-10-30 22:22:27 +07:00
hathach
a4c542a7b4
addd dwc2_info.py/md update stm32u5a5 board clock & power configure, able to get passed otg clock reset
2023-10-30 22:21:58 +07:00
Ha Thach
a91b720c2e
Merge pull request #2291 from hathach/minor-update-max3421
...
minor update for max3421
2023-10-30 11:10:03 +07:00
Brian
490343b4d3
Add CodeQL Workflow for Code Security Analysis
...
Add CodeQL Workflow for Code Security Analysis
This pull request introduces a CodeQL workflow to enhance the security analysis of our repository. CodeQL is a powerful static analysis tool that helps identify and mitigate security vulnerabilities in our codebase. By integrating this workflow into our GitHub Actions, we can proactively identify and address potential issues before they become security threats.
We added a new CodeQL workflow file (.github/workflows/codeql.yml) that
- Runs on every pull request (functionality to run on every push to main branches is included as a comment for convenience).
- Runs daily.
- Excludes queries with a high false positive rate or low-severity findings.
- Does not display results for git submodules, focusing only on our own codebase.
Testing:
To validate the functionality of this workflow, we have run several test scans on the codebase and reviewed the results. The workflow successfully compiles the project, identifies issues, and provides actionable insights while reducing noise by excluding certain queries and third-party code.
Deployment:
Once this pull request is merged, the CodeQL workflow will be active and automatically run on every push and pull request to the main branch. To view the results of these code scans, please follow these steps:
1. Under the repository name, click on the Security tab.
2. In the left sidebar, click Code scanning alerts.
Additional Information:
- You can further customize the workflow to adapt to your specific needs by modifying the workflow file.
- For more information on CodeQL and how to interpret its results, refer to the GitHub documentation and the CodeQL documentation (https://codeql.github.com/ and https://codeql.github.com/docs/ ).
Signed-off-by: Brian <bayuan@purdue.edu>
2023-10-29 15:28:27 -04:00
Yveaux
ae7ad53949
Add PlatformIO manifest
2023-10-28 14:47:29 +02:00
hathach
9cba9a753b
update s3 devkitm with max3421 pin following metro s3, check max3421 version to make sure it is valid
2023-10-27 17:40:53 +07:00
PanRe
10558acac6
Merge pull request #2289 from HiFiPhile/uac_interl
...
Update audio_4_channel_mic example for HS device.
2023-10-25 20:31:00 +02:00
HiFiPhile
2d802e03e9
Update audio_4_channel_mic example for HS device.
2023-10-24 22:14:24 +02:00
Brian
3cc82d656e
Add CodeQL Workflow for Code Security Analysis
...
Add CodeQL Workflow for Code Security Analysis
This pull request introduces a CodeQL workflow to enhance the security analysis of our repository. CodeQL is a powerful static analysis tool that helps identify and mitigate security vulnerabilities in our codebase. By integrating this workflow into our GitHub Actions, we can proactively identify and address potential issues before they become security threats.
We added a new CodeQL workflow file (.github/workflows/codeql.yml) that
- Runs on every pull request (functionality to run on every push to main branches is included as a comment for convenience).
- Runs daily.
- Excludes queries with a high false positive rate or low-severity findings.
- Does not display results for git submodules, focusing only on our own codebase.
Testing:
To validate the functionality of this workflow, we have run several test scans on the codebase and reviewed the results. The workflow successfully compiles the project, identifies issues, and provides actionable insights while reducing noise by excluding certain queries and third-party code.
Deployment:
Once this pull request is merged, the CodeQL workflow will be active and automatically run on every push and pull request to the main branch. To view the results of these code scans, please follow these steps:
1. Under the repository name, click on the Security tab.
2. In the left sidebar, click Code scanning alerts.
Additional Information:
- You can further customize the workflow to adapt to your specific needs by modifying the workflow file.
- For more information on CodeQL and how to interpret its results, refer to the GitHub documentation and the CodeQL documentation (https://codeql.github.com/ and https://codeql.github.com/docs/ ).
Signed-off-by: Brian <bayuan@purdue.edu>
2023-10-20 01:02:27 -04:00
PanRe
a2390802f8
Merge pull request #2282 from HiFiPhile/uac_interl
...
UAC IN transfer improvements
2023-10-19 19:49:19 +02:00
Brian
b8ae3d55d4
Add CodeQL Workflow for Code Security Analysis
...
Add CodeQL Workflow for Code Security Analysis
This pull request introduces a CodeQL workflow to enhance the security analysis of our repository. CodeQL is a powerful static analysis tool that helps identify and mitigate security vulnerabilities in our codebase. By integrating this workflow into our GitHub Actions, we can proactively identify and address potential issues before they become security threats.
We added a new CodeQL workflow file (.github/workflows/codeql.yml) that
- Runs on every pull request (functionality to run on every push to main branches is included as a comment for convenience).
- Runs daily.
- Excludes queries with a high false positive rate or low-severity findings.
- Does not display results for git submodules, focusing only on our own codebase.
Testing:
To validate the functionality of this workflow, we have run several test scans on the codebase and reviewed the results. The workflow successfully compiles the project, identifies issues, and provides actionable insights while reducing noise by excluding certain queries and third-party code.
Deployment:
Once this pull request is merged, the CodeQL workflow will be active and automatically run on every push and pull request to the main branch. To view the results of these code scans, please follow these steps:
1. Under the repository name, click on the Security tab.
2. In the left sidebar, click Code scanning alerts.
Additional Information:
- You can further customize the workflow to adapt to your specific needs by modifying the workflow file.
- For more information on CodeQL and how to interpret its results, refer to the GitHub documentation and the CodeQL documentation (https://codeql.github.com/ and https://codeql.github.com/docs/ ).
Signed-off-by: Brian <bayuan@purdue.edu>
2023-10-18 16:50:07 -04:00
Mengsk
d3fa3cdf48
Adjsut blackout time.
2023-10-18 17:05:35 +02:00
hathach
27a2c8cba4
adding nulceo stm32u5a5, fix clock configure issue
...
dwc2 core stuck at reset
2023-10-18 18:43:07 +07:00
hathach
5025e80c9e
adding u5a5 nucleo
2023-10-18 15:27:06 +07:00
Ha Thach
dd588222c7
Merge pull request #2265 from bencowperthwaite/master
...
STM32U5 HS Support
2023-10-18 15:25:57 +07:00
Shawn Hoffman
f88a5bb03b
hid_device: use separate buffer for SET_REPORT instead of epout
2023-10-17 19:26:11 -07:00
HiFiPhile
ade8a19aef
Put sw_buf in USB section only if necessary.
2023-10-17 21:21:52 +02:00
HiFiPhile
e9d894fe66
Fix compile.
2023-10-17 21:03:29 +02:00
Ha Thach
0ede159ad0
Merge pull request #2244 from gabChouin/feat-stm32u575_nucleo
...
Add stm32u575-nucleo support
2023-10-18 00:06:28 +07:00
hathach
a5a77af11e
add board.mk for u575 nucleo
2023-10-17 23:53:09 +07:00
hathach
22aefd6aba
add cmake support for u575 nucleo
2023-10-17 22:48:54 +07:00
Ha Thach
80ee307244
Merge branch 'master' into feat-stm32u575_nucleo
2023-10-17 22:31:33 +07:00
HiFiPhile
d83a210788
Add blackout time.
2023-10-17 15:18:05 +02:00
HiFiPhile
0a1d6cf4d0
Read sample rate directly from control transfer to eliminate callback.
2023-10-17 13:06:55 +02:00
HiFiPhile
656e1e416a
Add flow control for IN transfer.
2023-10-17 09:46:01 +02:00
Brian
d6acbd0ea5
Add CodeQL Workflow for Code Security Analysis
...
Add CodeQL Workflow for Code Security Analysis
This pull request introduces a CodeQL workflow to enhance the security analysis of our repository. CodeQL is a powerful static analysis tool that helps identify and mitigate security vulnerabilities in our codebase. By integrating this workflow into our GitHub Actions, we can proactively identify and address potential issues before they become security threats.
We added a new CodeQL workflow file (.github/workflows/codeql.yml) that
- Runs on every push and pull request to the main branch.
- Excludes queries with a high false positive rate or low-severity findings.
- Does not display results for third-party code, focusing only on our own codebase.
Testing:
To validate the functionality of this workflow, we have run several test scans on the codebase and reviewed the results. The workflow successfully compiles the project, identifies issues, and provides actionable insights while reducing noise by excluding certain queries and third-party code.
Deployment:
Once this pull request is merged, the CodeQL workflow will be active and automatically run on every push and pull request to the main branch. To view the results of these code scans, please follow these steps:
1. Under the repository name, click on the Security tab.
2. In the left sidebar, click Code scanning alerts.
Additional Information:
- You can further customize the workflow to adapt to your specific needs by modifying the workflow file.
- For more information on CodeQL and how to interpret its results, refer to the GitHub documentation and the CodeQL documentation.
Signed-off-by: Brian <bayuan@purdue.edu>
2023-10-11 19:59:23 -04:00
PanRe
118823c254
Merge pull request #2259 from HiFiPhile/uac_interl
...
Fix UAC encoding, update example.
2023-10-11 19:18:35 +02:00
HiFiPhile
c8430f5f85
Refactor to get rid of CMSIS DSP lib.
2023-10-10 20:00:50 +02:00
HiFiPhile
e2852da668
Update deps.
2023-10-10 18:35:24 +02:00
HiFiPhile
504d29cf7a
Update make & cmake file.
2023-10-10 18:25:42 +02:00
HiFiPhile
20699e30dd
Enhance plot script.
2023-10-10 18:25:14 +02:00
HiFiPhile
2ba760a1c1
Enhance audio_4_channel_mic example, plot 4 different waves for each channel.
2023-10-10 18:24:47 +02:00
HiFiPhile
8b2cb63da8
Fix naming nBytesPerSample.
2023-10-10 18:22:20 +02:00
HiFiPhile
b5c839f739
Merge branch 'master' of https://github.com/hathach/tinyusb into uac_interl
2023-10-10 15:02:25 +02:00
denis.krasutski
ce627f4318
feat(ch32f20x): add support of ch32f20x
2023-10-06 13:04:54 +03:00
Ha Thach
513ab37ec6
Merge pull request #2276 from hathach/more-esp32-max3421
...
More max3421
2023-10-05 17:53:13 +07:00
hathach
cfb683f481
tested with nrf52840 and esp32s2
2023-10-05 17:01:41 +07:00
hathach
67e34267a6
change tuh_max3421_spi_xfer_api() signature
...
tested working with sam d21 and d51, not tested with nrf52, seem not
working with esp32
2023-10-04 18:00:32 +07:00
hathach
f36e0b7b92
esp32 comment out uart, increase max3421 spi speed to 26mhz
2023-10-03 16:27:35 +07:00
Ha Thach
b394ae1786
Merge pull request #2270 from hathach/add-max3421-esp32
...
Add max3421 support for esp32
2023-09-28 16:56:20 +07:00
hathach
8348631bf5
improve esp32 ci, build esp32 with -DDMAX3421_HOST=1 for max3421 testing
...
revert change in hcd.h
2023-09-28 16:15:31 +07:00
hathach
6b8933cfe8
fix build with new freertos host example
2023-09-28 12:55:59 +07:00
hathach
7dc1a66f91
esp32 cdc host with max3421 work well
2023-09-28 11:12:22 +07:00
hathach
277852afc1
fix esp32 msc example
2023-09-28 10:56:38 +07:00
hathach
10abece264
esp32 hid device work well
2023-09-28 10:06:10 +07:00
hathach
3a10b6a3d5
fix esp32 build
2023-09-27 18:09:19 +07:00
hathach
76c43a5bdc
Merge branch 'master' into add-max3421-esp32
2023-09-27 17:52:18 +07:00
Ha Thach
5b08a65ad2
Merge pull request #2268 from HiFiPhile/iar_tmpl
...
Update IAR template.
2023-09-27 17:41:18 +07:00
Ha Thach
e4058177af
Merge pull request #2269 from hathach/add-in_isr-to-hcd_int_hanlder
...
Add in isr to hcd int hanlder
2023-09-27 17:40:50 +07:00
Ha Thach
68c4009bba
Merge branch 'master' into add-in_isr-to-hcd_int_hanlder
2023-09-27 17:01:40 +07:00
Mengsk
42eb4e0da0
Fix CI.
2023-09-27 11:46:52 +02:00
Mengsk
b35621fc63
Update IAR template.
2023-09-27 11:43:23 +02:00
hathach
58c49cea5b
remove sct_neopixel from lpc54 (due to warnings and not used)
2023-09-27 16:31:46 +07:00
hathach
0a4fb6963d
fix build with lpc54
2023-09-27 16:19:39 +07:00
hathach
3b0ffd0f48
change hcd_int_handler(rhport, in_isr) signature: add in_isr
...
change tuh_int_handler() to take in_isr as optional parameter (default =
true)
2023-09-27 15:51:03 +07:00
hathach
6dc64eaa28
max3421 communication work with esp32 up to enumeration, seems still have a bit of issue
2023-09-27 12:34:45 +07:00
hathach
2f6592de7f
update max3421 to have hcd_int_handler_ext()
2023-09-27 11:30:18 +07:00
bac
1168e4e163
Added support for USB2 HS peripheral (with integrated HS PHY) on STM32U59x chips
2023-09-26 15:27:17 +01:00
hathach
f6ca86c3dd
tested cdc_msc_hid_freertos with samd51
...
add -Wno-error=format for espressif
wrap up cdc_msc_hid_freertos
2023-09-26 19:09:36 +07:00
hathach
a7c136c03f
adding host/cdc_msc_hid_freertos example
2023-09-25 16:53:11 +07:00
HiFiPhile
6be7f354c2
Fix cast-align.
2023-09-19 16:35:05 +02:00
Ha Thach
56c6d2feab
Merge pull request #2258 from hathach/cmake-u5
...
Cmake u5
2023-09-19 21:26:20 +07:00
HiFiPhile
9d0251f7a6
Fix UAC interleaved copy.
2023-09-19 15:42:52 +02:00
hathach
b73262be3a
minor indent
2023-09-19 18:38:47 +07:00
hathach
8cdcd0fa9d
fix build and add u5 to ci
2023-09-19 18:35:15 +07:00
hathach
71a2e8a36d
addding cmake support for u5
2023-09-19 17:59:38 +07:00
hathach
81cd995108
add default CFG_TUH_MAX3421 = 0, default spi speed for samd21/samd51 to 12Mhz
2023-09-18 22:15:31 +07:00
Rocky04
337d03d368
Incorrect comment
2023-09-14 19:16:45 +00:00
Rocky04
c87fba1dc3
Bug
2023-09-14 19:03:16 +00:00
Rocky04
46977a011d
Fixign errors
2023-09-14 18:53:55 +00:00
Rocky04
288f24b294
Missing semicolon
2023-09-14 18:50:13 +00:00
Rocky04
997c29ba05
SOF ISR control
2023-09-14 18:46:56 +00:00
Rocky04
81e63ed6d8
Fixing warning
2023-09-13 22:03:44 +00:00
Rocky04
11fba84334
Error handling on transfer
2023-09-13 21:29:04 +00:00
Ryan Solorzano
a3d9eb43f1
Update Lighting Descriptor Template comment
2023-09-12 12:09:39 -07:00
Ryan Solorzano
3e8cf3ec8c
Add HID Lighting and Illumination functionality
2023-09-12 11:32:23 -07:00
Ha Thach
46f7cf4da2
Merge pull request #2235 from slark-yuxj/master
...
fix:Resource leak: fp
2023-09-12 17:43:14 +07:00
Ha Thach
e9ba93315c
Merge pull request #2245 from arduino/fix_msd_extraneus_bytes_on_reading
...
Fix msd extraneus bytes on reading
2023-09-12 12:53:52 +07:00
Ha Thach
6d922de0cb
Merge pull request #2251 from hathach/add-max3421e-hcd
...
Add max3421e host driver
2023-09-11 22:22:13 +07:00
hathach
f55052b61f
enable max3421 host for feather nrf52840 with makefile
2023-09-11 16:44:06 +07:00
hathach
1eb0cb0c65
update readme to include max3421 support
2023-09-11 15:45:26 +07:00
hathach
ab9585401b
wrap up build cmake & make support for max3421, to enable the Host driver, 'MAX3421_HOST=1' must be added as part of make/cmake command
2023-09-11 11:35:51 +07:00
hathach
e32c1e08bd
both samd21/d51 works perfectly with max3421e
2023-09-09 16:50:16 +07:00
hathach
605ad73ec0
refactor max3421_init() for samd51 to be generic for sercom and eic
2023-09-09 13:04:36 +07:00
hathach
c074488f75
minor rename
2023-09-09 12:20:16 +07:00
maidnl
228acbeac2
wait_pipe_fifo_empty() now returns bool (as expected using TU_ASSERT macro)
2023-09-08 15:48:05 +02:00
hathach
1d68f2a328
metro m4 working with max3421e
2023-09-08 18:39:09 +07:00
hathach
bcc77a60e0
get spi working for metro m4 express
2023-09-08 17:40:00 +07:00
maidnl
7ce4cfa638
renesas: added wait function for IN transaction
...
This fixes a problem found on MSD class where data read from from disks were sometimes partially overwritten by the status MSD message ("USBS...").
The function introduced wait for the hw fifo pipe to be empty, that prevent that new writing in the fife overwrite data which are not yet be transmitted by hw.
2023-09-08 10:49:05 +02:00
Hardy Griech
f1d3663d24
minor changes to comments and debug output
2023-09-08 07:01:13 +02:00
Hardy Griech
745c154dbc
ECM/RNDIS again selected for webserver example
2023-09-08 07:00:08 +02:00
hathach
ed102a7795
Merge branch 'master' into add-max3421e-hcd
2023-09-07 21:42:46 +07:00
Ha Thach
702740a3e2
Merge pull request #2246 from hathach/add-cmake-samd
...
Add cmake support for samd21 and samd51
2023-09-07 17:55:50 +07:00
hathach
d3c08ecc3a
more ci fix
2023-09-07 17:20:07 +07:00
hathach
e8558458c4
fix ci
2023-09-07 17:09:25 +07:00
hathach
2dea4ce6a2
add cmake support for samd21.
...
update ci cmake
2023-09-07 16:58:40 +07:00
hathach
bb5d43e9c5
add samd51 to cmake
2023-09-07 15:31:43 +07:00
hathach
21ab40bab2
- wrap up hcd max3421, work well with nrf52840
...
- also add usbh_defer_func()
2023-09-07 12:38:18 +07:00
hathach
1b9108ea0d
minor debug clean up
2023-09-06 17:11:35 +07:00
Gabriel Chouinard
c4566c4d2b
Enable instruction cache for stm32u5 boards
2023-09-05 21:39:28 -04:00
Gabriel Chouinard
4fb15f6bb7
Add stm32u575-nucleo support
2023-09-05 19:30:38 -04:00
Hardy Griech
51ea467350
removed debug comment
2023-08-31 20:34:12 +02:00
Hardy Griech
92025b00f0
code review: add NCM options in example config
2023-08-31 20:32:42 +02:00
Hardy Griech
1dd9fa3f30
code review: changed to TinyUSB log system
2023-08-31 20:24:56 +02:00
hathach
ed0a233d48
vastly improve attach/detach device, still have issue where thing is still hanged occasionally.
2023-08-31 21:28:27 +07:00
hathach
3b7d5aa042
improve connection & disconnection detection. But there is still issue when CONDETIRQ occurs but we are disabled interrupt (for osal queue access).
2023-08-31 16:52:09 +07:00
hathach
41493426b3
use ep buf to keep setup packet, work well with hid device
2023-08-30 16:21:43 +07:00
hathach
1ab488eb06
call xfer_complete_isr() when result is not successful (stalled or failed)
2023-08-30 16:04:18 +07:00
Alexander Mueller
9665843635
Fix the weak dcd_edpt0_status_complete for Keil Compiler
...
The Keil compiler seems to have different semantics and the defined function was never called.
The same is probably true for the other weak functions. I can change those too.
2023-08-29 18:16:50 +02:00
hathach
2a814a99af
- hcd_setup_send() also check for busy flag
...
- xact_inout() to support send setup
2023-08-29 20:27:37 +07:00
hathach
3740a3287a
- correct tuh_max3421e_int_api() for nrf52
...
- hcd_int_disable/enable is software only to reduce interrupt lag
2023-08-29 18:22:21 +07:00
Ha Thach
9063ede25f
Merge branch 'master' into nxp_k64
2023-08-28 17:46:05 +07:00
hathach
aa0fabd51d
add kinetis_k family and teensy_35
...
- teensy_35 is not able to blink led with board_test though, probably due to clock config.
2023-08-28 17:44:29 +07:00
hathach
588b758717
rename OPT_MCU_KINETIS_K64 to OPT_MCU_KINETIS_K
2023-08-28 17:34:40 +07:00
yuxiaojun
c350616038
fix:Resource leak: fp
...
Signed-off-by: yuxiaojun <yuxiaojun1011@outlook.com>
2023-08-28 15:24:14 +08:00
hathach
b31924e13e
- add xfer_complete_isr()
...
- merge addr0 ep to pool
- add control status to xact in/out
- use atomic flag busy to ensure only 1 transfer is active at any time
- execute pending transfer after one is complete (or clear busy flag)
- change rtt mode to block if full
2023-08-28 12:41:44 +07:00
hathach
84df3b04db
minor update
2023-08-27 23:54:24 +07:00
hathach
502b1bdda6
more update to transaction
2023-08-27 23:45:34 +07:00
hathach
cd7464a884
try next endpoint when received NAK
2023-08-25 17:37:09 +07:00
hathach
ac00b91472
add xact_out(), xact_in() to manage transfer
2023-08-25 17:26:57 +07:00
hathach
ecf2f91042
use endpoint pool for more flexible multiple devices support
2023-08-25 16:36:28 +07:00
hathach
09ceaa6cf3
add osal mutex for spi
2023-08-25 13:18:47 +07:00
hathach
f5ebc1700f
add spi lock with interrupt enable/disable
2023-08-25 12:12:44 +07:00
hathach
e6cf125e53
save data toggle, always retry NAK. work with msc device
2023-08-24 16:46:20 +07:00
hathach
344932d27e
add tuh_max3421e_int_api(), retry control if received NAK
2023-08-24 16:27:47 +07:00
hathach
3ed5d6c372
complete enumeration
2023-08-24 16:27:12 +07:00
Ha Thach
7bf5923052
Merge pull request #2142 from sjanc/symlinks
...
Fix documentation symlinks
2023-08-24 00:01:55 +07:00
hathach
2c237b1ae4
able to complete 1st get device descriptor and set address
2023-08-23 17:49:28 +07:00
hathach
e3f3179924
able to get 8 byte descriptor, but read(RCVBC) always return 0
...
- rename max3421e to max3421
- fix incorrect bitmask for HCTL, fix initial device connect
- fix bus reset cause connect IRQ
2023-08-23 15:08:12 +07:00
hathach
274578ff46
able to send setup packet
2023-08-22 23:17:12 +07:00
hathach
b413439416
able to detect new device and start enumerating
2023-08-22 19:57:59 +07:00
Hardy Griech
2c1addff4f
defined(ECLIPSE_GUI)
2023-08-20 18:27:06 +02:00
Hardy Griech
28107326da
bug fix recv/xmit_get_next_ready_ntb()
2023-08-20 18:24:08 +02:00
Hardy Griech
e4c18c101c
Copyright
2023-08-20 18:24:01 +02:00
Hardy Griech
d5da303f45
moved some declarations
2023-08-20 18:23:53 +02:00
Hardy Griech
fca08c939c
files taken from yapicoprobe
2023-08-20 18:23:32 +02:00
hathach
cacc96b25d
adding connection event handling, add nrf gpio interrupt for max2341e interrupt pin
2023-08-18 17:39:10 +07:00
hathach
824e585e2b
ground works for hcd max3421e
2023-08-18 14:07:38 +07:00
hathach
9257a0f562
- update nrf52 bsp for cmake
...
- add empty tuh_int_handler/tud_int_handler if corresponidng stack not enabled
- add hcd_template.c
2023-08-18 12:48:12 +07:00
Ha Thach
1fdf29075d
Merge pull request #2221 from hathach/ehci-halted-error
...
EHCI more fixes
2023-08-16 16:01:16 +07:00
hathach
f4845e4e6c
minor comment
2023-08-16 14:43:58 +07:00
hathach
0109ffbdcb
fix abort transfer does not release endpoint, also reset state if it is control transfer
2023-08-16 14:31:14 +07:00
hathach
b3c7fe1023
clear qhd halted bit if not caused by STALL protocol, allow for next transfer
2023-08-16 11:12:00 +07:00
Ha Thach
7537985c08
Merge pull request #2222 from rppicomidi/fix-2188
...
fix issue 2188: support usbh_app_driver_get_cb()
2023-08-15 23:33:19 +07:00
hathach
67a374d932
more rename
2023-08-15 22:57:05 +07:00
hathach
1b33a31536
more minor clean up
...
- also rename usbh_classdriver.h to usbh_pvt.h to consitent with usbd
2023-08-15 22:54:07 +07:00
rppicomidi
9d94296741
fix issue 2188: support usbh_app_driver_get_cb()
2023-08-14 15:38:48 -07:00
Ha Thach
d713571cd4
Merge pull request #2217 from hathach/add-lpc43s67
...
Add lpc43s67
2023-08-14 22:28:53 +07:00
Ha Thach
ba40d667e1
Merge pull request #2219 from tswan-quasi/master
...
min on cdc r/w
2023-08-14 22:25:44 +07:00
hathach
f2f005cbdf
fix build iar with lpc43
2023-08-14 22:01:30 +07:00
hathach
088180e3d8
add iar support for lpc43, add lpcxpresso43s67 to hil farm
2023-08-14 20:58:00 +07:00
tswan-quasi
b5ba12119d
UINT16_MAX stdint macro usage
2023-08-14 09:01:30 -04:00
tswan-quasi
bd51afb091
min on cdc r/w
2023-08-14 08:49:52 -04:00
hathach
78e5b2c6a4
add board_get_unique_id() for lpc43
2023-08-14 16:52:16 +07:00
hathach
202b945f88
add lpcxpresso43s67
2023-08-14 16:38:51 +07:00
Hardy Griech
798ff807b3
removed obsolete tud_network_link_state_cb()
2023-08-11 18:04:34 +02:00
Ha Thach
92457ec99f
Merge pull request #2202 from Rocky04/patch-4
...
Invoke unmounted state on configuration reset
2023-08-09 20:48:26 +07:00
Ha Thach
04f0cd5c80
Merge pull request #2209 from HiFiPhile/hitl
...
Enhance HITL test
2023-08-09 20:20:46 +07:00
hathach
8e690df1da
rename hitl to hil
2023-08-09 19:03:56 +07:00
hathach
1268d1a093
update hil test and json (remove troublesome lpc54608), run hil test on ci with IAR build
2023-08-09 18:46:23 +07:00
hathach
1abfa9ac75
Merge branch 'hitl' into pr_hitl
2023-08-09 12:48:46 +07:00
hathach
b8b01c1075
update to dcd ip3511 to add work-around for lpc54628 usb hs errata USB.1 and USB.2
...
msc is mounted, but device couldn't work reliably and got constant reset
due to other errata probably.
2023-08-09 12:47:24 +07:00
Rocky04
427ecbbc53
Bad line break at start
2023-08-08 23:33:47 +02:00
HiFiPhile
992e17fb48
Add simple test for hid_boot_interface.
2023-08-08 22:08:59 +02:00
Rocky04
a98b219922
Remove port from SOF callback
2023-08-08 18:14:00 +00:00
Rocky04
0161955c22
Adding support for a SOF callback
2023-08-08 17:48:45 +00:00
HiFiPhile
bffe321cd2
Update contributor.rst
2023-08-08 18:25:15 +02:00
HiFiPhile
56bed1e581
Flash board_test when done, skip cdc_msc for LPC54.
2023-08-08 17:34:45 +02:00
HiFiPhile
3444c4abe5
Add dummy board_test.
2023-08-08 17:34:07 +02:00
hathach
6d877c3170
added cmake for lpc54, update lpc55
2023-08-08 18:50:24 +07:00
Rocky04
9602c06f8d
Correcting comments
2023-08-07 21:25:50 +02:00
Rocky04
c959e65edd
Fixing wrong callback placement
2023-08-07 21:16:41 +02:00
Rocky04
12ed867b5e
Fixed typo
2023-08-07 20:59:08 +02:00
HiFiPhile
c24f10e4f6
Mount block device in test_cdc_msc.
2023-08-07 20:48:54 +02:00
Ha Thach
51a0889b75
Merge pull request #2211 from hathach/host-usb-reset
...
Host usb reset
2023-08-07 23:10:47 +07:00
hathach
4938971aad
code format
2023-08-07 20:48:09 +07:00
hathach
18646179d0
fix host msc get maxlun not using aligned section memory
2023-08-07 20:48:08 +07:00
hathach
1f95a417f2
Add tuh_rhport_is_active() and tuh_rhport_reset_bus()
...
- also improve ehci bus reset
- seperate bus reset delay and contact debouncing delay in enumeration
2023-08-07 20:48:07 +07:00
Rocky04
45af3d6a83
Update examples
2023-08-07 12:04:22 +00:00
Ha Thach
1b92108bc3
Merge pull request #2208 from kkitayam/fix_makefile_for_win
...
Fix makefile a warning when run on windows command prompt
2023-08-07 16:13:44 +07:00
Ha Thach
accc3fd737
Merge pull request #2151 from kilograham/rp2040_build_fixes
...
Fix build issues when building for RP2040 from pico-examples/pico-sdk.
2023-08-07 11:14:04 +07:00
HiFiPhile
87150b7770
Add config file as argument.
2023-08-06 22:02:15 +02:00
HiFiPhile
c940a2f362
Fix RTT build.
2023-08-06 21:55:24 +02:00
HiFiPhile
4d1f3f4e9d
Add more MCU.
2023-08-06 16:59:25 +02:00
HiFiPhile
b9e614bd39
Fix LPC54 build.
2023-08-06 15:59:25 +02:00
kkitayam
b173c71ffc
Change to subst to work on windows command prompt
2023-08-06 22:49:45 +09:00
HiFiPhile
9dd896904c
WIP.
2023-08-06 13:41:41 +02:00
HiFiPhile
4f96eebe1b
Fix LPC54 build.
2023-08-06 13:41:10 +02:00
Ha Thach
3db945283a
Merge pull request #2185 from abakosh/clean_RA_HCD
...
Fix typos in HCD rusb file
2023-08-04 21:59:19 +07:00
Ha Thach
c43e7b198d
Merge pull request #2206 from hathach/hw-test-jlink-sn
...
add usb serial for hw l412 test
2023-08-04 21:56:46 +07:00
hathach
3c746e8bb0
add usb serial for hw l412 test
2023-08-04 21:33:44 +07:00
Aladdin Bakosh
56e52037a8
clean(ra_hcd): fix typos in the hcd library
2023-08-04 12:00:25 +02:00
Ha Thach
363cea7c34
Merge pull request #2121 from ahooper/blackf407VE
...
Board support for STM32F407VETx
2023-08-04 13:12:38 +07:00
hathach
25bace5e81
add cmake for all board in stm32f4. fix build, also move ci for f4 from makefile to cmake
2023-08-04 12:49:26 +07:00
hathach
81aca17d6e
Merge branch 'master' into blackf407VE
2023-08-04 12:07:39 +07:00
Ha Thach
61f00c0c4d
Merge pull request #2135 from JustAnother1/master
...
made line ends consistent.
2023-08-04 12:05:07 +07:00
Ha Thach
1b04db2a77
Merge branch 'master' into master
2023-08-04 11:48:04 +07:00
Ha Thach
de4ad2c775
Merge pull request #2204 from hathach/enhance-bsp
...
Enhance bsp
2023-08-04 11:41:44 +07:00
Ha Thach
bbdc879995
Merge pull request #2133 from greatscottgadgets/cynthion_support
...
Update support for Cynthion boards
2023-08-04 11:03:25 +07:00
Ha Thach
9a4c76d18d
Merge pull request #2116 from dsugisawa-mixi/master
...
fix example of bare_api, check empty string
2023-08-04 11:00:09 +07:00
hathach
9697c4df4e
update all examples to use unique ID as serial if avaialble
2023-08-04 10:28:24 +07:00
hathach
67ff3f7845
more clean up
2023-08-04 00:37:01 +07:00
hathach
ef5bd9ee6c
Merge branch 'master' into enhance-bsp
2023-08-04 00:31:12 +07:00
hathach
9360a3bd51
add uid for some stm32
2023-08-04 00:23:10 +07:00
hathach
041f510f90
add board_get_unique_id() for serial number
...
implemented board_get_unique_id() for rp2040 and L4
2023-08-03 20:42:34 +07:00
Ha Thach
6d03bb9ffc
Merge pull request #2052 from arduino/renesas_ra_hs_rebased
...
Renesas_RA: add support for board with HS USB port
2023-08-03 20:41:13 +07:00
hathach
1324c2862d
more board_api rename
2023-08-03 17:32:15 +07:00
hathach
a160da1f2b
add lpc43 family
2023-08-03 17:19:47 +07:00
hathach
a5768f52b4
more board_api.h rename
2023-08-03 15:50:52 +07:00
hathach
cf91660cee
rename hw/bsp/board.h to board_api.h
2023-08-03 15:44:05 +07:00
hathach
4493b838d9
rename ch32v307 and tm4c123 to use underscore
2023-08-03 15:35:01 +07:00
hathach
4cb8b513af
ide settings
2023-08-03 15:17:57 +07:00
Ha Thach
d91869a1fa
Merge pull request #2105 from kholia/cdc_uac2_example
...
Add CDC+UAC2 composite device example for Pico
2023-08-03 15:13:56 +07:00
hathach
d89fc0772b
add makefile, add cdc_uac2 to cmake example list, update descriptor to build with nrf and samg/7x
2023-08-03 14:55:24 +07:00
Ha Thach
e5b171868a
Merge pull request #2091 from DRNadler/master
...
For FreeRTOS kernel-aware debugging, when queue registry is enabled, …
2023-08-03 14:30:28 +07:00
hathach
6844055dd1
Merge branch 'master' into cdc_uac2_example
2023-08-03 12:15:07 +07:00
hathach
37a7f9f382
configQUEUE_REGISTRY_SIZE=4 for lpc18
2023-08-03 12:07:28 +07:00
hathach
473f37df95
add osal queue name if needed
...
also mass change configQUEUE_REGISTRY_SIZE = 4
2023-08-03 12:05:21 +07:00
hathach
de8faf8664
Merge branch 'master' into pr2091
2023-08-03 11:09:33 +07:00
hathach
d09604d636
Revert "Name queues for easier FreeRTOS debugging with task- and queue-aware debuggers"
...
This reverts commit 11fba59319d81fb9502fbf399abb4fe27cf3fa29.
2023-08-03 11:07:23 +07:00
Rocky04
9560d0813f
Set unmounted on configuration reset
2023-08-02 15:25:08 +02:00
hathach
2021c62997
fix pre-commit, also skip lto for rp2040
2023-08-02 17:57:28 +07:00
Ha Thach
5cf94234d2
Merge pull request #2200 from hathach/selective-log
...
default class driver log level to CFG_TUH/TUD_LOG_LEVEL
2023-08-02 16:26:57 +07:00
hathach
868d52f3a8
move codespell folder to tools
2023-08-02 15:52:06 +07:00
hathach
979bf32266
default class driver log level to CFG_TUH/TUD_LOG_LEVEL allow application to selectively disable usbd/usbh or driver log
2023-08-02 15:34:18 +07:00
Ha Thach
2cf869c1a4
Merge pull request #2197 from HiFiPhile/fix_g0
...
Fix STM32G0 build.
2023-08-02 10:09:49 +07:00
HiFiPhile
07822979aa
Fix STM32G0 build.
2023-08-01 18:41:15 +02:00
Martino Facchin
edee46e794
renesas: host: remove attach_attempt logic
2023-08-01 15:21:31 +02:00
Ha Thach
5e1ed9d580
Merge pull request #2187 from 0xCCF4/master
...
Fixed typo in binary declaration RP2040 hw bspw family.c
2023-08-01 17:55:40 +07:00
hathach
47ae883ba0
fix build with -flto
2023-08-01 17:26:56 +07:00
hathach
f04e5108b2
Merge branch 'arduino-renesas_ra_hs_rebased' into renesas_ra_hs_rebased
2023-08-01 17:08:03 +07:00
hathach
04f1a34c39
add rusb2_common.c for dynami irq
2023-08-01 17:03:07 +07:00
Martino Facchin
965627e81c
rusb2: move dynamic irq function to c file
2023-08-01 11:41:33 +02:00
hathach
40833b585b
enable flto for ra makefile
...
- remove ra from ci make build since it is already in cmake ci
2023-08-01 15:44:54 +07:00
hathach
789e478d4d
add portenta c33 bsp, add flash by dfu-util
2023-08-01 13:16:37 +07:00
hathach
1cccbaf7ec
fix board name with dash
2023-08-01 11:18:00 +07:00
hathach
3f788a4e5a
enable USBMC for uno r4, add board_init_after_tusb() API
...
add BOARD_UPPERCASE for board detection
2023-07-31 19:09:40 +07:00
hathach
cb47231518
revert out of scope changes
2023-07-31 17:13:37 +07:00
Ha Thach
ce54984556
Merge pull request #2093 from abakosh/no_osal_delay
...
osal_none: make it possible to override the task delay function
2023-07-31 17:12:28 +07:00
hathach
0d9973ef87
enable_irq since uno bootloader can disable it. systick triggered, however usb still not work with uno
2023-07-31 16:21:19 +07:00
hathach
feb58ebd54
add uno r4 wih FLASH_IMAGE_START=0x4000, running but interrupt (systick) does not seems to work
2023-07-28 19:01:12 +07:00
0xCCF4
8226b046a9
Fixed typo in rp2040 hw bspw family.c
2023-07-28 11:19:08 +02:00
hathach
e56d5443a8
- revert usb address
...
- more clean up
2023-07-28 12:42:40 +07:00
hathach
6021803d58
fix ci
2023-07-28 11:33:26 +07:00
hathach
ec093bebad
Merge branch 'master' into renesas_ra_hs_rebased
2023-07-27 16:50:34 +07:00
Ha Thach
db59494b1b
Merge pull request #2179 from hathach/enhance-ehci
...
Enhance EHCI
2023-07-27 16:15:43 +07:00
hathach
5a29db2787
add check for edpt_xfer() with halted, also reset data toggle when clear stall
2023-07-27 15:52:55 +07:00
Ha Thach
d9cc30291f
Merge pull request #2182 from hathach/correct-hcd_edpt_clear_stall-API
...
correct hcd_edpt_clear_stall() API signature
2023-07-26 21:42:08 +07:00
hathach
10575c1b38
mising ehci
2023-07-26 20:48:18 +07:00
hathach
c37a957174
correct hcd_edpt_clear_stall() API signature
2023-07-26 19:56:48 +07:00
hathach
6b6dcc6c09
refactored multiple ports for hcd rusb2
2023-07-26 19:52:33 +07:00
hathach
1cb3f0e92a
increase stack size for 6 series to 0x1000, 4 series to 0x800
2023-07-26 18:56:13 +07:00
hathach
fbaa148fe0
updating hcd rusb2
...
- make osal_task_delay() as weak function in usbh
- implement osal_task_delay() in hcd rusb2 (may moved to other places)
2023-07-26 18:55:41 +07:00
Xelus22
d0bff6fd3e
initial add SOF supporpt to CH32V307 USB HS
2023-07-25 23:53:55 +10:00
hathach
4deea87579
improve processing usb complete and error isr.
...
also merge them together
2023-07-25 15:07:21 +07:00
hathach
dc74e634f9
fix unaligned hub status_change
2023-07-25 12:35:40 +07:00
hathach
ef69da054e
use standard EHCI USB INT instead of chipidea async/period interrupt to be compatible with other EHCI implementation
2023-07-25 12:03:54 +07:00
Ha Thach
9554283b03
Merge pull request #2175 from hathach/hcd-abort-xfer
...
Add HCD abort xfer API
2023-07-24 22:08:53 +07:00
Ha Thach
fda92fd34a
Merge branch 'master' into hcd-abort-xfer
2023-07-24 21:38:46 +07:00
Ha Thach
0b38941362
Merge pull request #2173 from hathach/imxrt-dcache-align
...
change dcache clean/invalidate return type to bool
2023-07-24 21:36:15 +07:00
hathach
f295aaf185
add hcd abort xfer for rp2040 pio usb
2023-07-24 20:58:50 +07:00
hathach
fd29fd923a
clean up
2023-07-24 20:53:44 +07:00
Ha Thach
d685ac689b
Merge pull request #2172 from hathach/cmake-4088
...
update bsp for 4088
2023-07-24 20:49:20 +07:00
hathach
25225ba792
minor clean up
2023-07-24 18:04:42 +07:00
hathach
d254256047
change dcache clean/invalidate return type to bool
...
add tu_assert() check for aligned 32byte address for imxrt
2023-07-24 17:54:24 +07:00
hathach
14a7379799
fix ohci warnings, and add freertosconfig for lpc4088
2023-07-24 16:54:02 +07:00
hathach
210fc7d038
add etm trace pinmux for 4088 quickstart
2023-07-24 16:19:45 +07:00
hathach
ef49b93532
rename CFG_TUSB_MEM_SECTION to CFG_TUD_MEM_SECTION in device stack
...
CFG_TUD_MEM_SECTION is default to CFG_TUSB_MEM_SECTION
2023-07-24 15:46:21 +07:00
hathach
a268e0b7a3
add lpc40 to cmake
2023-07-24 15:18:41 +07:00
emb4fun
e2f28bc134
Added support for the NXP K64 series
2023-07-23 10:53:22 +02:00
Ha Thach
8fa0b74d80
Merge pull request #2155 from jferreir/xmc4700_relax
...
Board support for XMC4700_RELAX
2023-07-21 19:08:51 +07:00
hathach
c122e9df73
implement hcd_edpt_abort_xfer() for EHCI, also move thing around a bit
2023-07-21 19:06:36 +07:00
hathach
14c98dd863
minor ehci rename, move code around
2023-07-21 16:39:30 +07:00
hathach
0da273ea79
add stub hcd_edpt_abort_xfer() for all ports
2023-07-21 12:52:26 +07:00
hathach
1cc7c5d030
add hcd_edpt_abort_xfer() API
2023-07-21 12:43:48 +07:00
jferreir
34ff7af7c7
Fix trailing spaces issue
2023-07-20 18:12:36 +02:00
jferreir
48101cc294
Merge branch 'hathach:master' into xmc4700_relax
2023-07-20 17:12:57 +02:00
jferreir
6ac7f19640
fix compilation issues for XMC4500_RELAX
2023-07-20 17:01:00 +02:00
hathach
954f0e948d
prefer application callback over built-in driver
2023-07-20 17:01:00 +02:00
hathach
eae8678d67
improve logging, allow easier to turn off usbd, driver logging
...
can be useful when focusing on let's say usbh
2023-07-20 17:01:00 +02:00
Ha Thach
17576a6949
Merge pull request #2156 from hathach/usbh-xfer-user-callback
...
Usbh xfer user callback
2023-07-20 18:30:09 +07:00
hathach
16ad918d96
prefer application callback over built-in driver
2023-07-20 17:37:06 +07:00
hathach
77495cf119
improve logging, allow easier to turn off usbd, driver logging
...
can be useful when focusing on let's say usbh
2023-07-20 17:12:00 +07:00
jferreir
2772581c28
Add support for XMC4700_RELAX kit
2023-07-20 10:53:59 +02:00
jferreir
59778664c9
Add UART_DEV support
2023-07-20 10:53:29 +02:00
jferreir
b1e345b6bc
Add UART_DEV support
2023-07-20 10:52:16 +02:00
Ha Thach
6c7c9f2ef5
Merge pull request #2152 from kilograham/is_pico_pio_usb_supported
...
add is_compiler_supported_by_pico_pio_usb() for rp2040
2023-07-18 23:54:33 +07:00
graham sanderson
08a1892801
add is_compiler_supported_by_pico_pio_usb()
...
previosuly users of TinyUSB (e.g. pico-examples) would have to decide this for themselves. This function couples
the check closer with the actual version of Pico-PIO-USB used (since TinyUSB picks)
2023-07-18 11:04:46 -05:00
Ha Thach
e3d4385280
Merge pull request #2150 from kkitayam/flash-jlink-for-windows
...
Fix flash-jlink target to work on Windows command prompt
2023-07-18 22:33:57 +07:00
graham sanderson
3678a25baa
Fix build issues when building for RP2040 from pico-examples/pico-sdk.
...
* include_guard requires GLOBAL as family.cmake is included in multiple non child places
* the following recently added check is suprfluous (family_configure_host_example for rp2040 should do this already),
and breaks if pico_pio_usb is not avaialble, so i have removed
# Add pico-pio-usb for rp2040 since user can choose to run on bit-banging host
if(FAMILY STREQUAL "rp2040")
family_add_pico_pio_usb(${PROJECT})
endif()
* added new familt_example_missing_dependency functino to print missing dependency warning, so
pico-examples can override it to be less in your face, and also more contextual to pico-examples
2023-07-18 09:03:01 -05:00
kkitayam
efa8b4a9b8
Change a variable to a target so that it works on windows command prompt
...
echo command of windows command prompt can't handle line breaks in a variable.
2023-07-18 22:55:55 +09:00
Aladdin Bakosh
3fdd2a40b2
osal_none: make it possible to override the task delay function
2023-07-18 14:14:23 +02:00
Ha Thach
973c7d47eb
Merge pull request #2149 from hathach/fix-etm-trace-h7
...
fix etm trace clock with stm32h743eval board
2023-07-18 16:40:26 +07:00
Ha Thach
2bab947e38
Merge pull request #2146 from tannewt/host_cache_align
...
Fix host buffer alignment setting
2023-07-18 16:39:48 +07:00
hathach
2cd0b9ec35
fix etm trace clock with stm32h743eval board
2023-07-18 16:22:05 +07:00
hathach
b56c4fe945
Merge branch 'master' into renesas_ra_hs_rebased
2023-07-18 15:13:58 +07:00
Ha Thach
6798e7e059
Merge pull request #2120 from abakosh/RA_STALL
...
fix(RA_hcd): STALL status can be also 3 not only 2
2023-07-18 15:11:02 +07:00
Ha Thach
c5e23eaa14
Merge pull request #2148 from hathach/imxrt-bsp
...
Imxrt bsp
2023-07-18 14:47:21 +07:00
hathach
5723d38087
correct jlink dev for rt1010
2023-07-18 13:28:57 +07:00
Aladdin Bakosh
3230d5b1ea
debugging can be configured on renesas dcd
2023-07-17 11:54:09 +02:00
Aladdin Bakosh
41b608562a
debugging can be configured on renesas hcd
2023-07-17 11:54:09 +02:00
Aladdin Bakosh
1923b1845d
fix(RA_hcd): STALL status can be also 3 not only 2
2023-07-17 11:54:09 +02:00
Scott Shawcroft
8b6d0a166b
Fix host buffer alignment setting
2023-07-14 15:30:22 -07:00
hathach
eb298e2b81
add clock_config.c for imxrt generated by mcuxpresso config
2023-07-14 12:45:54 +07:00
Szymon Janc
4b59cb9a20
Fix documentation symlinks
...
There were typos in symlinks target names resulting in following
warrning on checkout (at least in Mynewt newt tool):
* Warning: stat mynewt/repos/tinyusb/docs/contributing/code_of_conduct.rst: no such file or directory
* Warning: stat mynewt/repos/tinyusb/docs/info/contributors.rst: no such file or directory
2023-07-10 12:12:26 +02:00
hathach
0f53e746ff
move check highspeed to rusb_ra
2023-07-07 18:41:16 +07:00
hathach
f7e7ba92ca
enable host example for ra
2023-07-07 16:27:12 +07:00
hathach
88478a9d05
add PORT selection for makefile
2023-07-07 16:24:22 +07:00
hathach
e0f1ba8b0e
fully work with multiple ports without CFG_TUSB_RHPORT0/1
2023-07-07 16:07:11 +07:00
hathach
4c156100fa
use unaligned access read for hw fifo
2023-07-07 12:27:18 +07:00
hathach
4bbacb1008
correct setting trace clock
2023-07-07 11:07:57 +07:00
hathach
c53acb1455
fix build with rx
2023-07-06 20:10:58 +07:00
hathach
1eefc2b3ef
more multiple ports update
2023-07-06 19:35:42 +07:00
hathach
95b77a0e73
add rusb2_module_start(), more update for multiple ports for dcd rusb2
2023-07-06 15:54:07 +07:00
hathach
f308435b64
update ra type to include usbhs registers
2023-07-06 09:34:33 +07:00
hathach
4f4c93594d
minor pipe clean up
2023-07-05 17:51:36 +07:00
hathach
f79529c09c
usb hs work with ra 6m5 ek
2023-07-05 17:13:01 +07:00
hathach
1d6ca3bc9b
fix ra4m3 ek build
2023-07-04 20:04:54 +07:00
hathach
071c30f381
update fsp to version 4.5, correct RA BSP. Fix ETM Trace with 6m5 by lowering PLL to 128Mhz.
2023-07-04 19:27:37 +07:00
Andrew Hooper
cfc146e18f
Add FreeRTOSConfig for family stm32f4
2023-07-04 08:08:05 -04:00
Andrew Hooper
34966304dd
Restore RTOS argument for stm32f4
2023-07-03 11:21:47 -04:00
hathach
bb0e688b8e
add jlinkscript for detect rtt
2023-07-03 16:35:22 +07:00
hathach
04b1a67898
Merge branch 'master' into renesas_ra_hs_rebased
2023-07-03 13:09:43 +07:00
Ha Thach
f1e006d09b
Merge pull request #2137 from hathach/cmake-ra
...
enhance RA family
2023-07-03 12:25:29 +07:00
hathach
d5d1b43eb9
board pin data clean up
2023-07-03 12:07:27 +07:00
hathach
4080ab3d03
wrap up ra update
2023-07-03 11:22:19 +07:00
hathach
960d9fa6f1
move files around
2023-07-03 11:03:50 +07:00
hathach
ad7764b5b2
move vector_data.h and ioport_cfg.h to common family
2023-07-03 10:54:37 +07:00
Ha Thach
942eb0f323
Merge pull request #2129 from dauc/patch-1
...
Fix minor spelling issues
2023-07-02 23:40:37 +07:00
hathach
787229a35e
add etm trace for 6m5
2023-07-02 23:39:43 +07:00
Lars Pötter
2029ca9536
also fixed pico_trac() log messages.
2023-07-02 10:53:08 +02:00
Lars Pötter
0693462eba
made line ends consistent.
2023-07-02 09:02:24 +02:00
hathach
ec02ddf986
initial ra6m5 ek, board_test led + sw works
2023-07-01 21:43:52 +07:00
A. Hooper
9554a354d4
Merge branch 'hathach:master' into blackf407VE
2023-07-01 08:03:16 -04:00
Andrew Hooper
7d45a43f57
Correct loader file
2023-07-01 07:59:39 -04:00
hathach
14f1123bbd
remove left-over build_arm
2023-07-01 17:55:36 +07:00
hathach
e7431f54f2
fix undef with fsp
2023-07-01 17:46:21 +07:00
hathach
54dc699ddd
forgot board.mk for ra6m1
2023-07-01 17:43:06 +07:00
hathach
c5d958d104
add ra6m1 board
2023-07-01 17:27:45 +07:00
hathach
50381f7b4c
refactor to match fsp_cfg
2023-07-01 17:09:09 +07:00
hathach
22fb66436d
update linker
2023-07-01 16:40:47 +07:00
hathach
99e75e6a8a
rework ra build
2023-07-01 12:41:12 +07:00
mndza
cba327fc38
tusb_fifo: split constant address functions
...
Due to a missed optimization in the compiler, code for constant address
handling is being included in all builds. This change splits the code
in different functions to avoid that.
2023-06-30 11:35:14 +02:00
mndza
14d69e46be
Update support for Cynthion boards
...
- Rename LUNA to Cynthion
- Add support for newer revisions (>=0.6)
- Bootloader (saturn-v) default size is now 2K
2023-06-30 11:30:33 +02:00
hathach
48738df489
move LTO checked to family_support.cmake
2023-06-30 16:05:59 +07:00
hathach
3cb4d73899
clean up ra makefile
2023-06-30 14:52:04 +07:00
Ha Thach
f5d0510064
Update build badge
2023-06-29 22:57:58 +07:00
Ha Thach
6e1eec908a
Merge pull request #2130 from hathach/hcd-frame-pio-usb
...
add hcd_frame_number() for pio-usb host
2023-06-29 22:46:24 +07:00
hathach
6284f2d722
add hcd_frame_number() for pio-usb host
2023-06-29 18:58:33 +07:00
Dave Nadler
11fba59319
Name queues for easier FreeRTOS debugging with task- and queue-aware debuggers
2023-06-28 17:25:22 -04:00
Dave Nadler
cca4be6c67
Merge branch 'hathach:master' into master
2023-06-28 17:05:19 -04:00
Devin Auclair
98fb10a724
Fix minor spelling
2023-06-28 14:03:18 -04:00
Ha Thach
fe77b6713b
Merge pull request #2085 from georgeboc/msc-ready-bug-fix
...
Fixes bug in tuh_msc_ready
2023-06-27 17:57:35 +07:00
Ha Thach
5cea4b2420
Merge pull request #2128 from hathach/cmake-freertos
...
rework cmake with rtos support add RTOS to family_configure_device/host/dual_example()
2023-06-27 16:18:17 +07:00
hathach
e43387abac
rework cmake with rtos support add RTOS to family_configure_device/host/dual_example()
2023-06-27 15:45:38 +07:00
Ha Thach
bc0d6c7e92
Merge pull request #2127 from hathach/rp2040-cmake-cleanup
...
Rp2040 cmake cleanup
2023-06-26 23:50:38 +07:00
hathach
a61d0f074f
more rp2040 family clean up
2023-06-26 23:08:59 +07:00
hathach
8aa28e63fb
minor clean up with include_guard()
2023-06-26 17:54:31 +07:00
hathach
3cfb838ba7
fix warnings when enable rtt with rp2040
2023-06-26 17:03:45 +07:00
Ha Thach
7454e45796
Merge pull request #2125 from hathach/cmake-detect-family
...
auto detect FAMILY based on BOARD
2023-06-26 14:08:17 +07:00
hathach
200e58d11e
auto detect FAMILY based on BOARD
2023-06-26 13:38:24 +07:00
Ha Thach
eb53680a06
Merge pull request #2124 from hathach/refactor-make-build
...
Refactor make build
2023-06-25 13:48:00 +07:00
hathach
06d93e95d1
update hw test l4
2023-06-25 10:15:05 +07:00
hathach
2ecd7c148d
fix ci with lpc55 and kl, move hw test l4 to cmake iar
2023-06-25 09:55:05 +07:00
hathach
15376397b1
run ci with -DCMAKE_BUILD_TYPE=MinSizeRel
2023-06-25 00:05:23 +07:00
hathach
30ccfe0832
more cmake less make
2023-06-24 23:36:52 +07:00
hathach
9b2b4ce647
move some family ci make to cmake
2023-06-24 23:32:24 +07:00
hathach
a64d5607a7
fix l4 freertos build
2023-06-24 23:17:28 +07:00
hathach
b9cefb1440
fix build with L4
2023-06-24 23:10:01 +07:00
hathach
c81d8b43a1
fix ci build
2023-06-24 22:58:15 +07:00
Dave Nadler
bd897d9c14
Merge branch 'hathach:master' into master
2023-06-24 11:53:24 -04:00
hathach
430f16bf76
move all IAR to cmake
2023-06-24 22:36:53 +07:00
hathach
2a96ef2519
add cmake for f0, f1
2023-06-24 21:47:55 +07:00
hathach
946d3fdd4f
fix iar with make
2023-06-24 21:17:40 +07:00
hathach
38a582634e
fix missing replace
2023-06-24 20:32:18 +07:00
hathach
eb4380fa14
more make update
2023-06-24 20:17:48 +07:00
hathach
2216704db8
rename GCC_CFLAGS to CFLAGS_GCC, GCC_SRC_S to SRC_S_GCC etc ..
2023-06-24 19:31:33 +07:00
hathach
7d0ce5605a
allow to skip CPU_CORE
2023-06-24 19:08:37 +07:00
hathach
086c1d4090
more CPU_CORE
2023-06-24 18:54:14 +07:00
hathach
eb7fcf1b74
add CPU_CORE for all family
2023-06-24 18:38:41 +07:00
hathach
b59b65d2ed
rename to kinetis_k32l2, rename OPT_MCU_KINETIS_K32 to OPT_MCU_KINETIS_K32L
2023-06-24 18:26:51 +07:00
hathach
dbf7534cd4
update all stm32 to use new enhance make
2023-06-24 18:09:05 +07:00
hathach
edbf06aaab
separate iar and gcc build for clean make, also add cpu specific make
2023-06-24 17:35:37 +07:00
Andrew Hooper
3a5f43528e
Board support for STM32F407VETx
2023-06-23 11:51:58 -04:00
Ha Thach
50e61e0e16
Merge pull request #2101 from eustas/patch-1
...
Fix typos
2023-06-21 15:51:03 +07:00
Ha Thach
6cf735031f
Merge pull request #2117 from hathach/etm_trace
...
Etm trace
2023-06-21 00:24:26 +07:00
hathach
77e01448e2
ide settings
2023-06-20 16:41:51 +07:00
hathach
c789cfe518
use system_nrf5x.c built-in support for ETM with ENABLE_ETM
2023-06-20 16:13:10 +07:00
hathach
19c99d3b42
etm trace for nrf52840
2023-06-20 13:19:08 +07:00
hathach
1b658ae109
add etm trace for mcb1800
...
clean up other ide setting
2023-06-20 13:12:12 +07:00
Angel Molina
3d685fe7f2
Add CDC+UAC2 composite device example for Pico
...
Signed-off-by: Dhiru Kholia <dhiru.kholia@gmail.com>
2023-06-19 16:00:03 +05:30
hathach
7dc6829519
enable etm trace support for h743 eval
2023-06-19 16:33:47 +07:00
dsugisawa-mixi
5e78f08a24
fix example of bare_api, check empty string
2023-06-17 20:04:46 +09:00
Ha Thach
13bb132044
Merge pull request #2113 from hathach/correct-iar-build
...
correct cmake iar build
2023-06-16 19:53:01 +07:00
hathach
268ce0287f
correct cmake iar build
2023-06-16 19:39:03 +07:00
Ha Thach
74624381b3
Merge pull request #2112 from hathach/minor-naming-opt-mcu-imxrt
...
Minor naming opt mcu imxrt
2023-06-16 18:57:26 +07:00
hathach
1419091923
update h7 to cmake, and move iar build to cmake
2023-06-16 16:47:32 +07:00
hathach
e754795d3a
fix build warnings
2023-06-16 15:29:34 +07:00
hathach
a7f330fa94
fix build, update freertos config for cmake
2023-06-16 14:17:25 +07:00
hathach
65d6acdbfa
fix build warnings
2023-06-16 12:02:42 +07:00
hathach
8af8869d3b
renam OPT_MCU_MIMXRT to OPT_MCU_MIMXRT1XXX
...
fix build util with makefile
2023-06-16 11:26:38 +07:00
hathach
96f7cd09dc
remove legacy transdimension driver
2023-06-16 10:45:59 +07:00
Ha Thach
433ffe2152
Merge pull request #1985 from kkitayam/uvc_bulk
...
Add the capability for video class to handle a bulk endpoint in the streaming interface.
2023-06-15 16:28:33 +07:00
Ha Thach
81450bc71d
Merge pull request #2110 from hathach/chipidea-fs
...
Chipidea fs
2023-06-15 14:18:00 +07:00
hathach
1a37777f59
fix ci with win/mac
2023-06-15 13:11:21 +07:00
hathach
d70403f1f4
refactor khci to chipidea fs driver for device (host is not yet)
2023-06-15 13:06:27 +07:00
hathach
bce282186e
update kinetis kl to use mcx-sdk, also add cmake support
...
note: cdc_msc_freertos built but does not seems to work with kl
2023-06-14 22:36:44 +07:00
Ha Thach
4e61eb6d9e
Merge pull request #2109 from hathach/typec-rename
...
Typec rename
2023-06-14 16:47:20 +07:00
hathach
31a66eb5bc
mcx neeed helps to locate rtt control block
2023-06-14 15:33:57 +07:00
hathach
8b8b9690ad
update segger rtt to fix cast align
2023-06-14 12:01:21 +07:00
hathach
05969d2a58
rename typec driver
2023-06-14 11:07:58 +07:00
hathach
a88d7c7c74
ide setting
2023-06-13 17:47:53 +07:00
Ha Thach
365c4169a5
Merge pull request #2107 from hathach/fix-usbh-enum-issue
...
fix usbh issue when device genreate multiple attach/detach/attach when plugging in
2023-06-13 17:32:55 +07:00
hathach
9593ab7acc
fix usbh issue when device genreate multiple attach/detach/attach when plugging in
2023-06-13 16:40:29 +07:00
Ha Thach
bbc76e7777
Merge pull request #2104 from hathach/g4-pd
...
Initial support for USB PD stack
2023-06-12 23:14:48 +07:00
hathach
41801c2a6b
add typec example to cmake
2023-06-12 17:12:25 +07:00
hathach
d2d486dced
update docs
2023-06-12 17:06:04 +07:00
hathach
7a1179a4e1
tested with 9V request
2023-06-12 17:01:54 +07:00
hathach
6941a5af81
wrap up initial PD support for G4
2023-06-12 16:42:27 +07:00
hathach
c28503060c
ad pd_types.h
2023-06-12 14:57:50 +07:00
hathach
debde4cc97
response with request safe5v, get passed PS_READY
2023-06-12 12:14:55 +07:00
Ha Thach
39a64334aa
Merge pull request #2100 from kilograham/top_broken
...
movement of TOP in c0ecf8b5 broke RP2040 SDK build
2023-06-10 17:24:23 +07:00
hathach
bb4fb0543b
able to parse SOURCE_CAP message from dfp
2023-06-09 19:38:50 +07:00
hathach
912802456b
move protocol message to stack, disable battery in PWR's CR3
...
there is still issue with CC1/CC2 pull down resistor and vstate is not
correct.
2023-06-09 18:15:28 +07:00
Eugene Kliuchnikov
0833806980
Fix typos
2023-06-08 15:38:30 +02:00
hathach
8181d470e5
enable DMA for both pd rx, tx
2023-06-08 18:55:54 +07:00
hathach
9c2a8490af
dma rx works well
2023-06-08 13:37:37 +07:00
hathach
fc761953b3
define tuc_int_handler() to empty if TUC not enabled
2023-06-08 09:34:15 +07:00
hathach
7fd0a17bc3
default CFG_TUC_ENABLED to 0
2023-06-08 09:11:29 +07:00
graham sanderson
0493983a8f
movement of TOP in c0ecf8b5 broke RP2040 SDK build
2023-06-07 14:46:14 -05:00
Ha Thach
aaec12a3fb
Merge pull request #2077 from abakosh/renesas_packed
...
fix(RA Host Portable): git rid of the IAR warnings for packed
2023-06-07 19:00:41 +07:00
hathach
9b7dee563e
able to response with good crc
2023-06-07 18:57:48 +07:00
Aladdin Bakosh
8bb012e50b
fix(RA): static assert RUSB2 register
2023-06-07 12:01:59 +02:00
hathach
b893f1d541
inital support for usb typec and pd example
2023-06-07 15:10:40 +07:00
hathach
914e82b25d
able to receive first PD message
2023-06-07 09:36:37 +07:00
hathach
e02eee7477
revert board flash latency to 8
2023-06-07 00:14:22 +07:00
hathach
23f7130ae4
update rtt to rev 25842
2023-06-07 00:07:58 +07:00
hathach
b3fda4a354
able to get usbpd irq handler
...
- handle cc1, cc2 voltage changes
- get order set, rx message end interrupt
- add segger rtt support for cmake
2023-06-06 23:55:33 +07:00
hathach
a70978e057
clean up
2023-06-05 19:53:40 +07:00
hathach
f6a45a7aab
clean up
2023-06-05 15:41:45 +07:00
Martino Facchin
2b735ee8f5
renesas_ra: fix wrong ifdef
...
Since CFG_TUSB_RHPORT1_MODE is always defined now for backwards compatibility
2023-06-05 09:48:06 +02:00
Martino Facchin
cdbd3a0b4e
Merge remote-tracking branch 'mainline/master' into HEAD
...
Update fsp to 4.0.0
2023-06-05 09:12:50 +02:00
Martino Facchin
cdae66c837
renesas_rx: fix compilation on latest GCC
...
__CCRX__ only applyes to version 4 of RX family compiler http://tool-support.renesas.com/autoupdate/support/onlinehelp/csp/V4.01.00/CS+.chm/Compiler-CCRX.chm/Output/ccrx04c0201y.html
__RX__ is one of the macros exported by latest gcc (gcc_8.3.0.202305_rx_elf)
2023-06-05 09:04:55 +02:00
Aladdin Bakosh
268ab5863a
fix(RA Host Portable): git rid of the IAR warnings for packed
2023-06-02 14:14:57 +02:00
Ha Thach
c7686f8d5e
Merge pull request #2092 from hathach/stm32g4
...
Stm32g4
2023-06-02 17:07:28 +07:00
hathach
2016ad72f3
fix iar ci
2023-06-02 16:21:49 +07:00
hathach
11fb837b51
fix ci
2023-06-02 16:15:26 +07:00
hathach
c2bc363f06
build g0 g4 iar cmake
2023-06-02 16:11:00 +07:00
hathach
bb795e6a5e
update cmake to build with IAR for g0 and g4
2023-06-02 15:26:16 +07:00
hathach
fcf7791454
add IAR support for G0 with cmake
2023-06-02 13:27:18 +07:00
hathach
e7090c7514
cmake refactor
2023-06-02 11:42:17 +07:00
hathach
ba3d71b615
fix usb clock for dpow1
2023-06-02 10:19:46 +07:00
Dave Nadler
e8b7f21af6
For FreeRTOS kernel-aware debugging, when queue registry is enabled, label tinyUSB queue
2023-06-01 12:57:44 -04:00
Ha Thach
002cb9289d
Merge pull request #2089 from DRNadler/master
...
Fix diagnostic format string (missing %u)
2023-06-01 22:56:18 +07:00
hathach
c3bde520cc
add new b_g474e_dpow1 board
2023-06-01 22:16:30 +07:00
Dave Nadler
70a92291fe
Fix diagnostic format string (missing %u)
2023-06-01 10:58:03 -04:00
Ha Thach
cbbd858be4
Merge pull request #1942 from HubertD/feature/STM32G0
...
STM32G0 support
2023-06-01 21:34:39 +07:00
hathach
dc3afdbf3b
add note for B0 clock variant
2023-06-01 20:52:48 +07:00
hathach
c750030f7a
add freertosconfig for g0, add cmake stlink, add g0 to cmake ci
2023-06-01 17:09:00 +07:00
hathach
6280cba6e8
tested with g0b1 nucleo
2023-06-01 16:52:58 +07:00
hathach
6b44d8fb55
add cmake support for g0, exlicitly call HAL_Init() and also HAL_IncTick() in systick irq, fix button active state.
2023-06-01 15:58:02 +07:00
hathach
af59864ab5
Merge branch 'master' into feature/STM32G0
2023-06-01 13:28:28 +07:00
Ha Thach
77714e02ca
Merge pull request #2088 from hathach/minor-cleanup
...
add lto for cmake
2023-06-01 13:22:09 +07:00
hathach
62b2d05d34
skip set CMAKE_EXECUTABLE_SUFFIX for espressif port
2023-06-01 12:50:32 +07:00
hathach
19a597bcae
add lto for cmake
2023-06-01 12:36:08 +07:00
Ha Thach
ddc029ce54
Merge pull request #2016 from ipopov/master
...
Even when we get an empty "status change" interrupt from the hub, schedule another interrupt poll
2023-05-29 13:47:23 +07:00
hathach
20ef6c4ef7
slightly clean up
2023-05-29 13:29:11 +07:00
hathach
5c428d35a6
check status_change is not zero first
2023-05-29 13:27:20 +07:00
Ivo Popov
8ad024e51b
Even when we get an empty "status change" interrupt from the hub, schedule another interrupt poll.
...
During enumeration, when there are multiple devices attached to the
hub as it's plugged into the Pi Pico, enumeration hangs, because we
get a "status change" callback with value zero. With this patch, we
retry several times on "zero" status change callbacks, until
eventually we succeed.
This is the cheapo hub that exhibits this behavior, but I assume it's
not the only one: https://www.amazon.com/gp/product/B083RQMC7S .
While debugging this, I consulted the implementation in the Linux
kernel. There, hub setup explicitly checks each port individually,
before starting to depend on "status change" interrupts:
https://elixir.bootlin.com/linux/latest/source/drivers/usb/core/hub.c#L1133 .
We probably should do something like that here, but it's a much bigger
change.
2023-05-29 13:18:16 +07:00
gitlab
acfaa4494f
Fixes bug in tuh_msc_ready
2023-05-28 15:40:01 +01:00
Ha Thach
069e1ef84f
Merge pull request #2084 from hathach/more-build2
...
More build2
2023-05-26 20:23:25 +07:00
hathach
59ad5c59df
fix artifacts location
2023-05-26 18:58:21 +07:00
hathach
4bd02fb04d
more test
2023-05-26 18:54:14 +07:00
hathach
c88e7481be
retry hw test
2023-05-26 17:15:54 +07:00
hathach
7fb74a33a1
forgot to move hw test
2023-05-26 16:44:29 +07:00
hathach
7ac85d08c7
move lpc18 and rp2040 to cmake workflow since rp2040 often failed randomly with make
2023-05-26 16:37:47 +07:00
hathach
05cc342dfa
update deps, rename kinetis_k32 to k32l
2023-05-26 15:45:55 +07:00
hathach
1d857605b7
use get_deps.py
2023-05-26 15:25:55 +07:00
hathach
b262164a35
fix build with net_lwip_webserver example
2023-05-26 15:16:18 +07:00
hathach
c0ecf8b50f
move set TOP to family_support.cmake
2023-05-26 14:56:22 +07:00
Ha Thach
23c8670e79
Merge pull request #2081 from hathach/more-build-system
...
More build system
2023-05-25 21:54:31 +07:00
hathach
4c9605910f
update cmake with freertos
2023-05-25 21:27:26 +07:00
hathach
5fea010406
add family_support_configure_common()
2023-05-25 17:27:05 +07:00
hathach
26d05d7fc9
fix issue with ftdi host driver with status bytes
...
add workflow_dispatch to all ci workflow
2023-05-25 16:53:32 +07:00
hathach
625c27ca58
add workflow_dispatch for manual trigger
2023-05-25 16:20:58 +07:00
hathach
7a3d7a7c23
cmsis_5 missing mcx and imxrt
2023-05-25 16:17:41 +07:00
hathach
5a0c2bd638
update get_deps.py to support geting family as argument
2023-05-25 16:11:57 +07:00
Ha Thach
eedafb23f7
Merge pull request #2063 from abakosh/develop
...
fix(RA Host Portable): implement missing function __builtin_ctz(x)
2023-05-24 20:11:50 +07:00
Aladdin Bakosh
57d2eb603b
fix(RA Host Portable): implement missing function __builtin_ctz(x) for IAR
2023-05-24 11:38:40 +02:00
Ha Thach
1ef820ecfe
Enhance chipidea ( #2075 )
...
* update chipidea dcd, remove manual ep_count and use DCCPARAMS to get number of endpoint instead
* add dcd dcache for chipidea
* add cmake for lpc18
* add makefile build for mcx
* use fork of mcu sdk
* fix ci build with nrf
* flash rp2040 with openocd
2023-05-23 21:45:00 +07:00
Ha Thach
c998e9c60b
Merge pull request #2069 from hathach/minor-build-system
...
Minor build system
2023-05-19 18:39:21 +07:00
hathach
9f0bae4c3f
fix freertos build with nrf
2023-05-19 18:04:08 +07:00
hathach
49d8d27770
improve flash target
2023-05-19 16:27:07 +07:00
hathach
270136e84a
adding cpu core .mk for makefile
...
fix cortex m33 for nrf5340 dk
2023-05-19 16:02:26 +07:00
hathach
e8dd200fed
move cmake folder to tools/
2023-05-19 14:46:39 +07:00
Ha Thach
6ecd480006
Merge pull request #2061 from hathach/imx-usbhost
...
iMX.RT EHCI add dcache support and other fixes + refactor
2023-05-19 14:18:07 +07:00
hathach
7211dd18b4
more dcache fix
2023-05-19 13:42:26 +07:00
hathach
5dae5e1292
ehci fix dcache clean when control endpoint failed
2023-05-19 13:32:49 +07:00
hathach
f26a93908e
only clean/invalidate dcache on imxrt if memory is not in DTCM
2023-05-19 10:56:52 +07:00
hathach
f22d8ee3b9
add rt1060 jlink config
2023-05-18 16:46:02 +07:00
hathach
ec4bd39a92
refactor ehci: add attached_buffer for dcache invalidate for IN transfer
2023-05-18 16:41:06 +07:00
hathach
27acaa013b
refactor ehci, since usbh only queue 1 TD per queue head
2023-05-18 15:44:08 +07:00
hathach
49e2aabc81
EHCI more improvement
...
- more dcache clean/invalidate
- extract init_periodic_list()
- improve isr list handling
2023-05-18 13:45:38 +07:00
hathach
a0aea52a11
more cache, fix an similar issue with OHCI when removing an queue head
2023-05-18 12:39:53 +07:00
hathach
e4f4ad5bc3
use weak local for dcache function to skip if()
2023-05-18 10:21:11 +07:00
hathach
a3e017bfd2
EHCI adding dcahe support, passing enumertaion
2023-05-18 10:04:48 +07:00
Martino Facchin
32f9f452af
renesas: provide default for CFG_TUSB_RHPORT1_MODE
...
Should fix CI failure for Renesas RX family
2023-05-17 12:13:28 +02:00
hathach
eb89df4115
adding hcd_dcache_clean/hcd_dcache_invalidate
2023-05-17 16:14:35 +07:00
hathach
a9aa0e3a1a
fix error on EHCI causes xfer error in non-queued qhd which cause memory fault
2023-05-16 11:10:44 +07:00
hathach
1e998ce3bd
usbd: fix control transfer issue for chipidea hs when previous status and new setup complete in the same isr frame
...
change usbd edpt busy/stalled/claimed value to 0/1 instead of
(true/false) since they are 1-bit field.
2023-05-16 11:09:23 +07:00
hathach
2c48050993
add various check for disconncted device, also fix #1511 un-roll recursive hub removal with usbh queue
2023-05-16 11:09:22 +07:00
hathach
1c4f22a54c
EHCI: fix xfer failed with disconnected device as stalled
...
- change CFG_TUH_ENDPOINT_MAX to 16 (max endpoint pair per device) if
not defined
- change QHD_MAX for EHCI, should be user configurable and more
optimized in the future
2023-05-16 11:09:22 +07:00
hathach
206d63e038
correct EHCI reporting failed xfer (instead of stalled) when device is unplugged
2023-05-16 11:09:21 +07:00
Ha Thach
e2d3c0b2d3
Merge pull request #2065 from hathach/cmake-lpc55
...
add support for nrf5340 application core with pca10059
2023-05-16 11:04:07 +07:00
hathach
116a258858
fix nrf build
2023-05-16 10:14:00 +07:00
hathach
792cf95f2d
revert ci gcc to 11.2, update nrfx to version 2.11
2023-05-15 23:35:29 +07:00
hathach
d7175ad834
update nrf cmake and make to support nrf5340 (pca10095)
2023-05-15 23:34:24 +07:00
Ha Thach
9f5b08dc93
Update build_arm.yml
...
try bump up gcc to 12
2023-05-15 14:39:49 +07:00
hathach
9fd0fee458
adding nrf
2023-05-15 14:25:42 +07:00
Ha Thach
a57ba87859
revert family.mk
2023-05-13 13:24:00 +07:00
hathach
dbcef41f95
add support for other lpc55 boards
2023-05-13 13:24:00 +07:00
hathach
2c745d1b1e
able to build lpc55
2023-05-13 13:23:59 +07:00
HiFiPhile
f1bef8d8dd
Merge pull request #2057 from abakosh/develop
...
fix(iar_template.ipcf): add missing portable links, and delete the us…
2023-05-12 13:15:19 +02:00
HiFiPhile
9c1918fe46
Remove deprecated dcd_synopsys
2023-05-12 13:13:42 +02:00
Ha Thach
aaff27d220
Merge pull request #2058 from hathach/cmake-imxrt
...
Add Cmake for imxrt and Fix EHCI PortSC issue
2023-05-10 16:06:04 +07:00
hathach
eaa159c0a6
more doc build fix
2023-05-10 15:52:33 +07:00
hathach
137d516882
try to fix build doc
2023-05-10 15:32:39 +07:00
hathach
1e91fc97e2
remove imxrt from makebuild
2023-05-10 14:59:23 +07:00
hathach
c4b2fed8bd
forgot sudo
2023-05-10 13:51:45 +07:00
hathach
c3770019cb
install ninja
2023-05-10 13:50:24 +07:00
hathach
8e3bdd2391
add python script to help building cmake, build all imxrt boards with ci
2023-05-10 13:09:15 +07:00
hathach
4c796b89d8
try to build with cmake on ci
2023-05-10 11:20:26 +07:00
hathach
c0e4c02b9d
allow imxrt build with dual exmaples
2023-05-10 11:15:11 +07:00
hathach
bc579c045e
skip link option --print-memory-usage for renesas rx since it does not support this option
2023-05-09 21:39:10 +07:00
hathach
77f0726361
fix ehci issue with portsc when enable port power and port reset
...
fix attached device not regconized if attached before power on
2023-05-09 17:32:14 +07:00
hathach
04c759028a
simplify cmake target, remove -bsp
2023-05-09 10:02:44 +07:00
Aladdin Bakosh
4be7546372
fix(iar_template.ipcf): add missing portable links, and delete the usbh_control.c from the list
2023-05-08 15:57:34 +02:00
hathach
fd50be2e62
change imxrt board_uart_read() to non-blocking
...
simple host seems to work
2023-05-08 19:43:48 +07:00
hathach
4fc4f35a8a
fix linking missing ivt symbol for imxrt with cmake
...
changed device port = 0, host port =1 for imxrt 1060 and 1064
2023-05-08 17:25:47 +07:00
hathach
654f182176
build host examples with imx
2023-05-08 00:24:48 +07:00
hathach
6945c594d5
update all device cmake example for imx
2023-05-07 22:09:08 +07:00
hathach
f15f79df5d
cmake work well with imxrt
2023-05-06 15:14:54 +07:00
hathach
cda5ab8b25
more temp work
2023-05-05 19:15:19 +07:00
hathach
97ee40fd7b
add clion files
2023-05-05 16:51:50 +07:00
hathach
8a9d2b4b75
wip
2023-05-04 23:29:37 +07:00
Martino Facchin
161c95f1b7
renesas: update fsp to 4.0.0
2023-05-04 14:42:32 +02:00
hathach
629717cd13
fix cmake build
2023-05-04 16:38:06 +07:00
Michiel van Leeuwen
75cf8e21a7
Use double-sized fifo only for IN endpoints
2023-05-04 10:02:42 +02:00
Martino Facchin
6ff62c0fe8
renesas: add fallback for targets not defining CFG_TUSB_RHPORT*_MODE
2023-05-03 11:47:41 +02:00
Martino Facchin
a349869906
renesas_ra: fix existing boards support
2023-05-03 10:06:58 +02:00
Martino Facchin
5f7e7b4b0a
renesas_ra: support RA2A1 (FS only)
2023-05-03 10:06:13 +02:00
Martino Facchin
4afed62646
renesas_ra: host: handle retry on attach()
2023-05-03 10:05:29 +02:00
Martino Facchin
be54870c3b
renesas_ra: add support for HS port
2023-05-03 10:02:24 +02:00
Ha Thach
5e023fa2ca
Merge pull request #2051 from hathach/improve-serial-host
...
Improve serial host
2023-04-28 22:59:57 +07:00
hathach
1763eede48
more update to host serial API
2023-04-28 22:14:14 +07:00
hathach
fb5fe3360f
allow call tuh cdc with blocking (callback = NULL)
...
- tuh_cdc_set_control_line_state()
- tuh_cdc_set_baudrate()
- tuh_cdc_set_line_coding()
2023-04-28 21:50:54 +07:00
hathach
0a43a7b418
improve host serial drivers
...
- tuh_control_xfer() update xfer result to user_data if complete
callback = NULL (sync/blocking)
- refactor host serial driver for acm/ftdi/cp210x
2023-04-28 19:13:25 +07:00
Michiel van Leeuwen
678edbe203
Check correct interrupt flag
...
Fixes #1737
2023-04-28 12:55:58 +02:00
Michiel van Leeuwen
5ade917805
dwc2: configure fifo size to be twice the max_size
...
This is needed in order to always be able to fit a packet in the fifo.
Writing to the fifo is done from an interrupts that fires when the fifo is
half-empty, so the fifo must be twice the packet size.
2023-04-28 11:26:26 +02:00
Ha Thach
2afef458be
Merge pull request #2030 from slc-tl/patch-1
...
Update porting.rst
2023-04-28 11:36:14 +07:00
hathach
090078542f
update osal note
2023-04-28 11:34:12 +07:00
Ha Thach
a41ab41b8b
Merge pull request #2047 from jbtheou/master
...
cdc: fix line_coding aligment
2023-04-28 11:25:53 +07:00
hathach
190acc1fb0
add aligned(4) for cdc_line_coding_t
2023-04-28 11:12:03 +07:00
Jean-Baptiste Theou
8f47976639
cdc: fix line_coding aligment
...
While calling tud_cdc_n_get_line_coding, the structure is copied into
the destination.
Dump of assembler code for function tud_cdc_n_get_line_coding:
0x000193f4 <+0>: mov.w r2, #2112 @ 0x840
0x000193f8 <+4>: ldr r3, [pc, #20 ] @ (0x19410
<tud_cdc_n_get_line_coding+28>)
0x000193fa <+6>: mla r0, r2, r0, r3
=> 0x000193fe <+10>: ldr.w r3, [r0, #6 ]
0x00019402 <+14>: str r3, [r1, #0 ]
On some platform (tested on LPC55S28), the address needs to be 4-bytes
aligned. Without this, the address is
(gdb) p &_cdcd_itf.line_coding
$3 = (cdc_line_coding_t *) 0x40100006 <_cdcd_itf+6>
which leads to a HardFault. With this fix
(gdb) p &_cdcd_itf.line_coding
$5 = (cdc_line_coding_t *) 0x40100008 <_cdcd_itf+8>
and the function can be called properly
Signed-off-by: Jean-Baptiste Theou <jb@thing.com>
2023-04-27 15:48:15 -10:00
Ha Thach
e3b3229d61
Merge pull request #2046 from hathach/add-usb2uart-host-driver
...
Add usb2uart serial host driver
2023-04-28 00:06:08 +07:00
hathach
732686cc10
add tuh_cdc_set_baudrate()
2023-04-27 23:22:10 +07:00
hathach
ee58278ed2
add code to calculate divisor from baudrate for ftdi
2023-04-27 23:08:25 +07:00
hathach
8214f0f497
clean up
2023-04-27 17:40:08 +07:00
hathach
c10f52b237
forgot to add cp210x header
2023-04-27 17:39:02 +07:00
hathach
438387be8c
more refactor
2023-04-27 17:32:56 +07:00
hathach
86f6fd17ed
cp210x seems to work well
2023-04-27 17:09:21 +07:00
hathach
a32ef1cde1
more host serial refactor
2023-04-27 16:32:42 +07:00
hathach
9698a088db
refactor acm function
2023-04-27 15:29:44 +07:00
hathach
85d9925d24
refactor ftdi driver
2023-04-27 15:20:04 +07:00
hathach
293a6222f8
rename ftdi_host to ftdi_sio
2023-04-27 11:08:42 +07:00
hathach
cf95b44001
enable CDC FTDI
2023-04-26 22:36:17 +07:00
hathach
45169d833d
hacky, but ftdi work with hard code baudrate = 9600
2023-04-26 22:36:17 +07:00
hathach
1a229f3ce2
fix pio vbus typo
2023-04-26 22:36:17 +07:00
Ha Thach
4c7fd1648e
Merge pull request #2043 from hathach/fix-nxp-build
...
fix build with nxp since mcux-sdk from 2.13.0 remove CMSIS folder
2023-04-26 22:33:28 +07:00
hathach
ad39833ea4
fix build with nxp since mcux-sdk from 2.13.0 remove CMSIS folder
2023-04-26 22:10:13 +07:00
Ha Thach
908e23d109
Merge pull request #2040 from hathach/update-imxrt-deps
...
bump up imxrt mcux-sdk to 2.13.1
2023-04-24 16:59:05 +07:00
hathach
841a62170e
bump up imxrt mcux-sdk to 2.13.1 commit f357a1150f6cf6c6b844f53f2d426bfb3e649850
2023-04-24 16:54:26 +07:00
Ha Thach
964e7ebf21
Merge pull request #2013 from tannewt/imx_1042
...
Handle iMX RT 1042 usb naming
2023-04-24 16:53:24 +07:00
Ha Thach
8ede566c41
Merge pull request #2039 from hathach/add-cmake-build
...
Add cmake build
2023-04-24 16:43:40 +07:00
hathach
a4d5d51549
add wip note
2023-04-24 16:24:06 +07:00
hathach
5254202b20
minor update
2023-04-24 11:54:58 +07:00
hathach
9858d45815
build all freertos, not able to build net lwip due to lack of sio_open()
2023-04-21 22:07:58 +07:00
hathach
11e1aff389
update freeRTOS kernel to latest for library cmake
...
add per family freeRTOSConfig.h also make changes to build with
freertos_kernel cmake
- hard coded configPRIO_BITS based on family
- change configSUPPORT_STATIC_ALLOCATION to 0,
configSUPPORT_DYNAMIC_ALLOCATION to 1
- enable configRECORD_STACK_HIGH_ADDRESS for tracing
- enable INCLUDE_xTaskGetCurrentTaskHandle which is required to compile
stream_buffer (although we don't use it).
2023-04-21 20:55:44 +07:00
hathach
6daa135201
update most examples cmake to build with imxrt
2023-04-21 18:23:40 +07:00
hathach
0afe1b3684
example run well with cmake for imxrt
2023-04-21 18:10:28 +07:00
Ha Thach
0871238cac
Merge pull request #2024 from jfedor2/sie_ctrl_fix
...
[rp2040] Make writes to SIE_CTRL aware of concurrent access
2023-04-21 12:17:57 +07:00
Jacek Fedorynski
9bf97e3e52
[rp2040] Make writes to SIE_CTRL aware of concurrent access
...
This commit makes it so that when setting the START_TRANS bit in the
SIE_CTRL register, along with some other bits, we first set all the
other bits, then wait some cycles, and then set the START_TRANS bit.
Doing so protects against a situation where the USB controller is
reading the register at the same time and gets an incorrect value.
This mirrors the procedure already applied to buffer control
registers.
2023-04-20 20:23:31 +02:00
hathach
2ac289685a
clean up
2023-04-20 16:55:48 +07:00
hathach
b42d3e431c
board test running with cmake
2023-04-20 16:43:00 +07:00
hathach
fab48e5bcc
adding cmake build for imxrt1010
2023-04-20 14:09:38 +07:00
Ha Thach
9771c76f25
Merge pull request #2033 from ReimuNotMoe/master
...
Fix compatibility with the latest Microchip XC16 compiler
2023-04-19 12:53:23 +07:00
Reimu NotMoe
c0674142a8
Merge branch 'hathach:master' into master
2023-04-18 23:20:25 +08:00
Reimu NotMoe
9002dc7067
Use __GNUC__ macro to determine if __has_attribute is supported
2023-04-18 17:27:42 +08:00
Ha Thach
c3a60ed355
Merge pull request #1920 from mikee47/fix/midi-definition
...
MIDI_CIN_NOTE_ON definition transposed with MIDI_CIN_NOTE_OFF
2023-04-18 10:43:52 +07:00
Mengsk
412b557a08
Cleanup unnecessary code for 16bit access.
2023-04-17 15:34:20 +02:00
Reimu NotMoe
fa8f3731c1
Implement TU_BSWAP{16,32} correctly for Microchip XC16
2023-04-17 21:02:12 +08:00
Reimu NotMoe
d97b6d57de
Fix compatibility with the latest Microchip XC16 compiler
2023-04-17 20:20:22 +08:00
slc-tl
8c780a9564
Update porting.rst
...
Adds more in depth documentation of how tud_task does not need to be polled in implementations that use an RTOS / scheduler.
2023-04-14 17:07:33 -06:00
HiFiPhile
818bda18c2
Fix FIFO transfer and buffer alignment.
2023-04-14 23:37:07 +02:00
HiFiPhile
2f2c8ce9ec
Fix GCC build.
2023-04-14 21:00:55 +02:00
HiFiPhile
723e21ad6a
Merge pull request #2025 from dauc/master
...
Fix spelling configuraiton->configuration
2023-04-14 18:48:03 +02:00
HiFiPhile
71d2ccd78f
Fix CI
2023-04-14 17:29:32 +02:00
HiFiPhile
413b0a7da5
Use PLL clock.
2023-04-14 17:12:47 +02:00
HiFiPhile
0ea23904c4
Add stm32g0b1nucleo BSP.
2023-04-14 16:07:04 +02:00
HiFiPhile
152a22f3ee
Update lib & template.
2023-04-14 16:05:56 +02:00
Devin Auclair
16ed10a6e4
Fix spelling configuraiton->configuration
2023-04-14 12:48:59 +00:00
HiFiPhile
cbf4b1aec8
Merge branch 'master' of https://github.com/hathach/tinyusb into pr1942
2023-04-14 13:16:52 +02:00
HiFiPhile
28817a7150
Merge pull request #2015 from tyustli/tyustli_uac
...
fix audio comment error
2023-04-08 16:25:39 +02:00
HiFiPhile
95dec2ac26
Fix case.
2023-04-08 15:39:33 +02:00
tyustli
d4c7c9871e
fix audio comment error
2023-04-08 18:14:10 +08:00
Scott Shawcroft
2cda9b60c9
Handle iMX RT 1042 usb naming
2023-04-06 15:45:23 -07:00
Ha Thach
3336fbafe4
Merge pull request #2011 from hathach/add-hid-host-ready
...
Add hid host send/recieve ready
2023-04-06 12:16:17 +07:00
hathach
6db24e0dba
implement tuh_hid_receive_ready() and tuh_hid_send_ready()
2023-04-06 11:16:28 +07:00
hathach
106084289d
add define for vendor_flush() to write_flush() for backward compatible
2023-04-06 11:15:57 +07:00
Ha Thach
5f327dd49f
Merge pull request #2006 from hathach/cmake
...
Cmake
2023-04-06 00:39:39 +07:00
Ha Thach
f7aa716a61
Merge pull request #2000 from jncronin/stm32l5
...
Add STM32L5 support - no OTG similar to some L4s
2023-04-04 16:30:47 +07:00
Ha Thach
4c5104f6d6
Merge pull request #1989 from epatstarkey/vendor_device_race_condition_fix
...
Vendor device race condition fix
2023-04-04 12:27:22 +07:00
Ha Thach
8d07f5e733
Merge pull request #1999 from raiden00pl/master
...
openh743i: initialize USB3300 reset pin
2023-04-04 11:27:19 +07:00
Ha Thach
44fab77c3d
Update bug_report.yml
2023-04-04 11:02:20 +07:00
John Cronin
718bcdb8bc
Add STM32L5 support - no OTG similar to some L4s
2023-04-03 13:56:16 +01:00
hathach
4f96a1f3b2
more fix
2023-04-03 18:05:22 +07:00
hathach
5ef260d5fc
fix build for esp32
2023-04-03 17:44:05 +07:00
raiden00pl
f2faf72f7f
openh743i: initialize USB3300 reset pin
2023-04-03 12:27:33 +02:00
hathach
1911c613c7
add some .idea configuration
2023-04-03 11:34:00 +07:00
hathach
160e2a8aeb
skip .idea
2023-04-03 11:07:48 +07:00
epatstarkey
1372d4e4d5
Remove trailing whitespace
2023-03-31 12:58:51 -05:00
tobozo
805ebb3924
remove trailing space (satisfy pre-commit flow)
2023-03-30 22:01:36 +02:00
tobozo
a77aaf7f9e
Added helpers for abs_mouse_report
2023-03-30 21:57:06 +02:00
tobozo
290f18a1fe
Merge branch 'hathach:master' into master
2023-03-30 19:30:24 +00:00
epatstarkey
d7d4e7b527
Update samples
2023-03-30 11:34:39 -05:00
hathach
cf7aad790c
more esp32 cmake clean up
2023-03-30 11:37:36 +07:00
hathach
641613c428
update all cmake for esp32 build
2023-03-30 10:41:11 +07:00
hathach
96718b7ca0
merge s2 and s3, update cmake for espressif, add tinyusb_src as component
2023-03-30 00:31:26 +07:00
hathach
99315bcca3
adding more cmake support
2023-03-29 14:36:43 +07:00
epatstarkey
1fb2a2f1bd
Update vendor_device.c
2023-03-28 14:01:33 -05:00
epatstarkey
876f49f6ad
Update vendor_device.c
2023-03-28 14:00:23 -05:00
epatstarkey
faaed198b4
Update vendor_device.h
2023-03-28 13:59:59 -05:00
kkitayam
5ce60c5d20
Add MJPEG descriptor for bulk transfer
2023-03-26 21:22:52 +09:00
kkitayam
993b8d6686
Add state variable
2023-03-26 21:18:00 +09:00
kkitayam
389babf20b
Add descriptor for a bulk endpoint as a streaming endpoint
2023-03-25 21:25:13 +09:00
kkitayam
e508831561
Update handle streaming interface
2023-03-25 21:25:13 +09:00
kkitayam
78732d6733
Fix streaming interface handling
2023-03-25 21:25:12 +09:00
kkitayam
97f9321e1d
Add handling for bulk EPs
2023-03-25 21:25:12 +09:00
Ha Thach
5add4c97fa
Merge pull request #1979 from hathach/fix-cdc-host-unsupported-line-request
...
fix cdc host enumeration issue when device does not support line request
2023-03-24 17:58:34 +07:00
hathach
df5f60b6d6
fix shadow warning
2023-03-24 17:36:29 +07:00
hathach
b054229780
fix cdc host enumeration issue when device does not support line request
2023-03-24 17:26:30 +07:00
Ha Thach
59cbfbbdbe
Merge pull request #1971 from MattMills/class_net_net_device_mac_address_shouldnt_be_consts
...
Update net_device.h to make MAC addresses not const.
2023-03-24 16:48:33 +07:00
Ha Thach
f640163ee9
Merge pull request #1969 from hathach/fix-tmc488-bit-order-1658
...
Fix tmc488 bit order 1658
2023-03-24 14:41:57 +07:00
Ha Thach
ad7bacbfd8
Merge pull request #1978 from hathach/fix-align-host
...
separate CFG_TUSB_MEM_SECTION/ALIGN to host and device specific macros
2023-03-24 14:41:01 +07:00
hathach
76dae8d8c1
update host example to use new tuh mem macros
2023-03-24 14:08:57 +07:00
hathach
71fb6469d4
separate CFG_TUSB_MEM_SECTION and CFG_TUSB_MEM_ALIGN to
...
- CFG_TUD_MEM_SECTION and CFG_TUD_MEM_ALIGN
- CFG_TUH_MEM_SECTION and CFG_TUH_MEM_ALIGN
- fix missing mem section and align for host
2023-03-24 14:05:21 +07:00
Ha Thach
7440782afb
Merge pull request #1975 from hathach/update-doc
...
update doc and generate deps list
2023-03-23 16:39:19 +07:00
hathach
f80d11301e
update doc and generate deps list
2023-03-23 16:33:35 +07:00
Ha Thach
cd0fdc3264
Merge pull request #1974 from hathach/pico-pio-name
...
rename and change default pio usb pin to adafruit feather usb host
2023-03-23 14:22:39 +07:00
hathach
4cee79af27
rename and change default pio usb pin to adafruit feather usb host
2023-03-23 13:08:09 +07:00
Matt Mills
033627ee41
Remove const from tud_network_mac_address in example and test files
2023-03-22 07:30:46 -06:00
Matt Mills
4274cab395
Update net_device.h
2023-03-22 07:18:27 -06:00
hathach
096da11e88
more update
2023-03-22 17:01:04 +07:00
hathach
c85f46c4ab
fix bitorder in usbtmc_response_capabilities_488_t
2023-03-22 16:59:57 +07:00
Ha Thach
07976ad26d
Merge pull request #1968 from hathach/refactor-hid-host
...
Refactor hid host
2023-03-22 10:37:06 +07:00
hathach
f27486e19a
add tuh_hid_itf_get_info() and change tuh_cdc_itf_get_info() to use new tuh_itf_info_t
2023-03-22 10:00:42 +07:00
hathach
f8a5cde3c7
add tuh_task_event_ready(), better implement blocking control transfer for rtos
2023-03-22 09:23:44 +07:00
hathach
0921edaf59
use tud_inited() instead of tusb_inited()
2023-03-22 09:23:11 +07:00
hathach
a97f39151e
fine tune CFG_TUH_HID value
2023-03-22 08:33:30 +07:00
hathach
d22fc550c7
change meaning of CFG_TUH_HID to total number of HID interfaces supported.
...
- previously CFG_TUH_HID is max number of interfaces per device which is
rather limited and consume more resources than needed.
- change hid host instance in API to index
2023-03-21 21:04:06 +07:00
hathach
8a0b17598c
add osal_task_delay() for control blocking
2023-03-21 18:15:45 +07:00
hathach
d34508a316
add note for blocking tuh_configuration_set(), tuh_interface_set()
2023-03-21 18:13:25 +07:00
hathach
878f2b54fe
relax hid host enumeration, allow set protocol to be stalled
2023-03-21 18:12:55 +07:00
Ha Thach
ec9c666107
Merge pull request #1965 from HiFiPhile/align
...
UAC2: fix feedback EP buffer alignment.
2023-03-21 15:46:00 +07:00
Ha Thach
096b6ec462
Merge pull request #1964 from hathach/add-tuh-set-interface
...
add tuh_set_interface
2023-03-21 13:58:44 +07:00
Mengsk
42decd94e5
UAC2: fix feedback EP buffer alignment.
2023-03-21 07:58:39 +01:00
hathach
ccf17e3cde
add -Wreturn-type
2023-03-21 13:21:59 +07:00
hathach
e44e461ce3
add tuh_set_interface
2023-03-21 12:55:52 +07:00
Ha Thach
cbcf5d8c08
Merge pull request #1963 from hathach/rp2040-more-iar
...
more compatible with IAR
2023-03-20 11:58:51 +07:00
hathach
4520218786
more compatible with IAR
2023-03-20 11:33:39 +07:00
Ha Thach
d4d6f60885
Merge pull request #1962 from hathach/update-bsp
...
Update bsp
2023-03-19 19:10:54 +07:00
hathach
f58da31145
clean up
2023-03-19 18:12:03 +07:00
hathach
f75a019732
bsp lpc17
2023-03-19 18:10:26 +07:00
hathach
934baae9b8
bsp lpc51
2023-03-19 17:58:20 +07:00
hathach
1154b7a9e7
add mising lpc13 file
2023-03-19 17:40:44 +07:00
hathach
64c6b715ce
bsp lpc13
2023-03-19 17:27:45 +07:00
hathach
80be1aa13d
bsp lpc11
2023-03-19 17:19:33 +07:00
hathach
1867ba0bc1
fix l4 hw testing ci
2023-03-19 16:43:59 +07:00
hathach
aa11e21358
add mising file
2023-03-19 13:15:05 +07:00
hathach
b46632ba07
bsp for f2 f3
2023-03-19 13:11:41 +07:00
hathach
322f58ea85
add CFLAGS_SKIP to improve sam compile time
2023-03-19 12:47:05 +07:00
hathach
ab0da3c30b
group stm32l0
2023-03-19 12:01:33 +07:00
hathach
3944f1c4da
group same5x
2023-03-19 11:28:06 +07:00
Ha Thach
779149ecce
Merge pull request #1858 from bpaddock/FRDM_K32L24AS
...
Add support for the NXP FRDM-K32L2A4S eval board.
2023-03-18 22:18:39 +07:00
hathach
ec0f25d095
fix ci with kl25z
2023-03-18 20:30:49 +07:00
hathach
bbe550efa0
add kinetis family to ci
2023-03-18 20:19:37 +07:00
hathach
1fc203b085
more update to kinetis bsp
2023-03-18 19:50:24 +07:00
hathach
2d187777c0
merge kinetis into its own family in bsp
2023-03-18 18:30:51 +07:00
Bob Paddock
b13b95a670
Document that support for the FRDM-K32L2A4S has been added.
2023-03-18 16:50:51 +07:00
Bob Paddock
f9b8a0667a
Add support for NXP FRDM_K32L2A4S eval board.
2023-03-18 16:50:50 +07:00
Ha Thach
f1a859d907
Merge pull request #1639 from bavison/portability
...
Fixes for building with IAR toolchain
2023-03-18 12:13:08 +07:00
hathach
9f54cc1eb7
more clean up
2023-03-18 11:43:47 +07:00
hathach
d919f107c7
minor clean up
2023-03-18 11:22:44 +07:00
hathach
bdfcd50b1b
Merge branch 'master' into portability
2023-03-17 23:53:38 +07:00
Ha Thach
65ee11ff63
Merge pull request #1882 from koendv/pitaya_lite
...
add board: DshanMCU Pitaya Lite
2023-03-17 20:48:39 +07:00
hathach
b2568eb02b
bump up mm32sdk to fix HSE_VALUE not 8Mhz warnings
2023-03-17 20:22:08 +07:00
hathach
1ed04ad05d
update mm32sdk with idndef for SYSCLK_FREQ_XXMHz and SYSCLK_HSI_XXMHz
...
add HSE_VALUE define for each board with 8mhz, 12mhz accordingly
2023-03-17 19:46:22 +07:00
hathach
b3ecf82196
whitespace
2023-03-17 19:31:45 +07:00
Koen De Vleeschauwer
899e7cc4f9
add board: DshanMCU Pitaya Lite
2023-03-17 19:31:06 +07:00
Ha Thach
bc57358eb0
Update README.rst
2023-03-17 19:29:25 +07:00
Ha Thach
4d273254b6
Merge pull request #1961 from hathach/remove-all-submodules
...
Remove all submodules
2023-03-17 19:27:47 +07:00
hathach
6683053f48
finalize
2023-03-17 18:44:30 +07:00
hathach
57d23c7a68
update example description
2023-03-17 18:34:56 +07:00
hathach
25d802532c
fix spelling
2023-03-17 18:34:43 +07:00
hathach
f14b4ba30a
use codespell as pre-commit
2023-03-17 17:27:17 +07:00
hathach
0c174c17ad
fix ci with building fuzz
2023-03-17 17:04:11 +07:00
hathach
a4b17483b9
fix ci build with fomu
2023-03-17 17:01:56 +07:00
hathach
2e5f649fd3
fix run unit test with pre-commit
2023-03-17 16:57:30 +07:00
hathach
3623ba1884
fix trailing space and new line
...
temporarily disable codespell
2023-03-17 16:12:49 +07:00
hathach
2faad42cb1
update ci
...
- remove submodules init
- pre-commit: forbid new submodule, run in ci
2023-03-17 15:54:25 +07:00
hathach
323a56e309
bump up freeRTOS deps to version 10.5.1
2023-03-17 15:39:59 +07:00
hathach
6763521ec7
remove all submodules
2023-03-17 15:31:41 +07:00
Ha Thach
16daad8164
Merge pull request #1960 from hathach/fix-host-enumerate-mul-device
...
Fix host enumerate multiple devices from multiple host controllers
2023-03-17 15:27:56 +07:00
Ha Thach
96d064e923
Merge pull request #1860 from howard0su/pico_freertos
...
Allow config OS for RP2040
2023-03-17 14:57:13 +07:00
hathach
511f5be8b3
bump up pico-pio-usb dependency
2023-03-17 14:46:34 +07:00
hathach
e1fda007f6
minor refactor to invalid index
2023-03-17 14:46:02 +07:00
hathach
317177c83d
update host example, add pio-pico-usb for rp2040
2023-03-17 14:06:25 +07:00
hathach
f349ae7702
fix enumerate one device at a time
2023-03-17 13:58:01 +07:00
Ha Thach
6b84a29f8c
Merge pull request #1391 from perigoso/renesas-ra
...
Renesas ra family support
2023-03-17 11:28:54 +07:00
hathach
c12795734c
reduce number of supported RA to only those that is tested
2023-03-17 10:59:08 +07:00
hathach
e7d212f337
more fix
2023-03-16 23:21:15 +07:00
hathach
ffdffc7e06
rename FREERTOS_PORT to FREERTOS_PORTABLE_SRC
...
also fix trailing spaces
2023-03-16 23:11:11 +07:00
hathach
e0b1de923c
add ra4m1_ek board
2023-03-16 22:43:58 +07:00
Ha Thach
d875e694f8
Merge pull request #1958 from tyustli/tyustli_st
...
fix HAL_Delay no effect bug on st platform
2023-03-16 12:28:24 +07:00
hathach
2a10d5c20b
rename ra board name
2023-03-16 11:39:53 +07:00
hathach
92aed7e3e0
rename symbols
2023-03-16 11:28:10 +07:00
hathach
bc2127b330
rename file link to rusb2
2023-03-16 11:03:53 +07:00
hathach
1117cf5729
update pre-commit yaml
2023-03-16 10:05:46 +07:00
hathach
cd1726c009
Merge branch 'master' into renesas-ra
2023-03-16 09:51:27 +07:00
tyustli
fabe86362b
fix HAL_Delay no effect bug on st platform
2023-03-16 08:28:19 +08:00
Ha Thach
b443851980
Merge pull request #1957 from hathach/fix-old-picosdk
...
Fix old picosdk
2023-03-15 23:24:44 +07:00
hathach
ffa56a1beb
add pre-commit yaml
2023-03-15 19:30:35 +07:00
hathach
d9a9dc5ac0
fix PICO_SHARED_IRQ_HANDLER_HIGHEST_ORDER_PRIORITY not defined in old pico-sdk
2023-03-15 17:38:14 +07:00
Ha Thach
ea8ecea59a
Merge pull request #1953 from tannewt/fix_cached_imx_reset
...
Flush the dcd data on reset
2023-03-14 09:08:32 +07:00
Scott Shawcroft
d31aac453e
Flush the dcd data on reset
2023-03-13 15:22:00 -07:00
Ha Thach
7cf67b2845
Merge pull request #1889 from Tails86/master
...
Implemented tuh_hid_send_report
2023-03-13 17:03:27 +07:00
James Smith
9247131b1f
Avoid spamming out endpoint on connect
2023-03-13 16:31:25 +07:00
James Smith
43770802f9
Removed tabs from host hid_controller example
2023-03-13 16:31:25 +07:00
James Smith
296ce528fc
Updated host hid_controller example to demo tuh_hid_send_report
2023-03-13 16:31:25 +07:00
James Smith
f6774d5611
Implemented tuh_hid_send_report
2023-03-13 16:31:25 +07:00
Hubert Denkmair
f8a21fff17
dcd_write_packet_memory: use volatile modifier for destination pointer
2023-03-12 15:51:07 +01:00
hathach
0a7c08d16e
minor format
2023-03-12 16:01:24 +07:00
Ha Thach
be21413361
Merge pull request #1948 from dhalbert/remove-volatile-cast-include
...
rp2040: include hardware/sync.h explicitly
2023-03-11 09:35:04 +07:00
hathach
e045995407
minor update get_deps
2023-03-11 08:54:51 +07:00
hathach
4065ca3fca
Merge branch 'master' into renesas-ra
2023-03-11 08:40:36 +07:00
Ha Thach
a8d7e08cee
Merge pull request #1950 from hathach/update-get-deps
...
update get-deps.py
2023-03-11 08:37:58 +07:00
hathach
cae05c6593
update get-deps.py
2023-03-11 08:33:08 +07:00
hathach
7428a16d2d
remove ra submodules
2023-03-11 08:23:21 +07:00
hathach
fe77976765
Merge branch 'master' into renesas-ra
2023-03-11 08:15:23 +07:00
Ha Thach
6af18dc906
Merge pull request #1947 from hathach/remove-submodules
...
Remove submodules and use python script to manage repo dependencies
2023-03-11 08:09:25 +07:00
Ha Thach
b5b2fad5fb
Merge pull request #1946 from kasjer/kasjer/nrf5x-fix-iso-memory-corruption
...
dcd_nrf5x: ISO OUT handling
2023-03-11 08:06:17 +07:00
Dan Halbert
4857abdc6b
rp2040: include hardware/sync.h explicitly
2023-03-10 14:01:51 -05:00
hathach
206a9a21e6
fix ci
2023-03-10 23:54:30 +07:00
hathach
704f3ddeb5
add dependencies repo to git ignore
2023-03-10 23:43:07 +07:00
hathach
7e6a6e75bc
remove the rest of mcu submodules
2023-03-10 23:41:27 +07:00
hathach
fb9180b6eb
remove most of the submodules
2023-03-10 23:36:53 +07:00
hathach
7c9bd81eca
update deps script
2023-03-10 22:56:42 +07:00
hathach
d41320a42e
adding python script to manage dependencies instead of submodule
2023-03-10 20:49:11 +07:00
hathach
76f43a7a16
starting to remove submodule cmsis5 and nrfx
2023-03-10 19:23:23 +07:00
Jerzy Kasenberg
f0ddf8d10f
dcd_nrf5x: ISO OUT handling
...
For incoming ISO OUT packets it was possible to start
DMA from endpoint to RAM before transfer was started
resulting in unrelated memory corruption.
This is scenario that causes memory corruption:
- ISO OUT packet is received
- Packet is transferred by DMA to transfer buffer
- xfer->started is cleared and xfer->buffer is updated as
it is in every case
- Application takes to long to handle it (it happens when debugger
is connected breakpoint is hit slowing down software).
- Next ISO OUT packet arrives
At this point there was no check if transfer was started and packet
was copied by DMA to location beyond previous data, possibly overwriting
unrelated memory.
This solves the issue by checking that transfer was
started and there is buffer ready for incoming packet.
2023-03-10 08:22:43 +01:00
Ha Thach
990fb6ae5c
Merge pull request #1931 from branalba/master
...
For STM32H7 BSP boards, initialize RCC_...TypeDef structs as empty
2023-03-09 17:21:58 +07:00
hathach
0f8e530de1
fix incorrect merge of hcd link
2023-03-08 23:01:37 +07:00
hathach
2cf092464b
fix freertos build with iar, format/indent link_type
2023-03-08 22:34:54 +07:00
hathach
05e0205ad0
Merge branch 'master' into renesas-ra
2023-03-08 21:05:06 +07:00
Hubert Denkmair
af577d2b6d
add G0 to supported platforms in README.rst :)
2023-03-08 14:25:30 +01:00
Hubert Denkmair
b3ad560e62
fix path to stm32g0xx.h
2023-03-08 14:22:11 +01:00
Hubert Denkmair
8ae4f8f069
add basic STM32G0 support
2023-03-08 12:14:40 +01:00
Hubert Denkmair
410ad4d0f9
add basic STM32G0 support
2023-03-08 12:05:58 +01:00
Ha Thach
be66f5f57f
Merge pull request #1941 from hathach/minor-ci
...
Minor ci
2023-03-08 13:08:25 +07:00
hathach
0957902c40
more ci merge
2023-03-08 12:28:30 +07:00
hathach
9e0ae5f29d
improve ci
2023-03-08 12:15:39 +07:00
Ha Thach
3387c86108
Merge pull request #1933 from kilograham/rp2040_llvm_tweaks
...
make rp2040 code compile cleanly with LLVM embedded toochain for ARM.
2023-03-06 15:24:51 +07:00
Ha Thach
66da95a0ee
Merge pull request #1938 from hathach/update-build
...
Fix build on windows and macos
2023-03-06 15:10:21 +07:00
hathach
ec8c292bbe
clean up
2023-03-06 14:37:40 +07:00
hathach
02478c57e5
more ci fix
2023-03-06 14:31:18 +07:00
hathach
e62d1a03ac
integrate top.mk into make.mk
2023-03-06 13:25:56 +07:00
hathach
b6404d143e
clean up top
2023-03-06 13:03:55 +07:00
hathach
9930863b41
fix iar ci
2023-03-06 12:45:47 +07:00
hathach
5c537c25f0
change gcc to 10.3 due to freeRTOS warning
2023-03-06 11:16:21 +07:00
hathach
956d1c9c4e
update size to fix macos ci
2023-03-06 10:33:04 +07:00
HiFiPhile
a83cef5e4c
Merge pull request #1937 from silvergasp/fix_wrong_size
...
fix: Fix wrong destsz used with tu_memcpy_s
2023-03-06 04:25:52 +01:00
Nathaniel Brough
95cfa37bf5
fix: Fix wrong destsz used with tu_memcpy_s
...
Bug: #1935
2023-03-05 18:47:48 -08:00
hathach
0a1a61bb6c
try gcc 12.2 with macos
2023-03-05 15:42:05 +07:00
hathach
9824981ee8
ignore mkdir in windows ci
2023-03-05 15:35:02 +07:00
hathach
8a493485e8
more ci test
2023-03-05 13:39:38 +07:00
hathach
b4ef98cbdc
fix ci build on windows
2023-03-05 10:57:16 +07:00
hathach
a99ee1b1a2
bump up gcc, test macos uname
2023-03-04 20:08:10 +07:00
hathach
363fcc5b68
only build 1 board on windows/macos
2023-03-03 16:24:33 +07:00
hathach
7089535848
clean up f0 warnings
2023-03-03 16:13:12 +07:00
hathach
9a8a9359e4
use make abspath intead of shell realpath
2023-03-03 15:55:34 +07:00
hathach
e92583ffd7
try adding build for windows and macos
2023-03-03 15:37:17 +07:00
graham sanderson
b7fa90e706
rp2040: Fixup lib and example compile for LLVM Embedded Toolchain for ARM
2023-03-02 14:32:22 -06:00
Ha Thach
34798ff85e
Merge pull request #1932 from hathach/add-usbip-fsdev
...
add TUP_USBIP_FSDEV and TUP_USBIP_FSDEV_STM32
2023-03-01 21:32:31 +07:00
hathach
5d3084a714
add TUP_USBIP_FSDEV and TUP_USBIP_FSDEV_STM32, clean up ifdef with stm32
2023-03-01 11:22:04 +07:00
Brandon Alba
8c8f26f14e
In some STM32H7 BSP variants, initialized RCC_PeriphCLKInitStruct instances as empty
2023-02-28 10:31:07 -08:00
Brandon Alba
787afbbcd0
Initialized all RCC init structs for all STM32H7 BSP variants as empty
2023-02-28 10:25:06 -08:00
Ha Thach
3c38c7dc25
Merge pull request #1828 from HiFiPhile/stm32_fsdev
...
stm32_fsdev & ISO EP buffer allocation improvements
2023-02-28 23:45:02 +07:00
hathach
ffdc100cb9
rename ep_num to ep_idx, minor clean up
2023-02-28 17:11:59 +07:00
Gunar Schorcht
4c510c12b1
synopsys/dwc2: fix SOF interrupt handling
...
SOF is not a flag of the GOTGINT register but of the GINTSTS register. Therefore the flag must be written in the GINTSTS register instead of the GOTGINT register to clear the interrupt.
2023-02-27 09:54:45 +01:00
Ha Thach
65ac519715
Merge pull request #1852 from silvergasp/mem_s
...
fix: Replace device calls to memcpy with tu_memcpy_s
2023-02-27 10:22:53 +07:00
hathach
e34aeb5cf6
minor clean up
2023-02-27 09:11:35 +07:00
Ha Thach
73afca14eb
Merge pull request #1491 from Ryzee119/ohci_fixes
...
OHCI usbh, tweaks and improvements
2023-02-22 22:52:41 +07:00
hathach
eca96c635d
comment out osal_task_delay if using os none
2023-02-22 22:28:22 +07:00
hathach
4caa6063b0
white space
2023-02-22 22:17:45 +07:00
hathach
1466afafeb
move and add optional tusb_app_virt_to_phys/tusb_app_phys_to_virt
...
also add place holder for tusb_app_dcache_flush() and
tusb_app_dcache_invalidate()
2023-02-22 22:14:50 +07:00
Ha Thach
b66c2d5f0a
Merge pull request #1796 from Sinitax/master
...
Fix ifdefs for disabled uart stdio in rp2040 family
2023-02-22 17:40:54 +07:00
Ha Thach
8fadaf01d3
Merge pull request #1919 from hathach/use-tu-static-for-fuzz
...
use tu_static instead of static _fuzz_thread
2023-02-22 17:35:07 +07:00
mikee47
302b9562dc
MIDI_CIN_NOTE_ON definition transposed with MIDI_CIN_NOTE_OFF
2023-02-22 09:58:30 +00:00
hathach
498989ee00
use tu_static instead of static _fuzz_thread
2023-02-22 16:23:40 +07:00
hathach
4c846af53e
rename OHCI_RHPORTS to TUP_OHCI_RHPORTS
2023-02-22 16:18:45 +07:00
hathach
c01aee6c1a
revert some changes
2023-02-22 15:14:56 +07:00
hathach
78a014ef18
move check LIB_PICO_STDIO_UART to board.h
2023-02-22 15:13:27 +07:00
Ha Thach
557bf82336
Merge pull request #1867 from silvergasp/thread_local_globals
...
fix: Change all static variables to thread when fuzzing
2023-02-22 12:54:32 +07:00
hathach
bcf5e5f729
missing some files
2023-02-22 12:10:22 +07:00
hathach
03ec49450d
rename maros from FUZZ to _FUZZ, change TU_STATIC to static _fuzz_thread
2023-02-22 11:47:09 +07:00
wooyay
4e2afdf5e1
ohci: Disable MIE interrupt during IRQ processing, zero HccADoneHead on completion
2023-02-18 10:48:39 +10:30
Ryzee119
75f6583c1c
ohci: Use enum instead of magic number
2023-02-18 10:48:39 +10:30
Ryan Wendland
f2a6af05b1
ohci: Add ability to separate physical and virtual memory
2023-02-18 10:48:38 +10:30
Ryan Wendland
f87262185e
ohci: Set skip on ed prior to removal
2023-02-18 10:24:21 +10:30
Ryan Wendland
cc9c3feeae
ohci: Fix bug in ed removal
2023-02-18 10:24:21 +10:30
Ryzee119
e89e8ba392
ohci: Direct port commands to the correct rhport.
2023-02-18 10:24:21 +10:30
Ryzee119
5d3c0fb922
ohci: Force reset of devices already connected on power up
2023-02-18 10:24:21 +10:30
Ryzee119
c1d0fd1bd7
ohci: Wait POTG time after port power
2023-02-18 10:24:21 +10:30
Ryzee119
2063ee5f15
ohci: Toggle frameinterval bit on update
2023-02-18 10:24:21 +10:30
Ryzee119
d5e6d02817
ohci: Leave SMM or bios mode during init
2023-02-18 10:24:21 +10:30
Ryzee119
c820c87692
ohci: Support configurable number of roothub ports
2023-02-18 10:24:21 +10:30
Ryzee119
d367e8f8a8
ohci: Expand roothub descriptors into unions
2023-02-18 10:24:21 +10:30
PanRe
3342635237
Merge pull request #1825 from HiFiPhile/mic_test
...
Minor audio_test example fix.
2023-02-16 11:59:44 +01:00
HiFiPhile
9e16e904ed
Merge pull request #1853 from NullMember/master
...
examples/uac2: Fix mute and volume array lengths
2023-02-16 11:22:52 +01:00
Ha Thach
6b4838cb2f
Merge pull request #1910 from rppicomidi/fix-1909
...
Fix issue 1909
2023-02-16 17:06:22 +07:00
rppicomidi
fde7577117
Fix issue 1909
2023-02-15 20:02:12 -08:00
Ha Thach
e3be8a0a15
Merge pull request #1906 from hathach/update-pio-pico-usb
...
update pico-pio-usb to include data pid fix (0.5.1)
2023-02-14 16:51:56 +07:00
hathach
95acf3960d
update pico-pio-usb to include data pid fix (0.5.1)
2023-02-14 16:11:33 +07:00
Ha Thach
d87f4da6b1
Merge pull request #1893 from jefftrull/bugfix/bitfields
...
Adjust reserved bitfields to make SDCC happy
2023-02-13 16:30:01 +07:00
Ha Thach
09e70ebd13
Merge pull request #1885 from kripton/fixDHCPServerDoS
...
dhserver: Fix a potential DoS vulnerability accidentially introduced by #1712
2023-02-13 15:11:44 +07:00
Ha Thach
ac60a03ea9
Merge pull request #1901 from hathach/add-metro-rt1011
...
Add metro rt1011
2023-02-13 14:58:42 +07:00
hathach
fbf99b8e53
forget to add metro 1011 linker
2023-02-13 13:33:03 +07:00
hathach
fb5fd22c73
add uf2 linker for metro m7 1011
2023-02-13 12:29:31 +07:00
hathach
49c621d510
fix typo
2023-02-13 12:04:33 +07:00
hathach
3e86f0532a
fix release trigger body
2023-02-13 12:03:09 +07:00
hathach
105f108661
add metro m7 1011 board def (not running yet)
2023-02-13 12:03:09 +07:00
Ha Thach
002ca345b8
Merge pull request #1898 from ccrome/fix-imx1011
...
Turn data cache on
2023-02-13 12:01:39 +07:00
Jeff Trull
7e2c5fcc8a
Correct bitfields for cdc_desc_func_telephone_call_state_reporting_capabilities_t
2023-02-12 20:52:17 -08:00
caleb crome
ec26c6163c
Turn data cache on
...
This fixes https://github.com/hathach/tinyusb/issues/1894 . I'm not really
sure if this is the correct way to fix it, and I have not tested on all the
rest of the family members, however, this lets the i.MX1010 work again.
The problem: the latest SDK update does not enable the data cache by default
This causes an assert in board_init() when attemping to control clock
gating. I haven't investigated further as to *why* it's a problem, but it
is a problem.
2023-02-12 11:24:21 -08:00
Jeff Trull
f48ae4aad7
Adjust reserved bitfields to make SDCC happy
...
- keep each field at or under 16b
- For optimal packing, segment fields to 8b boundaries
2023-02-10 15:54:04 -08:00
Jannis Achstetter
830849211d
dhserver: Fix a potential DoS vulnerability accidentially introduced by #1712
2023-02-04 22:37:39 +01:00
Nathaniel Brough
18c3095346
fix: Change all static variables to thread when fuzzing
2023-01-20 15:45:31 -08:00
Howard Su
eb7aacb51f
Allow config OS for RP2040
2023-01-18 02:30:05 +00:00
Nathaniel Brough
2e47210c1a
fix: Replace device calls to memcpy with tu_memcpy_s
...
Introduces a new function tu_memcpy_s, which is effectively
a backport of memcpy_s. The change also refactors calls
to memcpy over to the more secure tu_memcpy_s.
2023-01-13 15:20:32 -08:00
Malik Enes Safak
546dd6038c
examples/uac2: Fix mute and volume array lengths
2023-01-13 18:28:10 +03:00
Mengsk
8db462bf6e
Add fix to dcd_edpt_iso_activate()
2023-01-05 16:54:42 +01:00
Simon Kueppers
d6b612257e
Fixed bug where with some devices, the TU_ASSERT inserted with this commit gets triggered for ISOCHRONOUS endpoints. It is necessary for those endpoints to set the NUM_BLOCK and BLSIZE for the receiving buffer in both, USB_COUNTn_TX and USB_COUNTn_RX. Despite the datasheet showing those fields only for the USB_COUNTn_RX register
2023-01-05 16:23:53 +01:00
Mengsk
69475cd1bf
Remove tu_stm32_sof_cb
2023-01-02 12:06:26 +01:00
Mengsk
7228239eb9
Clean up.
2023-01-02 09:43:48 +01:00
Mengsk
51bb27a131
Optimize descriptor looping.
2022-12-31 13:37:22 +01:00
Mengsk
35fa6b660a
Fix CI.
2022-12-30 16:10:54 +01:00
Mengsk
fc32280f42
Fix buffer allocation overflow.
2022-12-30 15:10:00 +01:00
Mengsk
7ff2f43bfd
Add multi-rate audio test example for new ISO buffer allocation.
2022-12-30 15:09:50 +01:00
Mengsk
21bdafcfef
Add ISO buffer allocation.
2022-12-30 01:08:04 +01:00
Mengsk
07ad64adfe
Do not set USB_EP_RX_NAK for ISO EP.
2022-12-29 23:30:24 +01:00
Mengsk
db65759b1e
Use weak for dcd_edpt_iso_alloc/dcd_edpt_iso_activate
2022-12-29 23:29:50 +01:00
Mengsk
0bd41d5354
Fix CI.
2022-12-29 21:37:44 +01:00
Mengsk
e4f07206f8
UAC : Enable fifo based transfer on stm32_fsdev
2022-12-29 19:34:12 +01:00
Mengsk
fe8c170c98
Add dcd_edpt_iso_alloc() / dcd_edpt_iso_activate() for ISO EP buffer management.
2022-12-29 19:19:27 +01:00
Mengsk
8a1184e7b3
Minor audio_test example fix.
...
Fix CFG_TUD_AUDIO_EP_SZ_IN size.
2022-12-29 14:34:37 +01:00
Mengsk
cece59df22
Generally enable ISO xfer.
2022-12-29 12:33:44 +01:00
Mengsk
ef2f17a514
Add hardware endpoint allocator.
2022-12-29 12:33:43 +01:00
Mengsk
b156a8b78c
dcd_stm32_fsdev : Implement FIFO transfer correctly.
2022-12-29 12:33:43 +01:00
Mengsk
17990025bb
dcd_stm32_fsdev : Fix index out of bound in dcd_write_packet_memory()
...
If src is odd then src[wNBytes] is accessed.
2022-12-29 12:33:43 +01:00
Simon Kueppers
1d37f5ef9b
Added improvements with regards to SOF timing jitter
2022-12-29 12:33:16 +01:00
Simon Kueppers
76413a95d4
Added TU_ATTR_ALWAYS_INLINE to all static inline functions
2022-12-29 12:29:47 +01:00
Simon Kueppers
9ec21248d7
Fixed various small problems and inaccuracies regarding ISOCHRONOUS endpoint
2022-12-29 12:29:47 +01:00
Mengsk
b4b619abd6
SHA-1: 5cb3ed518301e2237ee4e468e97e51ece0ba3838
...
* Correct handling of SOF interrupt
2022-12-29 12:29:28 +01:00
Mengsk
8327090171
Merge branch 'master' of https://github.com/hathach/tinyusb into stm32_fsdev
2022-12-29 12:14:52 +01:00
Simon Kueppers
d584b07e2c
Fixed problem where the transmit byte count was written into the wrong register on ISOCHRONOUS endpoints
2022-12-29 12:13:56 +01:00
Simon Kueppers
510720b396
Renamed pcd_set_ep_rx_cnt because it actually sets the maximum buffer size
2022-12-29 12:13:56 +01:00
Simon Kueppers
9a84390878
Changed comments, added define to fail if ISOCHRONOUS endpoint is not available but requested
2022-12-29 12:13:56 +01:00
Simon Kueppers
ec826732fc
Fixed non-aligned allocated memory sizes
2022-12-29 12:13:56 +01:00
Simon Kueppers
abf53f9270
Changed indirection from actual endpoint address to hardware endpoint through lookup table. Allocation of endpoint is now only performed in dcd_edpt_open
2022-12-29 12:13:56 +01:00
Simon Kueppers
8c0388f477
Fixed wrongly enabling RX and TX status simultaneously on ISOCHRONOUS endpoints
2022-12-29 12:13:56 +01:00
Simon Kueppers
d9b2c9934a
Implemented an optional callback function that is used instead of tu_edpt_number in the stm32 device driver as a crude tool to control mapping of the endpoint address to actual endpoint register
2022-12-29 12:13:56 +01:00
Simon Kueppers
6d65eaf7a1
Implemented very rudimentary support for isochronous transfer buffer handling
2022-12-29 12:13:55 +01:00
Louis Burda
9e7e8908a3
Fix ifdefs for disabled uart stdio in rp2040 family
2022-12-13 11:00:03 +01:00
Andrzej Tokarski
b41f5eadb3
Merge branch 'master' into midihost
2022-11-21 21:45:10 +01:00
atoktoto
89eac75085
Explicit type conversion
2022-11-21 13:49:43 +01:00
atoktoto
3ba0311078
Explicit type conversion
2022-11-21 12:36:50 +01:00
atoktoto
34729b1dc4
Fix usb-hub data transfer problems by AndrewCapon
2022-11-21 10:29:26 +01:00
Andrzej Tokarski
375e822770
Merge branch 'hathach:master' into midihost
2022-11-19 18:15:00 +01:00
atoktoto
0a844f2a30
Fix usb hubs
2022-11-19 18:08:31 +01:00
atoktoto
21e003af22
Added explicit conversions
2022-11-13 14:38:33 +01:00
atok
a6d4b64bec
Removed unused function prototype
2022-11-13 14:31:12 +01:00
atok
c14e3e2501
Fix unused errors when LOG=0
2022-11-13 14:31:12 +01:00
atok
0763bc5979
Fix printf statement
2022-11-13 14:31:12 +01:00
atok
81de7f3d23
Add Makefile for the midi host example
2022-11-13 14:31:12 +01:00
atok
19563b4414
Simple MIDI rx example
2022-11-13 14:31:12 +01:00
atok
4fbf99621d
Get rid of implicit uint conversions
2022-11-13 14:30:53 +01:00
rppicomidi
3325e2613d
Make USB MIDI device code allow a device with no Audio Control interface
2022-11-13 14:29:16 +01:00
rppicomidi
70eefcb849
Add hooks to allow cloning an attached USB device descriptor
2022-11-13 14:29:16 +01:00
rppicomidi
2ddd74fada
Add MIDI host support to tinyusb
2022-11-13 14:29:16 +01:00
Mark K Cowan
dd0350f549
Merge branch 'master' into uac2-interrupt-endpoint
2022-10-26 21:56:32 +03:00
Mark K Cowan
9673d20901
PanRe refactor applied: s{_int_ctr_}{_int_}g; s{_INT_CTR_}{_INT_}g;
2022-10-26 21:43:27 +03:00
Mark K Cowan
15ed45e1a3
clean up descriptor search for interrupt endpoint
2022-10-26 21:40:30 +03:00
Mark K Cowan
025d3477e8
fixed spec reference
2022-10-24 20:41:09 +03:00
Mark K Cowan
f931983469
UAC2 supports interrupt-endpoint for providing control-change notifications to the host
2022-10-23 13:38:24 +03:00
Ben Avison
73f22e31c7
[rp2040] Wrap GCC pragmas in #ifdef __GNUC__
...
IAR generates warning Pe161 'unrecognized #pragma'.
2022-09-13 18:00:51 +01:00
Ben Avison
01edbb8af6
IAR doesn't support __attribute__((fallthrough))
...
IAR generates warning Pa167 'the "fallthrough" attribute is not supported'.
It doesn't generate warnings when one switch case falls through to another,
so simply make TU_ATTR_FALLTHROUGH expand to an empty string.
Also replace one instance of __attribute__ with the macro.
2022-09-13 18:00:51 +01:00
Ben Avison
62d90c8500
Move variable into its own curly-brace scope
...
IAR generates warning Pe546 'transfer of control bypasses initialization of
variable "invInvTag"'.
2022-09-13 18:00:51 +01:00
Ben Avison
caff3b5c54
Remove unused static data
...
This affects struct rspMsg in usbtmc_app.c (unconditionally) and uint8_t
termChar in usbtmc_device.c (when NDEBUG is defined). IAR generates warning
Pe550 'variable was set but never used'.
2022-09-13 18:00:51 +01:00
Ben Avison
6a2d01bae4
Don't assume different enum types can be combined
...
IAR generates warning Pa089 'enumerated type mixed with another enumerated
type'.
2022-09-13 18:00:51 +01:00
Ben Avison
53f0d5538b
Don't assume ints automatically convert to enums
...
IAR generates warning Pe188 'enumerated type mixed with another type'.
2022-09-13 18:00:50 +01:00
Ben Avison
65ba15c37d
Remove unreachable code
...
IAR generates warning Pe111 'statement is unreachable'. In a couple of
cases, replace return statements with TU_ATTR_FALLTHROUGH; because some
compilers apparently can't figure out that the return statements are
unreachable but do whinge about an imagined fall-through without them!
2022-09-13 18:00:50 +01:00
Ben Avison
16518dcbbb
Refactor pointer arithmetic on void*
...
This is a GCC extension, illegal in ISO C. IAR generates errors Pa152
'these operand types cannot be used here' and Pe852 'expression must be a
pointer to a complete object type'.
Replace with uint8_t*.
2022-09-13 18:00:49 +01:00
Ben Avison
6dfc857b91
[rp2040] Explicit cast value of hw_set_alias
...
Some compilers don't support the GNU extension `typeof` so their definitions
of `hw_set_alias` can't inherit their type from their argument, and the best
we can do is have `hw_set_alias` act the same as `hw_set_alias_untyped`.
This requires an explicit cast when the macro is used instead, otherwise
IAR generates error Pe132 'expression must have pointer-to-struct-or-union
type but it has type "void *"'.
The same goes for `hw_clear_alias`.
2022-09-12 18:46:09 +01:00
Ben Avison
e5355d0335
[rp2040] Remove non-portable return statements
...
IAR generates error Pe118 'a void function may not return a value'.
2022-09-12 18:46:09 +01:00
Ben Avison
d28ff1175d
IAR declares strncasecmp in string.h not strings.h
...
strings.h is not an ISO header file, so IAR generates fatal error Pe1696
'cannot open source file "strings.h"'. Even though strncasecmp isn't an
ISO C library function, IAR's runtime library defines it, though it
declares it in string.h instead.
2022-09-12 18:46:01 +01:00
Rafael Silva
ea81d22f18
add __evenaccess keyword for CCRX compiler compatibility
...
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:30 +01:00
Rafael Silva
fbc2979428
fix iso int register typo
...
druing the renaming int and iso endpoint configurations were swapped
Co-authored-by: Koji KITAYAMA <45088311+kkitayam@users.noreply.github.com>
2022-06-02 09:35:30 +01:00
Rafael Silva
79fd23974c
fix host preprocessor flag typo
...
Co-authored-by: Koji KITAYAMA <45088311+kkitayam@users.noreply.github.com>
2022-06-02 09:35:30 +01:00
Rafael Silva
60aae59eeb
style code for consistency with existing codebase
2022-06-02 09:35:30 +01:00
Rafael Silva
e0220c6594
fix int handling for host in ek_ra4m3 port
2022-06-02 09:35:30 +01:00
Rafael Silva
c529d0b440
remove duplicate link register bit macros
...
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:30 +01:00
Rafael Silva
e7027efe7a
add contributions to docs
...
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:30 +01:00
Rafael Silva
4c89776a27
add renesas ek-ra4m3 board port
...
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:30 +01:00
Rafael Silva
0bf0e0b35f
add renesas ra mcu family to supported devices docs
...
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:30 +01:00
Rafael Silva
a936bafb8c
add support for renesas ra family of mcus
...
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:30 +01:00
Rafael Silva
2a17a7e8f8
rework make freertos port handling
...
this allows ports to specify a freertos port outside the FreeRTOS-Kernel lib directory, which would otherwise not be possible
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:30 +01:00
Rafael Silva
03777f4a46
generalize renesas LINK core driver
...
create local register access struct and move mcu specific code
in preparation of support for other mcu families that use the LINK usb core
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:30 +01:00
Rafael Silva
dcadbf3364
rename renesas driver to link
...
link was chosen according to the name for the usb core on datasheets, LINK core
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:30 +01:00
Rafael Silva
f2e8a60e6d
add .vscode to gitignore
...
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:30 +01:00
Rafael Silva
0ee74a71e2
add renesas fsp submodule
...
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:28 +01:00
tobozo
9e38b4cc68
Merge branch 'hathach:master' into master
2022-04-25 01:43:46 +02:00
tobozo
9526a0ff73
stick to struct naming convention
2022-03-02 16:56:59 +01:00
tobozo
8c79b8924e
added Absolute Mouse descriptor template
2022-03-02 15:01:18 +01:00
tobozo
34ae21319e
added Absolute Mouse report struct
2022-03-02 15:00:07 +01:00
Martin Thierer
f607a99127
Send a ZLP if nothing to transfer and last transfer was EPSIZE
2021-07-20 18:55:00 +02:00