Commit Graph

337 Commits

Author SHA1 Message Date
hathach
7d3d60f96d add hcd_configure() to change max NAK dynamically 2024-04-02 16:38:40 +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
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
hathach
e84c9f3e22 implement tuh_init()
change usbh driver init() return type from void to bool
2024-03-22 16:12:57 +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
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
IngHK
4d4e20b71e missing \r\n after TU_LOG_BUF => moved \r\n to tu_print_buf() 2024-02-08 12:00:44 +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
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
Ryzee119
d39d06e6d9 [HUB] Prevent status request to invalid ep_num 2024-01-09 16:36:32 +10:30
IngHK
a39be99a58 improved hex debug print, improved USBH debug prints, added pid/vid debug print 2023-12-26 12:24:54 +01:00
IngHK
4d88f146e3 Merge remote-tracking branch 'remotes/hathach/master' into HostLogsFixes 2023-12-08 16:44:58 +01:00
IngHK
b8881a3a14 fixed compile errors due to untreated CFG_TUH_LOG_LEVEL 2023-11-24 22:34:28 +01: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
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
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
hathach
277852afc1 fix esp32 msc example 2023-09-28 10:56:38 +07: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
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
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
502b1bdda6 more update to transaction 2023-08-27 23:45:34 +07:00
hathach
274578ff46 able to send setup packet 2023-08-22 23:17:12 +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
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
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
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
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
c122e9df73 implement hcd_edpt_abort_xfer() for EHCI, also move thing around a bit 2023-07-21 19:06:36 +07:00
hathach
1cc7c5d030 add hcd_edpt_abort_xfer() API 2023-07-21 12:43:48 +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
Aladdin Bakosh
3fdd2a40b2 osal_none: make it possible to override the task delay function 2023-07-18 14:14:23 +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
hathach
9593ab7acc fix usbh issue when device genreate multiple attach/detach/attach when plugging in 2023-06-13 16:40:29 +07:00
hathach
9b7dee563e able to response with good crc 2023-06-07 18:57:48 +07:00
Dave Nadler
70a92291fe Fix diagnostic format string (missing %u) 2023-06-01 10:58:03 -04:00
hathach
5dae5e1292 ehci fix dcache clean when control endpoint failed 2023-05-19 13:32:49 +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
206d63e038 correct EHCI reporting failed xfer (instead of stalled) when device is unplugged 2023-05-16 11:09:21 +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
hathach
45169d833d hacky, but ftdi work with hard code baudrate = 9600 2023-04-26 22:36:17 +07:00