tyustli
7d76c172db
[add] semaphore reset support for rt-thread
...
add semaphore reset support for rt-thread
2022-12-19 17:18:47 +08:00
hathach
fc9321ce26
correct cdc usbh_driver_set_config_complete()
2022-12-16 23:54:21 +07:00
hathach
4811b3463f
stub
2022-12-16 17:08:37 +07:00
hathach
bd1f7f86ce
add common EPSIZE for bulk/iso in full and highspeed
...
adding cdc host fifo tx/rx
2022-12-16 17:08:37 +07:00
hathach
f62f973956
minor rename
2022-12-16 17:08:37 +07:00
hathach
f0c51eae44
cdc check for bNumEndpoints before checking for endpoint descriptor
2022-12-16 17:08:37 +07:00
hathach
4f03695084
adding tuh_cdc_mount_cb/tuh_cdc_umount_cb
...
start adding cdc_app.c to example
2022-12-16 17:08:37 +07:00
Ha Thach
159aa599be
Merge pull request #1799 from hathach/update-osal-mutex
...
Update osal mutex
2022-12-16 17:05:25 +07:00
hathach
660343d200
update fifo per PanRe review
2022-12-16 16:55:25 +07:00
hathach
1e99480ad2
fix ci with usbh and unit test
2022-12-16 15:19:40 +07:00
hathach
96d2be905b
fix build with usbtmc
2022-12-15 18:47:54 +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
hathach
a05adfce86
fix midi MS Header wTotalLength computation
2022-12-14 14:38:40 +07:00
hathach
04a5c03ea8
fix int conversion warnings
2022-12-12 11:54:33 +07:00
hathach
ce064de6fd
clean up
2022-12-10 00:18:11 +07:00
hathach
82852774a7
add fifo implementation note
...
- handle/fix double overflowed with write()
- other minor clean upp
2022-12-09 18:20:09 +07:00
Ha Thach
f4f85bad54
Merge pull request #1783 from scoudreau/usbtmc-high-speed
...
usbtmc: correct packet size bug
2022-12-09 09:52:23 +07:00
scoudreau
007ed1f0fe
Added missing typecast to pass build checks
2022-12-08 14:50:34 +01:00
Sebastien COUDREAU
071da47944
Correct interrupt polling interval in descriptor
...
Use macro argument instead of 0x16 constant value.
At least Linux kernel was complaining about this value:
"config 1 interface 0 altsetting 0 endpoint 0x82 has an invalid bInterval 22, changing to 8"
(warning obtained using usbtmc device config)
2022-12-08 11:44:15 +01:00
Sebastien COUDREAU
15ab35d9b8
usbtmc: correct packet size bug
...
Code was only reading the first 64 bytes of a 512 bytes packet.
2022-12-08 11:35:32 +01:00
hathach
3e32fa36b8
enhance tu fifo
...
- rename wr/rd absolute to index, and rel to pointer.
- fix crash with _tu_fifo_remaining()
- change get_relative_pointer() to idx2ptr() and merge with _ff_mod()
2022-12-08 16:39:24 +07:00
hathach
19400c8556
fix typo, add -Wno-error=unreachable-code for fuzz due to latest cdc changes
2022-12-08 10:30:22 +07:00
Tomas Rezucha
603effbb77
cdc: Fix autoflush for FIFO < MPS
2022-12-06 07:49:26 +01:00
Ha Thach
f03c28ec31
Merge pull request #1776 from hathach/hid-fido
...
Hid fido
2022-12-05 14:32:49 +07:00
hathach
d58120647a
rename to match fido sample uf2_hid..h
2022-12-05 13:18:05 +07:00
Ha Thach
71a5906865
Merge pull request #1767 from pete-pjb/master
...
Allow the use of non-static allocation for FreeRTOS mutexes & queues
2022-12-05 12:45:48 +07:00
hathach
de5a67bf3b
clean osal_freertos, update freertos examples to work with configSUPPORT_DYNAMIC_ALLOCATION only
...
note: for example to build with configSUPPORT_STATIC_ALLOCATION = 0, one
of heap_n.c must be included in makefile/cmake
2022-12-05 12:09:41 +07:00
hathach
43b255f413
more typos
2022-12-04 19:44:01 +07:00
Bastien Nocera
6a2cf67289
Fix typos
2022-12-04 19:43:23 +07:00
pete-pjb
52261ac02d
Back out another of my changes I am still investigating.
2022-12-02 10:13:35 +00:00
pete-pjb
3816869fce
Some reverts and changes after discussion.
2022-12-02 10:00:19 +00:00
pete-pjb
c31b95c916
Added CFG_TUSB_MEM_SECTION define to struct _ctrl_xfer in usbh.c
2022-12-01 17:53:35 +00:00
PeterB
ae588d796e
Alter tuh_task_ext() function so no need to return when using FreeRTOS
2022-12-01 16:06:15 +00:00
pete-pjb
25abb10de1
Fix white space issue.
2022-11-30 13:26:59 +00:00
Pete Bone
0ddd5591af
Merge branch 'hathach:master' into master
2022-11-30 13:43:45 +01:00
Gordon McNab
aceab1dcf3
Merge branch 'hathach:master' into port-ft90x
2022-11-30 12:16:52 +00:00
hathach
c9c7dfa868
more clean up
2022-11-30 18:59:58 +07:00
hathach
069215c538
white spaces
2022-11-30 18:58:30 +07:00
Gordon McNab
fe63e30a44
Add FT9xx for cdc_dual_ports
...
Fix handling of interrupt endpoints. i.e. no ZLPs.
Fix the assignation of endpoint types.
Add button support for MM900evx boards.
On board support do not block for UART input.
2022-11-30 11:46:13 +00:00
pete-pjb
d588167a39
Modify FreeRTOS integration to allow non-static allocation.
2022-11-30 11:33:24 +00:00
Ha Thach
2ae6a4d519
Merge pull request #1755 from rppicomidi/fix_1721
...
Fix RP2040 Issue 1721
2022-11-30 18:00:27 +07:00
Gordon McNab
7d8d3eca73
Fix transfers issues with FT9xx
...
Correct USB FIFO use for setup data phases (OUT transfers). We cannot stop traffic on the control endpoint so we set a flag and pull data from host when tinyUSB requests it from the USB FIFO. Extend this for all endpoints although currently not required.
Rename all instances of ft90x which can apply to ft93x as ft9xx.
Add support for the cdc_dual_ports example for ft9xx.
Add LED pin definition for board LED in a simple to access place on the Bridgetek MM900EVx boards.
2022-11-29 18:49:23 +00:00
Gordon McNab
1fce76ad47
Fix issue with the CDC SetLineCoding request
...
The SetLineCoding would fail as host would send the SETUP OUT phase before tinyUSB had setup a transaction for it. ft9xx port would ignore the transfer since there was no valid transaction setup for it. One SETUP data phase packet is cached now.
2022-11-28 17:41:00 +00:00
hathach
be6f6f2c99
increase delay between attempts to 100ms
2022-11-28 23:43:52 +07:00
hathach
b2a3f33046
Retry a few times with transfers in enumeration since device can be unstable when starting up
2022-11-28 23:22:10 +07:00
rppicomidi
9825fbe9ac
Fix RP2040 Issue 1721
2022-11-23 13:12:31 -08:00
hathach
7298923927
rework tuh_msc_complete_cb_t signature to use new tuh_msc_complete_data_t
...
add user arg to all scsi command API that support complete callback
2022-11-23 16:01:48 +07:00
hathach
460bef9dbb
host msc example work well with rp2040 pio-usb
2022-11-21 15:49:38 +07:00
hathach
64ecf43663
whitespace
2022-11-21 11:53:15 +07:00
Ha Thach
2dc7a62361
Merge pull request #1738 from kaysievers/midi-port-names
...
MIDI: support port name strings
2022-11-16 16:36:13 +07:00