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
hathach
d10326cb4e
rename TUSB_OPT_DEVICE_ENABLED to CFG_TUD_ENABLED
...
TUSB_OPT_DEVICE_ENABLED still usable for backward compatible
2022-02-25 18:35:21 +07:00
hathach
5af989384b
remove ep descriptor wMaxPacketSize bitfield due to endian issue
2021-10-24 13:11:21 +07:00
hathach
7596cb3079
update some sense warning from -Wconversion
2021-10-15 15:54:32 +07:00
hathach
25ea8f9c9e
update configuration parser
2021-09-14 21:02:38 +07:00
hathach
800f85329e
add tuh_hid_receive_report() for applicaiton to explicitly request report
2021-08-23 11:00:21 +07:00
hathach
97703587d9
improve host configuration parsing
...
- remove driver class code binding
- fully support IAD
- auto calculate total length for interface descriptor for driver
2021-08-20 19:08:38 +07:00
hathach
1cef2b6a42
extra common edpt helper for device and host stack
...
tu_edpt_validate() and tu_edpt_bind_driver()
2021-08-20 18:01:10 +07:00
hathach
3a7f8b3ac3
separte tusb_init/inited() to tud/tuh init/inited
...
add rhport to tud_init()
2021-05-18 12:58:24 +07:00
hathach
14138f105e
have tusb_init() return true instead of TUSB_ERROR_NONE
2020-11-23 13:12:51 +07:00
Ha Thach
a708ab6254
Merge pull request #553 from hathach/host-async-control
...
Host async control
2020-11-07 10:52:14 +07:00
hathach
67ac40b98d
house keeping: make tu_print_mem format easier to compare with hex2dump
2020-11-01 13:37:56 +07:00
hathach
4d57b4ea33
clean up
2020-09-05 13:57:07 +07:00
hathach
017c95037f
add usbd edpt open
...
- RTT mode is blocking to prevent log lost
- Improve logging message
2020-04-26 14:51:44 +07:00
hathach
1b3d1b52c9
fix uint32_t format with log
2020-04-10 13:54:50 +07:00
hathach
4f871063fd
Merge branch 'master' into cr1901-msp430f5529
2020-03-22 17:19:57 +07:00
Nathan Conrad
25c1bea782
Normalize line endings
2020-01-15 14:47:43 -05:00
hathach
050fa2fd39
able to response to scsi inquiry, but failed to response to test unit ready
2019-12-21 19:33:41 +07:00
hathach
a0cffdc843
Merge branch 'pigrew-ZLP_Request2' into cr1901-msp430f5529
2019-11-02 23:29:35 +07:00
hathach
a0002cc709
rename usbd_init() to tud_init()
2019-10-30 23:26:34 +07:00
hathach
de333a6f18
clean up warning, msp430 gcc 8.3 fixed the library lto issue
2019-10-29 16:21:31 +07:00
hathach
6ab0663c1a
adding more log
2019-10-24 12:00:06 +07:00
hathach
661515a807
adding debug log function
2019-10-23 21:18:46 +07:00
hathach
61ec407752
update license year to 2019
2019-05-14 11:48:05 +07:00
hathach
da452d4ba6
cleanup, remove the use of _TINY_USB_SOURCE_FILE_
2019-03-27 17:48:42 +07:00
hathach
c211ee19dd
migrate license from BSD 3 clause to MIT
2019-03-20 16:11:42 +07:00
hathach
e4e8413acc
add tusb_inited() API, check for inited() before running device/host task
2019-01-29 19:05:07 +07:00
hathach
1c49c479ca
seperate tusb_task() to tud_task() and tuh_task()
...
tusb_task() still exists for backward compatible
2018-12-13 14:51:37 +07:00
hathach
af1ffe4675
remove task void* param
2018-12-13 13:53:43 +07:00
hathach
bc46dc6edf
osal clean up
...
remove OSAL_TASK_DEF, osal_task_create. Applicaton should create a task
and call tinyusb_task(). This make API consistent with NO OS.
2018-12-13 13:49:09 +07:00
hathach
607658d047
rename MODE_HOST_SUPPORTED to TUSB_OPT_HOST_ENABLED
2018-12-07 23:38:52 +07:00
hathach
5a7493ed42
fix more host build error
2018-12-05 21:12:10 +07:00