Commit Graph

89 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
71e046d9ff add tuh_midi_descriptor_cb() 2025-02-24 10:55:03 +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
0af07f1cff Merge branch 'master' into warning 2024-11-14 10:25:52 +07:00
Ha Thach
fde947b124 fix typo 2024-11-10 12:55:13 +07:00
Ha Thach
449753ae69 Merge branch 'master' into fix/esp32p4_device 2024-11-10 12:40:52 +07:00
Roman Leonov
f5c5aaf017 fix(tusb.h): Fixed backward comatibility for port selection 2024-11-07 13:28:55 +01: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
HiFiPhile
b648a38ae8 Fix Warning[Pe188]: enumerated type mixed with another type. 2024-11-01 19:49:00 +01:00
GuavTek
ebcd7067c9 Recover host enumeration from zero length descriptors 2024-10-18 18:05:58 +02:00
hathach
b5a4f18879 get hpri triggered 2024-10-17 15:56:12 +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
9b4bb61cbd ep stream init: wrap with OSAL_MUTEX_REQUIRED, only create fifo mutex if needed 2024-09-10 20:41:01 +07:00
hathach
7909a62569 fix warnings 2024-09-10 18:47:58 +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
hathach
cc816dc9c0 change edpt stream api to take hwid from API to reduce memory footprint 2024-09-10 17:41:20 +07:00
hathach
c0030810dd update edpt_stream to support non-buffered (no fifo) mode 2024-09-10 16:15:51 +07:00
hathach
867f17acea change vendor device to use edpt stream API 2024-09-10 10:44:22 +07:00
graham sanderson
0d72f153cf fix arguable bug caught as warning by LLVM embedded toolchain for ARM 14.0.0 2024-07-18 11:11:06 +01:00
hathach
98b8e960aa Merge branch 'master' into add-tuh-deinit 2024-03-25 17:46:28 +07:00
hathach
31f68495cf update osal API
add osal_semaphore_delete(), osal_mutex_delete(), osal_queue_delete()
2024-03-22 16:10:26 +07:00
hathach
5774ac9886 add tu_edpt_stream_deinit() 2024-03-22 12:53:31 +07:00
hathach
2cf171095e code format 2024-03-22 12:45:23 +07:00
hathach
6352081ded code format 2024-03-20 17:55:31 +07:00
hathach
ff76eca311 code reformat 2024-03-04 17:38:44 +07:00
IngHK
23450d4f6b fixed compiler warning src/tusb.c 2024-02-24 15:51:02 +01:00
IngHK
efde252ed0 improved CFG_TUSB_DEBUG handling due to compile errors 2023-12-08 16:59:52 +01:00
IngHK
b8881a3a14 fixed compile errors due to untreated CFG_TUH_LOG_LEVEL 2023-11-24 22:34:28 +01: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
hathach
5dae5e1292 ehci fix dcache clean when control endpoint failed 2023-05-19 13:32:49 +07:00
hathach
206d63e038 correct EHCI reporting failed xfer (instead of stalled) when device is unplugged 2023-05-16 11:09:21 +07:00
Ha Thach
65ac519715 Merge pull request #1852 from silvergasp/mem_s
fix: Replace device calls to memcpy with tu_memcpy_s
2023-02-27 10:22:53 +07:00
hathach
e34aeb5cf6 minor clean up 2023-02-27 09:11:35 +07:00
hathach
074289caa3 add helper tu_desc_find/find2/find3 2023-01-20 15:30:24 +07:00
Nathaniel Brough
2e47210c1a fix: Replace device calls to memcpy with tu_memcpy_s
Introduces a new function tu_memcpy_s, which is effectively
a backport of memcpy_s. The change also refactors calls
to memcpy over to the more secure tu_memcpy_s.
2023-01-13 15:20:32 -08:00
hathach
c99af908f1 fix typo 2022-12-22 11:41:27 +07:00
hathach
2d536123c8 finish moving edpt stream to tusb.c 2022-12-22 11:31:37 +07:00
hathach
e3c9d94500 fix stream read count computation 2022-12-22 11:16:39 +07:00
hathach
8323e4b79a moving edpt_stream API into common tusb.c 2022-12-22 08:52:01 +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
graham sanderson
b12863d27c Fix actual compiler warning on gcc 10.3.1 2022-06-29 07:28:35 +01:00
hathach
2571211957 remove static port defined for device/host 2022-06-03 11:32:09 +07:00
hathach
110879074f implement tu_edpt_release() 2022-03-09 17:26:55 +07:00
hathach
a5fb20533c adding tusb_private.h to implement common edpt claim 2022-03-09 17:17:36 +07:00
hathach
708f05668d add tusb_debug.h remove tusb_error.h
move debug utils to new header
2022-03-09 16:44:19 +07:00
hathach
309540473b minor house keeping 2022-02-25 22:26:35 +07:00
hathach
31aa077cb0 rename TUSB_OPT_HOST_ENABLED to CFG_TUH_ENABLED 2022-02-25 18:35:21 +07:00