summaryrefslogtreecommitdiff
path: root/src/class/cdc/cdc_device.c
AgeCommit message (Collapse)Author
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-07fix more alerts found by pvs-studiohathach
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
2023-04-28add aligned(4) for cdc_line_coding_thathach
2023-04-27cdc: fix line_coding aligmentJean-Baptiste Theou
While calling tud_cdc_n_get_line_coding, the structure is copied into the destination. Dump of assembler code for function tud_cdc_n_get_line_coding: 0x000193f4 <+0>: mov.w r2, #2112 @ 0x840 0x000193f8 <+4>: ldr r3, [pc, #20] @ (0x19410 <tud_cdc_n_get_line_coding+28>) 0x000193fa <+6>: mla r0, r2, r0, r3 => 0x000193fe <+10>: ldr.w r3, [r0, #6] 0x00019402 <+14>: str r3, [r1, #0] On some platform (tested on LPC55S28), the address needs to be 4-bytes aligned. Without this, the address is (gdb) p &_cdcd_itf.line_coding $3 = (cdc_line_coding_t *) 0x40100006 <_cdcd_itf+6> which leads to a HardFault. With this fix (gdb) p &_cdcd_itf.line_coding $5 = (cdc_line_coding_t *) 0x40100008 <_cdcd_itf+8> and the function can be called properly Signed-off-by: Jean-Baptiste Theou <[email protected]>
2023-03-17fix trailing space and new linehathach
temporarily disable codespell
2023-02-22use tu_static instead of static _fuzz_threadhathach
2023-02-22rename maros from FUZZ to _FUZZ, change TU_STATIC to static _fuzz_threadhathach
2023-01-20fix: Change all static variables to thread when fuzzingNathaniel Brough
2022-12-22fix incorrect rx buf in cdchathach
2022-12-15use OSAL_MUTEX_REQUIRED to replace CFG_FIFO_MUTEX/TUSB_OPT_MUTEXhathach
add macro to swallow mutex API in order to simplify code with mutex
2022-12-08fix typo, add -Wno-error=unreachable-code for fuzz due to latest cdc changeshathach
2022-12-06cdc: Fix autoflush for FIFO < MPSTomas Rezucha
2022-06-24add more warning option, also fix -Wconversion with rp2040hathach
-Wuninitialized, -Wunused, -Wredundant-decls
2022-06-02rhport argument in usbd_ API() is not used (always use the initialized port)hathach
remove the usage of TUD_OPT_RHPORT in class driver
2022-02-25rename TUSB_OPT_DEVICE_ENABLED to CFG_TUD_ENABLEDhathach
TUSB_OPT_DEVICE_ENABLED still usable for backward compatible
2021-11-23fix nrf easy dma race conditionhathach
2021-10-15update some sense warning from -Wconversionhathach
2021-06-28change usbh open driver to have max_len and return driver lenhathach
2021-05-27include clean uphathach
2021-04-30Remove all remainings with peek_atReinhard Panhuber
2021-04-03Merge remote-tracking branch 'upstream/master' into edpt_ISO_xferReinhard Panhuber
2021-03-12use !tu_fifo_empty() instead of tu_fifo_count()hathach
2021-03-11Add fifo empty check.HiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2021-03-10Merge branch 'master' into edpt_ISO_xferhathach
2021-03-10Call One time tu_fifo_write_n on cdcd_xfer_cbHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2021-03-04Extend FIFO mutex to use separate write and read mutexes.Reinhard Panhuber
Adjust all USB drivers using FIFO and mutexes.