Commit Graph

472 Commits

Author SHA1 Message Date
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
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
hathach
be25a3fc20 revert usbd driver name change to be backward compatible 2024-04-08 22:56:22 +07:00
hathach
c3c0648456 add class driver deinit 2024-04-08 22:07:56 +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
hathach
5630030a22 improve uvc debug message 2024-03-20 17:55:31 +07:00
hathach
834e2c9560 usbd only process last setup packet in the event queue 2024-03-13 11:46:23 +07:00
hathach
5653232144 reformat code 2024-03-11 21:59:30 +07:00
Rocky04
d0373f4749 Opt-out for USB Test-Mode 2024-02-19 17:44:18 +00: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
Antonio Vázquez Blanco
0531027b57 usbd: log outbound xfer bytes in debug 2024-02-07 13:06:41 +01:00
Rocky04
e0ebece2c7 Missed static keyword 2024-01-15 18:23:59 +01:00
Rocky04
78a1d4c482 Merge branch 'master' into test-mode-support 2024-01-15 16:27:22 +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
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
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
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
hathach
1b9108ea0d minor debug clean up 2023-09-06 17:11:35 +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
Rocky04
427ecbbc53 Bad line break at start 2023-08-08 23:33:47 +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
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
9560d0813f Set unmounted on configuration reset 2023-08-02 15:25:08 +02: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
hathach
9b7dee563e able to response with good crc 2023-06-07 18:57:48 +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
0921edaf59 use tud_inited() instead of tusb_inited() 2023-03-22 09:23:11 +07:00
hathach
3623ba1884 fix trailing space and new line
temporarily disable codespell
2023-03-17 16:12:49 +07: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
hathach
498989ee00 use tu_static instead of static _fuzz_thread 2023-02-22 16:23:40 +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
Nathaniel Brough
18c3095346 fix: Change all static variables to thread when fuzzing 2023-01-20 15:45:31 -08:00
hathach
2a1b81e3c5 minimize tu_fifo size to 16
- remove non_used_index_space
- packed overwritable with item_size
2023-01-06 11:51:17 +07:00
Mengsk
21bdafcfef Add ISO buffer allocation. 2022-12-30 01:08:04 +01:00
Mengsk
db65759b1e Use weak for dcd_edpt_iso_alloc/dcd_edpt_iso_activate 2022-12-29 23:29:50 +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
hathach
edc559cb4d fix ci 2022-12-21 12:29:51 +07:00
hathach
88e6da7273 use OSAL_MUTEX_REQUIRED to replace CFG_FIFO_MUTEX/TUSB_OPT_MUTEX
add macro to swallow mutex API in order to simplify code with mutex
2022-12-15 18:03:01 +07:00
rppicomidi
3325e2613d Make USB MIDI device code allow a device with no Audio Control interface 2022-11-13 14:29:16 +01:00