Commit Graph

637 Commits

Author SHA1 Message Date
702be8da51 refactor binding ep and interface to driver 2025-12-11 11:49:01 +07:00
39853dfb25 move hwid into edpt stream for consistent API 2025-12-10 20:47:08 +07:00
0a1bf62a2d Merge branch 'master' into more-size-reduce-edpt-stream 2025-12-10 18:51:44 +07:00
8d0fda879b only validate endpoint tu_edpt_validate() when debug enabled 2025-12-10 18:49:39 +07:00
69bb4e669b Merge branch 'master' into hwfifo_post 2025-12-10 16:02:25 +07:00
a165cf26b2 remove tu_fifo_discard_n() and its usage 2025-12-10 15:25:30 +07:00
f1fc4c9c79 change tu_fifo_clear()/tu_edpt_stream_clear() from return bool to void 2025-12-10 14:45:06 +07:00
919ee4b152 update metrics to support bloaty csv 2025-12-10 11:33:31 +07:00
16c92b50b0 update metrics to support bloaty 2025-12-09 19:00:14 +07:00
ae53e2f9ae remove FS MPS assumption
Signed-off-by: Zixun LI <admin@hifiphile.com>
2025-12-08 15:43:32 +01:00
2c78a2dd9c edpt stream only support non-fifo mode if needed CFG_TUSB_EDPT_STREAM_NO_FIFO_ENABLED 2025-12-06 02:29:05 +07:00
1465a9b5bc make vendor_read_* API() is only available when CFG_TUD_VENDOR_RX_BUFSIZE > 0
vendor_write_flush() and write_available()  only available when  CFG_TUD_VENDOR_TX_BUFSIZE > 0
2025-11-27 19:14:23 +07:00
9a9bf0fd7b change tud_vendor_rx_cb() behavior, buffer and bufsize only available when CFG_TUD_VENDOR_RX_BUFSIZE = 0
update vendor device to omit ep buf when dedicated hwfifo is supported
2025-11-27 18:41:57 +07:00
4ef0f61bde add tu_fifo_discard_n() and tu_edpt_stream_discard() 2025-11-27 16:23:00 +07:00
4affbc1f7b more rename 2025-11-27 09:40:50 +07:00
02e67c8fa1 more fifo refactor 2025-11-27 00:03:41 +07:00
26a73df158 add tu_scatter_read32(), tu_scatter_write32() to simplify tu_fifo 2025-11-26 17:56:18 +07:00
c925277e24 change tu_fifo_buffer_info_t layout 2025-11-26 15:26:42 +07:00
e1c218f648 Merge branch 'master' into xfer-fifo
# Conflicts:
#	src/common/tusb_fifo.h
2025-11-26 14:03:56 +07:00
3f0d2668f1 fifo: fix IAR Warning[Pa082]: undefined behavior: the order of volatile accesses is undefined 2025-11-25 16:41:30 +01:00
b98127fba2 hil stress test cdc 2025-11-22 17:31:31 +07:00
b7bf1d9835 hil stress test cdc 2025-11-22 11:06:57 +07:00
793d3b5dd1 more tusb fifo refactor: ff_peek_local() lock mutex if need to correct read pointer. More rename 2025-11-22 00:51:18 +07:00
c9b623aa63 edpt stream support xfer_fifo for device CFG_TUD_EDPT_DEDICATED_HWFIFO
cdc device omit ep buffer when hwfifo is supported
2025-11-21 17:02:56 +07:00
d0d56a51a1 more tu_fifo refactor 2025-11-21 14:51:54 +07:00
d4cdc096ca add more unit tests for tu_fifo 2025-11-21 12:58:28 +07:00
30198b2ab9 refactor tu_fifo, add tu_fifo_write/read/peek_n_access() 2025-11-20 18:35:28 +07:00
66c84528f6 Merge pull request #3345 from hathach/update-iso-alloc
make dcd_edpt_iso_alloc/activate as default API for ISO endpoint
2025-11-17 23:34:04 +07:00
be9d1973ac make TUP_DCD_EDPT_ISO_ALLOC i.e dcd_edpt_iso_alloc()/dcd_edpt_iso_activate() as default driver implementation. dcd_edpt_close() is deprecated and will be removed from all driver in the future. 2025-11-17 19:42:10 +07:00
6b28a4478c make TUP_DCD_EDPT_ISO_ALLOC i.e dcd_edpt_iso_alloc()/dcd_edpt_iso_activate() as default driver implementation. dcd_edpt_close() is deprecated and will be removed from all driver in the future. 2025-11-17 12:09:30 +07:00
fc5415bff6 Merge pull request #3335 from ldube/master
Prevent tu_edpt_number() from returning an invalid endpoint number
2025-11-14 14:52:43 +01:00
397a3af8af clear endpoint stream when open for cdc_host and midi_host 2025-11-13 12:31:27 +07:00
f11adb02eb migrate cdc device to use edpt stream API
tu_edpt_stream_open() does not clear fifo, allow for persistent stream when disconnect/reconnect
2025-11-12 21:22:25 +07:00
fc661abc18 migrate midi_device to use edpt stream API
also add tud_midi_n_packet_write/read_n()
2025-11-12 17:46:38 +07:00
96f35fc0a5 Merge pull request #3334 from hathach/fix-alerts-3
Fix more code alerts
2025-11-09 00:26:04 +07:00
7f173ab5ed fix more alerts 2025-11-08 15:54:02 +07:00
dc196b2b95 Prevent tu_edpt_number() from returning an invalid endpoint number 2025-11-07 18:08:14 -05:00
1634d1175d Merge pull request #3325 from tswan22/master
Add STM32U3 Device
2025-11-07 02:05:08 -08:00
5d351828cb Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-07 16:31:17 +07:00
9fac6dd49d fix more alerts found by pvs-studio 2025-11-07 16:17:13 +07:00
86a4990b96 fix more alerts 2025-11-06 21:30:52 +07:00
1f04fe7924 added .clang-format
fix more alerts
disable IAR CStat since pvs-studio check is better integrated with clion
2025-11-05 17:34:27 +07:00
8979af34c0 Fixed more alert found by PVS-Studio 2025-11-04 19:56:53 +07:00
22f01aea0d fix more warnings/alerts 2025-11-03 15:14:52 +07:00
00f374682e fixing alert by scanning tool 2025-11-03 11:46:54 +07:00
67b2a5c2e1 remove binary prefix for portability 2025-11-03 11:17:39 +07:00
bda7efb1b3 fix #2942, include stdio if CFG_TUSB_DEBUG > 0 and CFG_TUSB_DEBUG_PRINTF is not defined 2025-11-03 10:46:09 +07:00
ca44c772f7 Merge branch 'master' of https://github.com/hathach/tinyusb 2025-11-01 12:51:40 -04:00
9d46cca576 add STM32U3 device (adjusted from STM32U0) 2025-11-01 12:51:31 -04:00
aa739c946d Merge branch 'master' into uac1
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-10-30 19:50:47 +01:00