add tud_ready() check in tud_cdc_n_write_flush()
other clean up
This commit is contained in:
@@ -607,7 +607,7 @@ bool tu_fifo_clear(tu_fifo_t *f)
|
||||
Overwritable mode the fifo is set to
|
||||
*/
|
||||
/******************************************************************************/
|
||||
bool tu_fifo_set_mode(tu_fifo_t *f, bool overwritable)
|
||||
bool tu_fifo_set_overwritable(tu_fifo_t *f, bool overwritable)
|
||||
{
|
||||
tu_fifo_lock(f);
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ typedef struct
|
||||
.non_used_index_space = 0xFFFF - 2*_depth-1, \
|
||||
}
|
||||
|
||||
bool tu_fifo_set_mode(tu_fifo_t *f, bool overwritable);
|
||||
bool tu_fifo_set_overwritable(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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user