summaryrefslogtreecommitdiff
path: root/src/device
AgeCommit message (Collapse)Author
2026-05-03Merge branch 'master' into copilot/upgrade-net-lwip-webserver-descriptorsZixun LI
2026-04-29clean uphathach
2026-04-28Merge branch 'master' into fork/kira-live/masterhathach
# Conflicts: # src/device/usbd_control.c
2026-04-26usbd_control: consolidate status stage ep selectionhathach
Extract the "which endpoint is the Status stage on" rule into a single TU_ATTR_ALWAYS_INLINE helper, and use it from both status_stage_xact() and the completion callback. Replaces the two-operand wLength/direction check with a direct endpoint-match comparison, matching the first operand's pattern. Per USB 2.0 §9.3.1, when wLength == 0 the bmRequestType Direction bit is ignored and the Status stage is always IN; otherwise the Status stage is opposite to the Data stage direction. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
2026-04-25Merge branch 'master' into musb-followup-3594hathach
# Conflicts: # src/common/tusb_types.h # src/portable/mentor/musb/dcd_musb.c
2026-04-25clean uphathach
2026-04-24fix zero wLength request in control requestakari
2026-04-23Merge upstream master into net descriptor-based ep_size branchcopilot-swe-agent[bot]
- Resolve .gitignore conflict: incorporate upstream's .worktrees entry and expand dependency path patterns to cover all tools/get_deps.py fetched dirs (lib/, tools/linkermap, tools/uf2, hw/mcu/*) instead of listing only a few - Auto-merged upstream changes: build system cleanups, BSP updates, portability fixes, new boards (nrf54lm20dk, stm32h743_weact), fatfs relocation, and many other upstream improvements - Net driver changes (ecm_rndis_device.c, ncm_device.c, net_device.h, usbd.h, usb_descriptors.c) retain our PR's descriptor-based ep_size approach as our branch takes precedence Co-authored-by: HiFiPhile <[email protected]>
2026-04-17remove duplicated tu_le16toh since we have converted the endian when setup.Fan DANG
2026-04-13fix(device): big-endian host support for SETUP packet handlingFan DANG
1. Add TU_LITTLE_ENDIAN_BITFIELD / TU_BIG_ENDIAN_BITFIELD macros in tusb_compiler.h (GCC and IAR), following Linux kernel style. 2. Update bmAttributes (tusb_desc_endpoint_t) and bmRequestType_bit (tusb_control_request_t) in tusb_types.h to use these macros with explicit #error fallback if undefined. 3. Add tu_le16toh() conversion in dcd_event_setup_received() for wValue/wIndex/wLength. Tested on CIU98320B (big-endian ARM Cortex-M, full-speed HID keyboard).
2026-03-22net: upgrade net_lwip_webserver to separate FS/HS descriptors and add ↵copilot-swe-agent[bot]
bInterval to TUD_CDC_NCM_DESCRIPTOR Co-authored-by: HiFiPhile <[email protected]> Agent-Logs-Url: https://github.com/hathach/tinyusb/sessions/e212b526-e279-4a83-88bf-a742df293165
2026-03-22Simplify tud_task() like in tuh_task()Cédric Berger
2026-03-11refactor(usbd): replace `_usbd_ctrl_epbuf` with `usbd_get_ctrl_buf()` for ↵hathach
cleaner abstraction and consistency across modules
2026-03-11Merge branch 'master' into ep0_directhathach
# Conflicts: # hw/bsp/same7x/boards/same70_qmtech/board.cmake # hw/bsp/same7x/boards/same70_xplained/board.cmake # hw/bsp/same7x/family.cmake
2026-03-06replace printer_to_hid example with printer_to_cdc examplehathach
fix printer GET_DEVICE_ID request weird wIndex (interface high, alt low)
2026-03-06update printer class: enhance descriptors, buffer sizes, and callbackshathach
2026-03-06Merge branch 'refs/heads/master' into fork/remiberthoz/device-class-printerhathach
2026-02-27Merge remote-tracking branch 'tinyusb/master' into dwc2_deinitHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2026-02-13use CFG_TUD_CONFIGURE_DWC2_DEFAULT to make it easier to add more valuehathach
2026-02-13add CFG_TUD_VBUS_SENSE, that could allow to skip tud_configure() for fixed ↵hathach
vbus sensing simplify dwc2_stm32_gccfg_cfg() using guid value
2026-02-13Merge branch 'refs/heads/master' into dwc2_vbushathach
2026-02-03Fix DFU descriptor version from 1.0.1 (0x0101) to 1.1.0 (0x0110)copilot-swe-agent[bot]
Co-authored-by: hathach <[email protected]>
2026-02-01Actually exit the loop in addition to logging. ENOTENOUGHCOFFEECédric Berger
2026-02-01Limit events processed by tud_task_ext() / tuh_task_ext()Cédric Berger
2026-01-31dwc2: add vbus sense configHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2026-01-07Adjust printer device class to 0.20.0 and fix compilation warningsRémi Berthoz
2026-01-06catch deinit errorHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2026-01-06Merge remote-tracking branch 'tinyusb/master' into ep0_directHiFiPhile
2026-01-04Implement Printer Device ClassRémi Berthoz
2025-12-15Merge pull request #3364 from hathach/hcd_fsdevHa Thach
hcd: add stm32_fsdev driver
2025-12-15minor clean uphathach
2025-12-14reduce code sizeHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-12-14usbd: add ep0 buffer direct accessHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-12-13Merge pull request #3358 from hathach/dwc2_cfgHa Thach
Add dcd_configure for dwc2 FIFO config
2025-12-13Merge branch 'refs/heads/master' into hcd_fsdevhathach
2025-12-12remove bitfield in usbd_device_t state to reduce code sizehathach
2025-12-11move host hacked bulk mps out of tu_edpt_validate()hathach
2025-12-11refactor binding ep and interface to driverhathach
2025-12-10move hwid into edpt stream for consistent APIhathach
2025-12-10minor formathathach
2025-12-10revert the usbd_edpt_xfer_fifo guardhathach
2025-12-08usbd: remove dcd_edpt_xfer_fifo ifdef guardZixun LI
Signed-off-by: Zixun LI <[email protected]>
2025-12-02Merge remote-tracking branch 'tinyusb/master' into dwc2_cfgZixun LI
2025-11-30Update noteHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-11-27Merge remote-tracking branch 'tinyusb/master' into hcd_fsdevZixun LI
Signed-off-by: Zixun LI <[email protected]>
2025-11-27usbd: clear state and call callback on deinitZixun LI
Signed-off-by: Zixun LI <[email protected]>
2025-11-21Apply suggestions from code reviewZixun LI
Co-authored-by: Copilot <[email protected]>
2025-11-21dcd/dwc2: add IN fifo configureHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-11-21dcd: add tud_configure()HiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-11-21edpt stream support xfer_fifo for device CFG_TUD_EDPT_DEDICATED_HWFIFOhathach
cdc device omit ep buffer when hwfifo is supported