rename tud_cdc_flush() to tud_cdc_write_flush(), add tud_cdc_read_flush()
This commit is contained in:
@@ -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
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -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
|
||||
|
||||
/*------------------------------------------------------------------*/
|
||||
|
Reference in New Issue
Block a user