summaryrefslogtreecommitdiff
path: root/examples/host/cdc_msc_hid/src
AgeCommit message (Collapse)Author
24 hoursexamples: write the host cdc console over RTT when that is the consolehathach
console_write() forwards what the attached CDC device sent back to the board's console, and reached for board_uart_write() directly to stay non-blocking. On a board whose console is the debug probe there is no UART: board_uart_write() is a stub returning -1, so everything the device echoed was dropped, and the do/while loop retried a write that could never make progress and spun until more data arrived. Send it through SEGGER_RTT_Write() on LOGGER_RTT builds -- already non-blocking in the default NO_BLOCK_SKIP mode, which is what the UART path wanted board_uart_write() for. The retry is also bounded now. board_uart_write() is only documented to return the number of bytes sent, and the stubs disagree on how they say "no console here" -- lpc40 returns -1, apm32f0xx returns 0 -- so the loop cannot decide from the return value alone when to stop. It gives up after 10 ms without progress instead, which no draining console ever hits, and keeps the negative return as a fast path so a stub UART does not cost that wait on every read. The RTT header include lives in board_api.h so any example can reach it; the include path only exists when LOGGER=rtt defines LOGGER_RTT. host/cdc_msc_hid now passes on ea4088_quickstart, whose probe (LPC-Link2) has no VCOM: the CDC echo round-trips through a CH340 with TX-RX shorted.
2026-05-28remove sync() in tinyusb callback since it cause issue with RTOS when usbh ↵hathach
task is blocking
2026-04-03fix issue with exmaplehathach
2026-04-03fix hil host cdc echo test with imxrt and other fast mcuhathach
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-02-28replace board_millis() with tusb_time_millis_api()hathach
2025-11-08fix more alertshathach
2025-11-03fix #2942, include stdio if CFG_TUSB_DEBUG > 0 and CFG_TUSB_DEBUG_PRINTF is ↵hathach
not defined
2025-10-28fix Identifiers that start with '__' or '_[A-Z]' are reserved.hathach
fix compiling with nuc family
2025-10-14improve cmake warning flags, fix various warnings in exampleshathach
2025-09-17Fix board_init_after_tusbHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-07-02update examplehathach
2025-06-27clean uphathach
2025-06-20cdch clean up and refactor, add explicit sync() APIhathach
2025-06-19revert CFG_TUH_CDC_DTR/RTS_CONTROL_ON_ENUMhathach
2025-06-17add common cdch_process_set_config() to safely complete set_config() when it ↵hathach
failed. driver_process_set_config() also pass drv index with user_data
2025-06-16Merge branch 'master' into fork/IngHK/cdch_upgradehathach
# Conflicts: # README.rst # docs/reference/index.rst # src/class/cdc/cdc_device.c # src/class/cdc/cdc_host.c
2025-05-13fix warnings, minor clean uphathach
2025-04-23rename hcd_devtree_info_t to tuh_bus_info_t, hcd_devtree_get_info to ↵hathach
hcd_bus_info_get streamline bus info to usbh_devies, also replace dev0 (renamed to dev0_bus)
2025-03-25fix waningshathach
2025-03-09Merge pull request #1627 from atoktoto/midihostHa Thach
RP2040 MIDI Host
2025-03-06fix(dwc2) host driver conflict with max3421ehathach
2025-03-05Merge branch 'master' into fork/atoktoto/midihosthathach
# Conflicts: # src/host/usbh.c
2025-03-03- add tuh_descriptor_get_string_langid() APIhathach
- host enumeration always get language id, manufacturer, product and serial string. Which is required by some device such as 8bitdo
2025-02-24add tuh_midi_mount_cb_t struct for tuh_midi_mount_cb()hathach
change tuh_midi_rx/tx_cb() to have xferred_bytes rename tuh_midi_get_num_rx/tx_cables() to tuh_midi_get_rx/tx_cable_count() use default empty callback instead of weak null to be compatible with keil compiler
2024-11-07update bsp for h7 to support host modehathach
2024-10-14change the tusb_rhport_init_t struct, exclude the rhport to make API more ↵hathach
consistent
2024-10-11change tusb_init(), tusb_rhport_init() to use init struct for expandabilityhathach
2024-10-10add new tusb_int_handler(rhport, in_isr) as common irq handlerhathach
update tusb_init() to take rhport and role, defined as macro with optional argument for backward compatible
2024-07-18fix some clang compiler warningsgraham sanderson
2024-04-22fix nrfx v3 spim freq when inithathach
fix clang build with nrf
2024-04-22fix build with nrfx v3, though max3421e spi does not seem to work well.hathach
2024-03-21Merge remote-tracking branch 'remotes/hathach/master' into workIngHK
2024-03-10added defines CFG_TUH_CDC_DTR_CONTROL_ON_ENUM & CFG_TUH_CDC_RTS_CONTROL_ON_ENUMIngHK
2024-03-04correct rp2040 host with max3421hathach
2024-02-24added PL2303 supportIngHK
2024-02-13improved tusb_config.h commentIngHK
2024-01-20make CFG_TUH_CDC_LINE_CODING_ON_ENUM optional for ch34xhathach
2024-01-19- add ch34x_set_data_format()hathach
- add ch34x_set_line_coding()
2023-12-26initial support of CH34x CDC deviceIngHK
2023-12-26allow rp2040 to use max3421e as host controllerhathach
- fix warnings build hcd max3421 with rp2040 - add tinyusb_host_max3421 target for rp2040 cmake, -DMAX3421_HOST=1 will enable this - add max3421 driver implementation for rp2040 family - update tusb_config for host to allow easy enable host selection for rp2040 (default/pio-usb/max3421)
2023-11-22fix typo in cdc line coding enumhathach
2023-11-20update example to work with featherwing max3421, set max3421 GPIO0 for vbushathach
tested with feather nrf52840, m0, m4
2023-09-11wrap up build cmake & make support for max3421, to enable the Host driver, ↵hathach
'MAX3421_HOST=1' must be added as part of make/cmake command
2023-08-27minor updatehathach
2023-08-27more update to transactionhathach
2023-08-14fix build iar with lpc43hathach
2023-08-04Merge branch 'master' into enhance-bsphathach
2023-08-03rename hw/bsp/board.h to board_api.hhathach