Commit Graph

10215 Commits

Author SHA1 Message Date
0d4feff0eb usbh device descriptor validation, also check ep size > 0 2026-03-09 14:15:20 +07:00
7fac2cda29 Merge pull request #3536
Fix ep_ctrl_mask() corrupting opposite direction's ENDPTCTRL bits
2026-03-09 11:59:20 +07:00
205d9b044f Merge pull request #3538 from sidcha/fix-hwfifo-PMA-pointer
Fix hwfifo PMA pointer advance on ring buffer wrap
2026-03-09 11:23:23 +07:00
66d67026f2 Merge pull request #3532 from YixingShen/master
_open_vc_itf parsing error when vc->std.bNumEndpoints != 0
2026-03-09 11:12:16 +07:00
3e22de0a47 extend video control parsing to include class-specific VC endpoint descriptor 2026-03-09 10:49:37 +07:00
2a4b82e3e1 tinyusb: fix hwfifo PMA pointer advance on ring buffer wrap
In hwff_push_n() and hwff_pull_n(), the HWFIFO_ADDR_NEXT_N call after
processing the linear part of a wrap-around read/write used the data
byte count (lin_even) as the address stride increment. On STM32 FSDEV
PMA, data_stride=2 and addr_stride=4, so the pointer must advance by
(lin_even / data_stride) * addr_stride bytes, not lin_even bytes.

Fixes: 74e59e433 ("fix hwfifo pull/push n with address stride > 0")
Signed-off-by: Siddharth Chandrasekaran <sidcha.dev@gmail.com>
2026-03-08 08:19:48 +01:00
11a3c3b712 Fix ep_ctrl_mask() corrupting opposite direction's ENDPTCTRL bits 2026-03-07 21:53:01 +01:00
9072d974b0 Merge branch 'master' of https://github.com/YixingShen/tinyusb 2026-03-07 22:58:07 +08:00
2a0802c6a5 fixed _end_of_control_descriptor logic. wTotalLength does not include Standard Endpoint Descriptor and Class-specific VC Interrupt Endpoint Descriptor,
so fix that _end_of_control_descriptor include Standard Endpoint Descriptor and Class-specific VC Interrupt Endpoint Descriptor. It will also fix _close_vc_itf, _open_vc_itf. _find_desc_entity parsing.
2026-03-07 22:56:28 +08:00
571445d26f Merge branch 'hathach:master' into master 2026-03-07 22:54:15 +08:00
da307fa85b Merge pull request #3529 from hathach/mtt_hub
Add MTT hub support
2026-03-07 15:49:22 +07:00
d65964ea32 Merge pull request #3519 from hathach/samx7x_update
refresh dcd_samx7x
2026-03-07 15:29:23 +07:00
f17da1c66e open hub mtt interface in 1 call 2026-03-07 15:25:05 +07:00
5f69034631 Merge pull request #3531 from hathach/hil-mtp
enable hil test for mtp
2026-03-07 13:08:32 +07:00
1c53009dc7 remove dma_desc_t 2026-03-07 13:07:13 +07:00
6c4f119ddd - update SAME70 BSP: remove unused definitions, consolidate startup files
- and add unique ID
- add freertos
2026-03-07 13:01:32 +07:00
97297fe08b update hil test: remove unused ctypes, add fallback for skip boards 2026-03-07 11:12:48 +07:00
0a45308a29 Update src/class/video/video_device.c
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-07 10:46:38 +08:00
e4a55152be cleanup 2026-03-07 02:05:12 +08:00
fe26e45e64 fixed _open_vc_itf parsing
Standard Interface Descriptor (Video Control)
 Video Control Header Descriptor
 Video Control Camera Terminal Descriptor
 Video Control Output Terminal Descriptor
 Standard Endpoint Descriptor
 Class-Specific VC Interrupt Endpoint Descriptor

 Video Control Header Descriptor's wTotalLength
    = Header Descriptor + Camera Terminal Descriptor + Output Terminal Descriptor

 _end_of_control_descriptor is Output Terminal Descriptor End
 the "end" should +7 for _find_desc searchig Standard Endpoint Descriptor
