rename tud_cdc_flush() to tud_cdc_write_flush(), add tud_cdc_read_flush()

This commit is contained in:
hathach
2018-07-14 23:43:19 +07:00
parent 19b6bbfd14
commit abb37e98ba
7 changed files with 14 additions and 7 deletions

View File

@@ -90,7 +90,7 @@
// TX is sent automatically every Start of Frame event.
// If not enabled, application must call tud_cdc_flush() periodically
// If not enabled, application must call tud_cdc_write_flush() periodically
#define CFG_TUD_CDC_FLUSH_ON_SOF 1
//--------------------------------------------------------------------+

View File

@@ -87,7 +87,7 @@ void virtual_com_task(void)
uint32_t count = tud_cdc_read(buf, sizeof(buf));
tud_cdc_write(buf, count);
tud_cdc_flush();
tud_cdc_write_flush();
}
}

View File

@@ -86,7 +86,7 @@
#define CFG_TUD_CDC_TX_BUFSIZE 64
// TX is sent automatically every Start of Frame event.
// If not enabled, application must call tud_cdc_flush() periodically
// If not enabled, application must call tud_cdc_write_flush() periodically
#define CFG_TUD_CDC_FLUSH_ON_SOF 0
/*------------------------------------------------------------------*/