Commit Graph

589 Commits

Author SHA1 Message Date
21bdafcfef Add ISO buffer allocation. 2022-12-30 01:08:04 +01:00
db65759b1e Use weak for dcd_edpt_iso_alloc/dcd_edpt_iso_activate 2022-12-29 23:29:50 +01:00
e4f07206f8 UAC : Enable fifo based transfer on stm32_fsdev 2022-12-29 19:34:12 +01:00
fe8c170c98 Add dcd_edpt_iso_alloc() / dcd_edpt_iso_activate() for ISO EP buffer management. 2022-12-29 19:19:27 +01:00
edc559cb4d fix ci 2022-12-21 12:29:51 +07:00
159aa599be Merge pull request #1799 from hathach/update-osal-mutex
Update osal mutex
2022-12-16 17:05:25 +07:00
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
a05adfce86 fix midi MS Header wTotalLength computation 2022-12-14 14:38:40 +07:00
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
6a2cf67289 Fix typos 2022-12-04 19:43:23 +07:00
abfcdf2cfb MIDI: support port name strings
This allows to set custom descriptive names for virtual MIDI
ports/cables. A MIDI port offers different functionality on
the same physical USB device. The names make it easier to
distinguish one from the other.
2022-11-11 22:48:29 +01:00
9ec92ff97b rp2040 enable SOF as resumed signal when remote wakeup 2022-06-30 15:45:04 +07:00
1a1f633922 Merge branch 'master' into add-more-warnings 2022-06-27 12:50:50 +07:00
0b3503cb33 clean up usbd log level 2022-06-27 11:56:48 +07:00
0042eccb3b fix redundant-decls warnings by usbd/usbh 2022-06-24 22:52:11 +07:00
4f6e770eda add more warning option, also fix -Wconversion with rp2040
-Wuninitialized, -Wunused,  -Wredundant-decls
2022-06-24 19:46:19 +07:00
040ef0640d more dynamic controller for host 2022-06-10 14:53:03 +07:00
8451d05c50 revert sof_isr driver rename since it cause issue with existing code
also removed commented tud_sof_isr_set() API
2022-06-10 01:45:48 +07:00
8cbc34de11 add tuh_configure() for port/dynamic host behavior config 2022-06-08 01:17:01 +07:00
8b9cf152a0 rhport argument in usbd_ API() is not used (always use the initialized port)
remove the usage of TUD_OPT_RHPORT in class driver
2022-06-02 16:51:17 +07:00
fdeac8508b Merge pull request #1381 from hathach/add-sof-isr
Add SOF IRQ Handler
2022-05-31 22:25:14 +07:00
c5ba1ea8c1 changes proposal to audio feedback computation 2022-05-13 22:54:47 +07:00
85dcb73774 more clean up 2022-04-28 18:00:30 +07:00
ae5490e5a5 clean up 2022-04-27 20:52:56 +07:00
4a661dead0 add TU_ATTR_FAST_FUNC for rp2040 __not_in_flash() section 2022-04-27 17:57:52 +07:00
98bbb0d402 Merge branch 'master' into pio-host 2022-04-21 12:05:22 +07:00
6a022c73db add note for tud_task() behavior in freertos example 2022-04-20 18:35:38 +07:00
b034c18077 add tud_task_ext(), tuh_task_ext() as exteneded version that take timeout and in_isr
also allow exit tud_task,tuh_task after processing all events for
running other background task for user
2022-04-20 18:29:41 +07:00
a90839688c add msec timeout to osal_queue_receive(), tud_task() and tuh_task() both pending for event queue with timeout of 1 ms 2022-04-20 13:25:38 +07:00
a32cb1bb93 clean up pio driver 2022-04-18 17:49:21 +07:00
65b6b79e99 clean up and comment out tud_sof_isr_set 2022-03-29 16:53:45 +07:00
92ac041869 Add todos and comments 2022-03-16 07:13:38 +01:00
26339e694f Merge remote-tracking branch 'upstream/add-sof-isr' into add-sof-isr 2022-03-14 20:40:57 +01:00
f212899b54 Add SOF callback function for feedback value determination in uac - wip! 2022-03-14 20:40:33 +01:00
41ffd54fa0 Merge branch 'master' into add-sof-isr 2022-03-14 11:57:01 +07:00
171d021ab5 refactor and integrate usbh control xfer back to usbh.c
fix enumeration with hub when reset port before set address
2022-03-10 22:22:05 +07:00
d56cde33ef refactor usbd to also use common endpoint claim/release 2022-03-09 17:34:12 +07:00
a5fb20533c adding tusb_private.h to implement common edpt claim 2022-03-09 17:17:36 +07:00
708f05668d add tusb_debug.h remove tusb_error.h
move debug utils to new header
2022-03-09 16:44:19 +07:00
2f593e767c update use of mutex for host 2022-03-09 12:26:56 +07:00
707a633de3 added dcd_sof_enable(), tud_sof_isr_set()
make number of interface configurable (default to 8)
CFG_TUD_INTERFACE_MAX
2022-03-07 23:03:51 +07:00
e08a875d52 add tuh_descriptor_get() and tuh_descriptor_device_get() 2022-03-04 19:26:54 +07:00
11c89d43ab more internal rename 2022-02-26 17:06:50 +07:00
309540473b minor house keeping 2022-02-25 22:26:35 +07:00
99ad3ae2ca rename and move dcd_attr.h to tusb_mcu_attr.h 2022-02-25 18:35:21 +07:00
a8af609dfe auto detect max rhport speed based on mcu 2022-02-25 18:35:21 +07:00
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
4a5a53b3b8 improve rphort management for usbd 2022-02-25 18:35:21 +07:00
7de166390e Merge branch 'master' into master 2022-01-25 22:29:05 +07:00
efc29baead Merge branch 'master' into port-ft90x 2022-01-17 12:36:39 +07:00