2026-03-07 02:03:50 +08:00
99d9b70146 enable hil test for mtp 2026-03-06 22:16:04 +07:00
5817f0d2eb fix ci
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2026-03-06 15:44:26 +01:00
40ae5bddbe usbh: support MTT hub
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2026-03-06 15:12:19 +01:00
6c2c309316 Merge pull request #3444 from remiberthoz/device-class-printer
Implement Printer Device Driver
2026-03-06 19:59:34 +07:00
8878e02c30 fix hil test 2026-03-06 19:24:27 +07:00
4da53e3858 Merge branch 'samx7x_update' of https://github.com/hathach/tinyusb into samx7x_update 2026-03-06 12:52:27 +01:00
3a0227b771 fix Jlink device name
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2026-03-06 12:52:13 +01:00
6a190546e6 Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-06 12:47:21 +01:00
8f24ab0950 reduce bufsize to compile with small mcu 2026-03-06 18:20:29 +07:00
c186063a63 Merge remote-tracking branch 'tinyusb/master' into samx7x_update 2026-03-06 11:59:25 +01:00
ee6f4f6f2a cleanup
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2026-03-06 11:59:20 +01:00
aeb121f94c add hil test, update readme 2026-03-06 17:56:05 +07:00
73cd531295 replace printer_to_hid example with printer_to_cdc example
fix printer GET_DEVICE_ID request weird wIndex (interface high, alt low)
2026-03-06 17:22:38 +07:00
988b18a40a add full read/write() API, use edpt stream for printer class 2026-03-06 16:06:42 +07:00
5838c7f09d update printer class: enhance descriptors, buffer sizes, and callbacks 2026-03-06 15:11:59 +07:00
558abb93af Merge branch 'refs/heads/master' into fork/remiberthoz/device-class-printer 2026-03-06 12:05:54 +07:00
06a4c6d719 Merge pull request #3528 from hathach/improve-iar-warnings
Add IAR warning flags to CMake build and resolve warnings
2026-03-06 11:57:53 +07:00
694d921643 Merge pull request #3394 from hathach/ci_deinit
ci_hs: add deinit support
2026-03-06 11:51:29 +07:00
94baf39468 fix warnings 2026-03-06 11:26:00 +07:00
61e4b9ce3f add IAR warning flags to cmake build and fix them 2026-03-05 23:24:14 +07:00
115581a6bf Merge pull request #3521 from RobertDaleSmith/fix/max3421-spi-xfer-api
fix(bsp/rp2040): use MAX3421_SPI in spi_write_read_blocking
2026-03-05 16:37:15 +01:00
4ed45cf9bc update PORTSC1
Signed-off-by: Zixun LI <admin@hifiphile.com>
2026-03-05 16:23:24 +01:00
7088dc528b ci_hs: add deinit support
Signed-off-by: Zixun LI <admin@hifiphile.com>
2026-03-05 16:09:39 +01:00
97476872aa Merge pull request #3378 from hathach/dwc2_deinit
Add DWC2 deinit support
2026-03-05 21:47:41 +07:00
ae3864d21f Merge pull request #3423 from armusin/threadx_osal
ThreadX OSAL header
2026-03-05 21:25:58 +07:00
ce8a77083d ci: fix claude-code-review for fork PRs
Switch pull_request to pull_request_target so secrets and OIDC tokens
are available when reviewing PRs from forks. Also add pull-requests: write
permission so the action can post review comments.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-05 20:59:26 +07:00
0c7a385cf8 improve threadx support, add multi ROTS support for board_test and msc_dual_lun 2026-03-05 20:48:30 +07:00
70c93adc2f improve threadx support, add multi ROTS support for board_test and msc_dual_lun 2026-03-05 17:51:57 +07:00
0427fcfd02 Merge branch 'master' into fork/armusin/threadx_osal 2026-03-05 13:00:45 +07:00
cd7bbba1dd Merge pull request #3524 from hathach/fix-3516
Fix HSE value for STM32F411 Black Pill
2026-03-05 12:45:18 +07:00