summaryrefslogtreecommitdiff
path: root/src/class/cdc/cdc_device.c
AgeCommit message (Collapse)Author
2020-11-23add tud_ready() check in tud_cdc_n_write_flush()hathach
other clean up
2020-11-23Merge branch 'master' into cdc_without_dtrHa Thach
2020-11-19migrate cdc_device to new control_xfer_cbhathach
2020-11-18Implementation of the discussed changesJan Dümpelmann
- remove usbd_edpt_xfer_abort - rename tu_fifo_change_mode to tu_fifo_set_mode - remove CFG_TUD_CDC_CLEAR_AT_CONNECTION definition - remove auto fifo clear at connection event - add tud_cdc_n_write_clear function
2020-11-04Merge remote-tracking branch 'hathach/master' into cdc_without_dtrJan Dümpelmann
2020-11-02enable cdc auto flush on write()hathach
if there is enough data in the fifo
2020-09-14cdc device: claim endpoint before checking fifo availabilityhathach
- add pre-check to reduce mutex lock in usbd_edpt_claim
2020-09-10update claim edpt for hid and midihathach
2020-09-09typohathach
2020-09-09clean uphathach
2020-09-09update cdc edpt readhathach
2020-09-09introduce optional usbd_edpt_claim, usbd_edpt_release which can be used to ↵hathach
gain exclusive access to usbd_edpt_xfer
2020-09-04Add functionality to abort an ongoing transferJan Dümpelmann
2020-09-03New function to modify fifo overwritabilityJan Dümpelmann
2020-09-03Turn transmit fifo overwritable in no DTR modeJan Dümpelmann
2020-09-03Remove connected check for write flushingJan Dümpelmann
2020-08-24improve midihathach
- fix #436 tud_midi_rx_cb() not invoked - fix xfer_cb() not handle ep in - add ZLP if needed
2020-08-21Merge pull request #434 from gh2o/masterHa Thach
Add TX callback to CDC device
2020-08-20Slight optimization for cdc tx refillGavin Li
2020-08-20Smarter CDC TX refill logicGavin Li
2020-07-16add tud_speed_get()hathach
- define both fs and hs configuration descriptor - rename CFG_TUD_CDC_EPSIZE to CFG_TUD_CDC_EP_BUFSIZE with default size of 64 for FS, and 512 for HS
2020-07-01fix dfu-rt to response to SET_INTERFACE and DFU_GETSTATUShathach
fix #450
2020-06-20Call tud_cdc_tx_cb right after flush to keep tx fifo fullGavin Li
2020-06-18Add tx callback to cdc deviceGavin Li
Useful for continuous transmission of data, which is difficult currently because there is no notification of tx completion.
2020-05-28rename to drv_len to be consistenthathach
2020-05-28initial transfer failed in open() shouldn't cause the driver open to fail.hathach
2020-05-27changing usbd driver open() return type, add max_lenhathach
only done with cdc and msc, push this interim for feedback first
2020-04-26add usbd edpt openhathach
- RTT mode is blocking to prevent log lost - Improve logging message
2020-04-17correct return for write flushhathach
2020-04-17add a bit of document for cdc device API. also improve cdc write flush when ↵hathach
complete.
2020-04-17Merge pull request #260 from majbthrd/cdczlpHa Thach
CDC device: fix behavior for transfers that are a whole multiple of endpoint buffer
2020-04-15use IAD to assign itf2drv mapping correctlyhathach
merge net_data back into net driver
2020-04-15test ok with cdc and mschathach
2020-03-15following suggestion by @kasjerPeter Lawrence
2020-03-15merge with current masterPeter Lawrence
2020-03-14Use CRLF on UART.Nathan Conrad
2020-02-07more log for debugginghathach
2020-01-15Normalize line endingsNathan Conrad
2020-01-11CDC device: help ensure code is consistent with the size of the buffers it ↵Peter Lawrence
operates on
2020-01-11CDC device: fix behavior for transfers that are a whole multiple of endpoint ↵Peter Lawrence
buffer
2019-12-28implement multiple interfaces supportPeter Lawrence
2019-11-27fix #229hathach
2019-08-01add vendor peek, change cdc peek signature, change cdc read_char() return ↵hathach
from signed char to int32_t
2019-07-16add tud_control_vendor_request_cb()/tud_control_vendor_complete_cb(), expose ↵hathach
usbd control transfer rename usbd_control_transfer/status to tud_control_transfer/status
2019-07-12clean up, rename internal driver control_request_complete to simply ↵hathach
control_complete
2019-07-04remove tud_midi_write_flush() send asap. rename tud_midi_connected() to ↵hathach
tud_midi_mounted()
2019-07-02clean uphathach
2019-07-01improving midi support, adding midi exmaplehathach
rename TUSB_DESC_CLASS_SPECIFIC to TUSB_DESC_CS_INTERFACE
2019-05-29added usbd_edpt_xfer/usbd_edpt_busy to replace dcd_edpt_transfer/dcd_edpt_busy()hathach
- improve fifo write/read_n with only one lock - use usbd_edpt_xfer/usbd_edpt_busy for hid/cdc/msc class driver - replace cdc read's pending_read_from_host by usbd_edpt_busy()
2019-05-22fix tud_cdc_read_char()/tud_cdc_peek() to return signed charhathach
- depending on compiler option "char" can be intepreted as unsigned char