Commit Graph

9818 Commits

Author SHA1 Message Date
a412a8e50d hw/mcu: add support for NXP RW612 2025-12-10 23:04:39 +01:00
b05ec753f8 Merge pull request #3401 from hathach/copilot/fix-mtp-device-bug
Fix MTP transfer completion detection for exact-length packets
2025-12-10 19:26:57 +07:00
098dd07ecd Merge pull request #3396 from hathach/hwfifo_post
HWFIFO post fixup
2025-12-10 18:51:02 +07:00
aba91bea35 disable HWFIFO musb and rusb2, since they are not tested yet 2025-12-10 18:29:33 +07:00
63dea396de revert the usbd_edpt_xfer_fifo guard 2025-12-10 17:01:33 +07:00
69bb4e669b Merge branch 'master' into hwfifo_post 2025-12-10 16:02:25 +07:00
7e70f0b07c Fix MTP transfer completion detection for exact-length packets
Change condition from `>` to `>=` to properly detect completion when
xferred_len equals total_len. This fixes the bug where transfers of
exactly bulk_mps length (e.g., 64 bytes for low speed) would never
complete, such as GetHandles responses with 12 elements.

Co-authored-by: hathach <249515+hathach@users.noreply.github.com>
2025-12-10 06:34:21 +00:00
b30b62bd19 Initial plan 2025-12-10 06:26:55 +00:00
0e48fe8622 Merge pull request #3399 from hathach/size-reduce
edpt stream only support no fifo mode if needed
2025-12-10 12:01:44 +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
e169ab47bb audio_device: use CFG_TUD_EDPT_DEDICATED_HWFIFO flag for FIFO transfer
Signed-off-by: Zixun LI <admin@hifiphile.com>
2025-12-08 12:11:00 +01:00
4e365fcef3 usbd: remove dcd_edpt_xfer_fifo ifdef guard
Signed-off-by: Zixun LI <admin@hifiphile.com>
2025-12-08 12:11:00 +01:00
c68cd68664 tusb: add HWFIFO flag for supported MCUs
Signed-off-by: Zixun LI <admin@hifiphile.com>
2025-12-08 12:11:00 +01:00
e9cd4d823f Merge pull request #3340 from dinsfire64/hid-enum-fix
remove hid host enumeration assumption
2025-12-08 10:40:07 +07: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
c0113f0de1 fix metrics.py compare with verbose json. add print compare summary 2025-12-06 02:28:14 +07:00
0b555fc46d Merge pull request #3391 from hathach/hide-unchange-size
hide unchange table
2025-12-05 21:43:39 +07:00
1e15094f33 hide unchange table 2025-12-05 21:15:28 +07:00
e73dfde96d also render unchange table (#3390)
* also render unchange table
* run metrics with circleci (full all boards build)
2025-12-05 20:12:45 +07:00
93b53158f0 Run CI build with fixed set of boards (#3389)
* run cmake ci build on github with a fixed set of board to keep the size stable
* Size Difference Report contain major >1% and minor <1& table
2025-12-05 10:21:28 +07:00
e7105b1fa3 fine tune ci to build more with circleci (#3386)
* fine tune ci to build more with circleci
* skip make for arm-iar, esp-idf
* skip make + clang for circleci since llvm-objcopy got killed due to memory issue.
2025-12-04 21:34:10 +07:00
f68e354729 Merge pull request #3384 from hathach/pr-size-diff
Size metrics
2025-12-04 09:03:37 +07:00
1b6f2b90a4 clean up 2025-12-03 23:10:21 +07:00
b0093ff067 Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-03 23:08:58 +07:00
f51ca33f25 upload metrics.json and aggregate code metrics, post metrics comment
fine tune ci matrix run
2025-12-03 23:04:49 +07:00
ee3d3e3551 upload metrics.json and aggregate code metrics, fine tune ci matrix run 2025-12-03 11:00:57 +07:00
3d190475ad upload metrics.json, test ci 2025-12-03 00:44:12 +07:00
09e1113aaf adding metrics for computing average compiled size 2025-12-02 23:55:24 +07:00
c859744784 adding metrics for computing average compiled size 2025-12-02 13:01:49 +07:00
a337a6d337 run linkermap as post build for size analyze 2025-12-01 18:37:16 +07:00
df6f136003 add linkermap to deps and linkermap taget 2025-12-01 14:46:47 +07:00
7ee288bc22 change armgcc setup to manual download due to issue with action (#3377)
* change armgcc setup to manual download due to issue with action
* build windows, macos with cmake as well
2025-11-29 01:41:30 +07:00
583fe844e9 Merge pull request #3376 from hathach/fix-zephyr-build
fix build with zephyr with latest nrfx v4
2025-11-28 14:02:31 +07:00
7d012b014e fix build with zephyr with latest nrfx v4 2025-11-28 13:34:00 +07:00
1618c58dc4 Merge pull request #3373 from hathach/vendor-dedicated-hwfifo
update Vendor device to omit ep buffer for port with dedicated hwfifo
2025-11-27 23:52:51 +07:00
6e9e9ce9d1 add CFG_TUD_VENDOR_RX_MANUAL_XFER per suggestion 2025-11-27 23:24:00 +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
f3dc2186ae add tud_vendor_n_read_discard(), refactor vendor device. Update webusb example for more robust 2025-11-27 16:25:19 +07:00
4ef0f61bde add tu_fifo_discard_n() and tu_edpt_stream_discard() 2025-11-27 16:23:00 +07:00
5ef55bfa30 Merge pull request #3359 from hathach/xfer-fifo
remove ep buffer for port with dedicated hw fifo
2025-11-27 11:42:31 +07:00
8cf2c3b00b re-enable other hil tests 2025-11-27 11:04:35 +07:00
07dfbadc00 correct tu_edpt_stream_read() with non-fifo mode. Fix rhport with vendor device 2025-11-27 10:30:35 +07:00
4affbc1f7b more rename 2025-11-27 09:40:50 +07:00
726497af68 omit cdc epnotify for dedicated hw fifo 2025-11-27 00:16:39 +07:00
d6c50c7ce2 add tud_cdc_n_notify_msg() 2025-11-27 00:03:59 +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