diff options
| author | Jan Dümpelmann <[email protected]> | 2020-11-18 09:42:50 +0100 |
|---|---|---|
| committer | Jan Dümpelmann <[email protected]> | 2020-11-18 09:42:50 +0100 |
| commit | 54e29e9ff451d5e30eb59d0411adbe5d4993c59b (patch) | |
| tree | c02d2127a93a4f9ea67f1155ee83cd87976534ac /src/common | |
| parent | af9f0f1cd64283116716d6bcadc9f33214e88c57 (diff) | |
Implementation of the discussed changes
- 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
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_fifo.c | 4 | ||||
| -rw-r--r-- | src/common/tusb_fifo.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/common/tusb_fifo.c b/src/common/tusb_fifo.c index 470e26b77..444c60f96 100644 --- a/src/common/tusb_fifo.c +++ b/src/common/tusb_fifo.c @@ -603,9 +603,11 @@ bool tu_fifo_clear(tu_fifo_t *f) @param[in] f Pointer to the FIFO buffer to manipulate + @param[in] overwritable + Overwritable mode the fifo is set to */ /******************************************************************************/ -bool tu_fifo_change_mode(tu_fifo_t *f, bool overwritable) +bool tu_fifo_set_mode(tu_fifo_t *f, bool overwritable) { tu_fifo_lock(f); diff --git a/src/common/tusb_fifo.h b/src/common/tusb_fifo.h index 603a74609..abb301b5f 100644 --- a/src/common/tusb_fifo.h +++ b/src/common/tusb_fifo.h @@ -89,7 +89,7 @@ typedef struct .non_used_index_space = 0xFFFF - 2*_depth-1, \ } -bool tu_fifo_change_mode(tu_fifo_t *f, bool overwritable); +bool tu_fifo_set_mode(tu_fifo_t *f, bool overwritable); bool tu_fifo_clear(tu_fifo_t *f); bool tu_fifo_config(tu_fifo_t *f, void* buffer, uint16_t depth, uint16_t item_size, bool overwritable); |
