summaryrefslogtreecommitdiff
path: root/src/class/cdc/cdc_device.c
AgeCommit message (Collapse)Author
2026-07-02license: use SPDX identifiers for src/ headers (#3749)Ha Thach
* license: use SPDX identifiers for src/ headers Replace the full ~20-line MIT license boilerplate on every src/ file with a two-line SPDX tag (SPDX-FileCopyrightText + SPDX-License-Identifier), following the REUSE convention used by CircuitPython and the Linux kernel. Removes ~3500 lines of duplicated boilerplate.
2026-03-12clean uphathach
2026-03-12refactor(cdc): remove runtime CDC driver configuration in favor of ↵hathach
compile-time macros for simplicity and reduced complexity
2026-03-12refactor(vendor/cdc): add CFG_TUD_CDC_RX_NEED_ZLP and CFG_TUD_VENDOR_RX_NEED_ZLPhathach
2026-03-12refactor(config): separate endpoint buffer sizes into RX and TX definitions ↵hathach
for clarity and flexibility
2026-03-11rename .rx_multiple_packet_transfer to .rx_need_zlphathach
2026-02-11fix rx transfer length when high speed capable device/host working at full speedHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-12-12fix edpt stream write/read to endpoint not yet openedhathach
2025-12-10move hwid into edpt stream for consistent APIhathach
2025-12-10flatten cdc tx,rx streamhathach
2025-12-10change tu_fifo_clear()/tu_edpt_stream_clear() from return bool to voidhathach
2025-11-27change tud_vendor_rx_cb() behavior, buffer and bufsize only available when ↵hathach
CFG_TUD_VENDOR_RX_BUFSIZE = 0 update vendor device to omit ep buf when dedicated hwfifo is supported
2025-11-27omit cdc epnotify for dedicated hw fifohathach
2025-11-27add tud_cdc_n_notify_msg()hathach
2025-11-26change tu_fifo_buffer_info_t layouthathach
2025-11-22hil stress test cdchathach
2025-11-22implement wanted char for cdc device without ep_bufhathach
2025-11-22implement wanted char for cdc device without ep_bufhathach
2025-11-21edpt stream support xfer_fifo for device CFG_TUD_EDPT_DEDICATED_HWFIFOhathach
cdc device omit ep buffer when hwfifo is supported
2025-11-19Merge remote-tracking branch 'tinyusb/master' into ↵HiFiPhile
copilot/fix-dcd-edpt-xfer-issue Signed-off-by: HiFiPhile <[email protected]>
2025-11-13Apply suggestions from code reviewHa Thach
Co-authored-by: Copilot <[email protected]>
2025-11-13clear endpoint stream when open for cdc_host and midi_hosthathach
2025-11-12migrate cdc device to use edpt stream APIhathach
tu_edpt_stream_open() does not clear fifo, allow for persistent stream when disconnect/reconnect
2025-11-11Merge remote-tracking branch 'tinyusb/master' into ↵HiFiPhile
copilot/fix-dcd-edpt-xfer-issue Signed-off-by: HiFiPhile <[email protected]>
2025-11-07fix more alerts found by pvs-studiohathach
2025-10-31Merge remote-tracking branch 'tinyusb/master' into ↵HiFiPhile
copilot/fix-dcd-edpt-xfer-issue Signed-off-by: HiFiPhile <[email protected]>
2025-10-22Fix copilot issuesMengsk
Signed-off-by: Mengsk <[email protected]>
2025-10-22Add is_isr parameter to usbd_edpt_xfer and usbd_edpt_xfer_fifocopilot-swe-agent[bot]
- Added bool is_isr parameter to usbd_edpt_xfer() and usbd_edpt_xfer_fifo() wrapper functions - These are called by class drivers to queue USB transfers - Updated all callers to pass false by default (non-ISR context) - Updated audiod_rx_xfer_isr() and audiod_tx_xfer_isr() to pass true (ISR context) - All 21 unit tests pass Co-authored-by: HiFiPhile <[email protected]>
2025-10-16fix some warnings detected by pvs-studiohathach
2025-09-17Update weak callbacks to new syntaxHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-07-03make notify API and memory configurable with CFG_TUD_CDC_NOTIFYhathach
add tud_cdc_n_notify_conn_speed_change() add tud_cdc_notify_complete_cb()
2025-07-02Merge branch 'master' into fork/HiFiPhile/dcd_notifhathach
2025-03-24device cdc: rename tud_cdc_configure_fifo/_t to tud_cdc_configure/_thathach
add tx_overwritabe_if_not_connected for cdc driver configure
2024-12-01Merge branch 'master' into dcd_notifHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2024-11-22apply TUD_EPBUF_DEF for device: bth, dfu, hid, mschathach
2024-11-21make sure usb buffer occupies whole cache line when DCACHE is enabled for ↵hathach
msc,cdc,hid HIL enable device DMA for p4
2024-10-30Merge branch 'master' into dcd_notifHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2024-07-19- add tud_cdc_n_ready() though not usedhathach
- usbd now change _usbd_dev.cfg_num before calling driver's open()
2024-07-19revert changes to usbds configuration_reset() (deal with it in separated PR)hathach
2024-07-19Check tud ready check for OUT xfer.HiFiPhile
2024-07-12- add tud_cdc_configure_fifo() to replace CFG_TUD_CDC_PERSISTENT_TX_BUFFhathach
- new line, and code format
2024-05-08Add option to make CDC TX buffer persistent.Andrew Leech
2024-04-26cdc: add uart status notification support.HiFiPhile
2024-04-26cdc_device : save rhport.HiFiPhile
2024-04-22fix print lu format warnings with clanghathach
2024-04-08add class driver deinithathach
2023-08-14UINT16_MAX stdint macro usagetswan-quasi
2023-08-14min on cdc r/wtswan-quasi
2023-08-02default class driver log level to CFG_TUH/TUD_LOG_LEVEL allow application to ↵hathach
selectively disable usbd/usbh or driver log
2023-07-24rename CFG_TUSB_MEM_SECTION to CFG_TUD_MEM_SECTION in device stackhathach
CFG_TUD_MEM_SECTION is default to CFG_TUSB_MEM_SECTION