Commit Graph

9017 Commits

Author SHA1 Message Date
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