Commit Graph

724 Commits

Author SHA1 Message Date
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
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
hathach
ad0ac6780d change OPT_MCU_RAXXX, fix missing prototype warnings. 2024-12-13 17:33:21 +07:00
Roman Leonov
ecc65a86c8 refactor(usbd_control): Updated the buffer name for deeper debug 2024-11-28 13:16:06 +01:00
hathach
833eb7d22d change dcd_dcache_*() API return type from void to bool 2024-11-25 19:11:19 +07:00
hathach
85e54b0fc3 use TUD_EPBUF_DEF to declare buffer memory for midi 2024-11-21 19:36:15 +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
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
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
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
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
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
867f17acea change vendor device to use edpt stream API 2024-09-10 10:44:22 +07:00
dp111
8ab1e4fbd0 make function prototypes match ( found by cppcheck) 2024-09-03 19:38:34 +01: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
635bdc1fce fix ci build 2024-08-19 17:36:11 +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
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
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
315dae6a85 finally fixed fsdev setup handling, which cause race condition for ch32v203 2024-08-05 17:43:27 +07:00
hathach
46fd822990 increase freerto min task stack for some stm32 2024-08-01 14:24:23 +07:00
hathach
f4aaad6869 add edpt0_open(), slightly update dtog 2024-07-30 21:35:24 +07:00
HiFiPhile
f48a4567a6 Merge branch 'master' of https://github.com/hathach/tinyusb into rx_fb 2024-07-28 11:59:52 +02:00
hathach
a5bc0430f7 fix race condition where reset event cleaar setup count 2024-07-25 16:49:01 +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
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
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
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
HiFiPhile
b0f5422262 Merge branch 'master' of https://github.com/hathach/tinyusb into rx_fb 2024-05-31 12:38:18 +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
hathach
daffb24111 minor clean up 2024-05-24 14:13:58 +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
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
HiFiPhile
33882b3e89 Merge remote-tracking branch 'remotes/tinyusb/master' into rx_fb 2024-05-11 12:44:16 +02: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