Commit Graph

538 Commits

Author SHA1 Message Date
hathach
7d66a3e775 merge n6 and h7rs (same config) 2025-06-12 21:20:49 +07:00
James Sandison
56c9521abd chore: squash previous commits from other branches 2025-06-04 11:21:27 +10:00
hathach
9aea7751f2 dwc2 only enter critical in isr with multiple core CPUs 2025-05-19 20:04:20 +07:00
hathach
67389f37f2 follow up to pr3118, interface also end with IAD. Add more checks 2025-05-16 16:39:53 +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
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
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
8c0c21189c Merge branch 'master' into fork/atoktoto/midihost
# Conflicts:
#	src/host/usbh.c
2025-03-05 18:25: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
71e046d9ff add tuh_midi_descriptor_cb() 2025-02-24 10:55:03 +07:00
hathach
6ebd362cfd Merge branch 'master' into fork/atoktoto/midihost
# Conflicts:
#	src/host/usbh.c
2025-02-21 10:59:40 +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
bad6cbe489 update midi host to use endpoint stream API 2025-02-13 15:54:31 +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
7f61a5a43b made change per reviews, remove dcd_edpt_close(), rename and move thing around 2024-11-28 15:56:47 +07:00
hathach
c514a8c879 Merge branch 'master' into fork/pschatzmann/rp2040-iso 2024-11-28 11:02:23 +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
hathach
d9ef3cd1b3 default CFG_TUH_DWC2_DMA_ENABLE to 0 2024-11-27 11:54:11 +07:00
hathach
123f1affb7 update device_info example to work with p4 dcache 2024-11-27 00:01:37 +07:00
hathach
a5f9947a20 msc host work ok with p4 dma 2024-11-26 13:38:03 +07:00
hathach
833eb7d22d change dcd_dcache_*() API return type from void to bool 2024-11-25 19:11:19 +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
85e54b0fc3 use TUD_EPBUF_DEF to declare buffer memory for midi 2024-11-21 19:36:15 +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
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
hathach
b3b8bd88cb add CFG_TUD_MEM_DCACHE_ENABLE, CFG_TUD_MEM_DCACHE_LINE_SIZE option 2024-11-20 21:30:29 +07:00
Ha Thach
9e674d4fae Merge pull request #2881 from hathach/enhance-dwc2-dcd 2024-11-19 05:08:07 +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
daef846aa7 rename CFG_TUD_DWC2_DMA to CFG_TUD_DWC2_DMA_ENABLE 2024-11-14 13:26:11 +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
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
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
063661e3a3 more progress on dwc2 hcd, initial code for edpt xfer 2024-10-25 00:20:34 +07:00
hathach
61b33ca926 testing hcd with f723 due to h743eval issue with mfx vbus drive. 2024-10-18 22:16:21 +07:00
pschatzmann
1b17bc04f9 RP2040 New ISO API 2024-10-15 23:09:05 +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
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
92602b9de3 change tusb_init(), tusb_rhport_init() to use init struct for expandability 2024-10-11 13:41:53 +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
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
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
a1244381b3 add CFG_TUD_DWC2_DMA, make it compile time option 2024-09-24 17:55:15 +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
dd1822ba03 reduce ep stream footprint by using is_mps512 since it only support bulk so far 2024-09-10 18:37:53 +07:00