Commit Graph

4857 Commits

Author SHA1 Message Date
2e29388051 refactor(usbd): replace _usbd_ctrl_epbuf with usbd_get_ctrl_buf() for cleaner abstraction and consistency across modules 2026-03-11 15:14:09 +07:00
14b594d0f7 Merge branch 'master' into ep0_direct 2026-03-11 14:41:48 +07:00
336e89792f Merge branch 'master' into ep0_direct
# Conflicts:
#	hw/bsp/same7x/boards/same70_qmtech/board.cmake
#	hw/bsp/same7x/boards/same70_xplained/board.cmake
#	hw/bsp/same7x/family.cmake
2026-03-11 13:34:59 +07:00
2e78533982 Merge pull request #3545 from hathach/remove-div-tusb-fifo
remove expensive div in HWFIFO_ADDR_NEXT_N()
2026-03-11 10:47:15 +07:00
7249c65b2a Merge pull request #3530 from hathach/hcd_ip3516
Add IP3516 HCD support
2026-03-10 21:44:40 +07:00
9cf633f4e9 remove expensive div in HWFIFO_ADDR_NEXT_N() 2026-03-10 21:25:32 +07:00
3eb2b1fe52 fix typo 2026-03-10 17:17:59 +07:00
7ca457cc3d Merge branch 'master' of https://github.com/YixingShen/tinyusb 2026-03-09 22:20:11 +08:00
ce305af653 revert _end_of_control_descriptor to Revision: 0a45308a29 2026-03-09 22:13:59 +08:00
3ca7ad1573 fix(usbh): correct memcpy usage to ensure proper alignment with offsetof in device descriptor handling 2026-03-09 14:43:17 +07:00
4c7bfc4dbe refactor: add desc_device_noheader_t to simplify get device descriptor local 2026-03-09 14:28:59 +07:00
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
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
1c53009dc7 remove dma_desc_t 2026-03-07 13:07:13 +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
e658e23435 fix CI
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2026-03-06 17:19:05 +01:00
5817f0d2eb fix ci
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2026-03-06 15:44:26 +01:00
860f0e01f2 Merge remote-tracking branch 'tinyusb/master' into hcd_ip3516
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2026-03-06 15:23:32 +01:00
40ae5bddbe usbh: support MTT hub
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2026-03-06 15:12:19 +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
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
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
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
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
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
1efe4cd0e8 add hs_phy_type parameter to dwc2_phy_deinit for selective PHY deinitialization across all MCUs 2026-03-05 10:01:40 +07:00
2dcb1a3ee2 Merge branch 'master' into dwc2_deinit 2026-03-04 17:34:10 +07:00
30af158af9 add PHY deinitialization support for DWC2 driver across all MCUs 2026-03-04 17:30:40 +07:00
13e0b0c4f1 Merge pull request #3490 from Precidata/non-blocking-host-v2
Fully asynchrounous host code (v2)
2026-03-04 15:24:11 +07:00