summaryrefslogtreecommitdiff
path: root/examples/host
AgeCommit message (Collapse)Author
2026-05-12fix: address PR review feedback for MIDI 2.0 driversSaulo Veríssimo
Host driver (midi2_host.c): - midih2_open() now returns actual parsed length instead of max_len, preventing composite device interface conflicts - Parsers (alt0/alt1) refactored to return const uint8_t* end pointer following midi_host.c switch/case pattern - Alt 1 CS Endpoint now parses MIDI 2.0 layout (bNumGrpTrmBlk at offset 3 with MIDI_CS_ENDPOINT_GENERAL_2_0 subtype check) instead of reusing MIDI 1.0 struct (bNumEmbMIDIJack) - midih2_set_config() now issues SET_INTERFACE control request via tuh_interface_set() before completing configuration. Falls back to alt 0 if SET_INTERFACE fails - Extracted midih2_set_config_complete() and midih2_set_interface_cb() for async SET_INTERFACE handling Device driver (midi2_device.c): - midi2d_open() skip loop now checks bInterfaceNumber, stopping at interfaces that belong to other functions in composite devices - SET_INTERFACE handler now rejects alt > 1 (returns false/stall) - Named constants for GTB descriptor types and MIDI protocol values Descriptor macros (usbd.h): - TUD_MIDI2_DESC_ALT1_HEAD: iInterface set to 0 (consistent with Alt 0), wTotalLength now uses TUD_MIDI2_DESC_ALT1_CS_LEN to cover all Alt 1 class-specific descriptors - TUD_MIDI2_DESC_ALT1_EP: now accepts GTB ID list via variadic args, emitting complete CS endpoint descriptor Host example: - CMakeLists.txt restricted to rp2040 family (display.c requires Pico SDK headers) - display.c: null terminator after strncpy in log scroll Documentation: - class_drivers.rst updated to reflect SET_INTERFACE behavior and auto-select with fallback Addresses: Codex P1 (#1, #2, #3), Copilot (#4-#9)
2026-05-12example: add MIDI 2.0 Host example with display (midi2_host)Saulo Veríssimo
Add Host example that receives UMP from a MIDI 2.0 Device via PIO-USB and displays received messages on a SSD1306 OLED (I2C, 128x64). Features: - Boot checklist on display (PWR, TinyUSB, USB bus, Device, Descriptor, Alt Setting UMP, Mount, Receiving) - Decode and display all MIDI 2.0 Channel Voice messages - PIO-USB Host on rhport 1 (GP12/GP13 for Waveshare RP2350-USB-A) - SSD1306 display via I2C0 (GP4=SDA, GP5=SCL) Also add board definition for Waveshare RP2350-USB-A. Tested: Waveshare RP2350-USB-A (Host) receiving UMP from Raspberry Pi Pico (Device) via USB cable, notes displayed on SSD1306 OLED
2026-05-05Apply suggestions from code reviewZixun LI
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
2026-05-03add msc_file_explorer_freertos exampleHiFiPhile
Co-authored-by: Copilot <[email protected]> Signed-off-by: HiFiPhile <[email protected]>
2026-04-14fix cihathach
2026-04-14refactor rp2040 family.cmake to use family_configure_example() and apply ↵hathach
WARN_FLAGS to tinyusb sources and examples sources only (skip 3rd party library and mcu vendor)
2026-04-14get freertos working with rp2040hathach
2026-04-06remove IAR toolchain support from make build systemhathach
IAR is only supported with CMake. Remove all IAR-specific references from the Make build system including toolchain files, SRC_S_IAR, LD_FILE_IAR variables, and IAR toolchain detection. Also fix GET_SECTOR_COUNT truncation in msc_file_explorer and broken formatting in stm32f7 board_uart_write. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
2026-04-05Merge pull request #3581 from non-bin/masterHa Thach
Update FatFS to R0.16
2026-04-03fix issue with exmaplehathach
2026-04-03fix hil host cdc echo test with imxrt and other fast mcuhathach
2026-04-02update FatFS to R0.16 via abbrev/fatfs dependencyhathach
- Add lib/fatfs to deps_mandatory in get_deps.py, pinned to R0.16 (commit 30ca13c6) from github.com/abbrev/fatfs mirror - Move TinyUSB custom ffconf.h to examples/host/msc_file_explorer/src/ with project-specific settings: FF_CODE_PAGE=437, FF_USE_LFN=1, FF_FS_RPATH=2, FF_VOLUMES=4, FF_FS_NORTC=1 - get_deps.py removes stock ffconf.h after clone to avoid conflict - Remove vendored fatfs source files from git tracking FatFS R0.16 includes important fixes since R0.15: - Fixed FAT32 FsInfo regression (forced full FAT scan on f_getfree) - Fixed f_readdir infinite loop (from R0.15b) - f_getcwd/.. now works on exFAT - Added FF_FS_CRTIME support
2026-04-01reduce code size, use state to replace active + pendinghathach
2026-03-23add rp2040 sof + stop_trans on nak. increase nak_poll fs/ls delay to 300 us ↵hathach
to prevent xfer is ack while stopping.
2026-03-23update host msc hil testhathach
2026-03-20Add dd command to MSC file explorer for sector read and speed reporting, ↵hathach
adjust CLI configuration and HIL tests
2026-03-17add hil test for host msc and cdchathach
2026-03-13actual build make/cmake for ft9xxhathach
2026-03-13add support for CH32F20X MCU and update board configurationhathach
2026-03-06fix CIHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2026-03-06Merge remote-tracking branch 'tinyusb/master' into hcd_ip3516HiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2026-03-05add IAR warning flags to cmake build and fix themhathach
2026-02-28replace board_millis() with tusb_time_millis_api()hathach
2026-01-08host device info print no serial as 0 instead of n/ahathach
2025-12-19clean up cmake, remove family_get_project_name()hathach
2025-12-16Merge remote-tracking branch 'tinyusb/master' into support-nxp-rw612HiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-12-16Merge remote-tracking branch 'tinyusb/master' into support-nxp-rw612Zixun LI
Signed-off-by: Zixun LI <[email protected]>
2025-12-16example: host: support hpmicro familyZhihong Chen
Signed-off-by: Zhihong Chen <[email protected]>
2025-12-15minor clean uphathach
2025-12-14bsp: nxp: add support for RW612 (FRDM-RW612)gab-k
- Added `rw61x` family support. - Added `frdm_rw612` board support. - Update `get_deps.py` to include mcux-sdk for RW61x. - Add ci_hs_rw61x include to ChipIdea HS driver and enable host examples.
2025-12-13example/bare_api: move buffer into USB sectionHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-12-13update LPC54HiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-12-13example/msc_app: move buffers into usb ram sectionHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-12-13bsp/lpc55: add hcd_ip3516HiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-12-13Merge branch 'refs/heads/master' into hcd_fsdevhathach
2025-12-02adding metrics for computing average compiled sizehathach
2025-11-27fix buildHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-11-27bsp/stm32h5: support host modeHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-11-25fsdev: reorganize functionsHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-11-25hcd: add fsdev driverHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-11-19device_info wait 100ms for host's uart, needed for hil testhathach
2025-11-08fix more alertshathach
2025-11-06update espressif cmakehathach
2025-11-04Fixed more alert found by PVS-Studiohathach
2025-11-03fix #2942, include stdio if CFG_TUSB_DEBUG > 0 and CFG_TUSB_DEBUG_PRINTF is ↵hathach
not defined
2025-10-30Merge pull request #3271 from karlp/pr/examplesd-freertos-stacksHa Thach
examples/device/*_freertos: expand stack size when needed
2025-10-30increase freertos stack size when debug is enabledhathach
2025-10-28fix Identifiers that start with '__' or '_[A-Z]' are reserved.hathach
fix compiling with nuc family
2025-10-14fix lots of warnings for missing-prototypes for irqhandlerhathach
2025-10-14more make refactorhathach