device cdc: rename tud_cdc_configure_fifo/_t to tud_cdc_configure/_t

add tx_overwritabe_if_not_connected for cdc driver configure
This commit is contained in:
hathach
2025-03-24 22:58:21 +07:00
parent 9f541a3d96
commit db537861b2
3 changed files with 41 additions and 26 deletions

View File

@@ -916,8 +916,11 @@ bool tu_fifo_clear(tu_fifo_t *f)
Overwritable mode the fifo is set to
*/
/******************************************************************************/
bool tu_fifo_set_overwritable(tu_fifo_t *f, bool overwritable)
{
bool tu_fifo_set_overwritable(tu_fifo_t *f, bool overwritable) {
if (f->overwritable == overwritable) {
return true;
}
_ff_lock(f->mutex_wr);
_ff_lock(f->mutex_rd);