summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/device/device_virtual_com/src/tusb_config.h2
-rw-r--r--examples/device/nrf52840/src/main.c2
-rw-r--r--examples/device/nrf52840/src/tusb_config.h2
-rw-r--r--examples/obsolete/device/src/tusb_config.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/examples/device/device_virtual_com/src/tusb_config.h b/examples/device/device_virtual_com/src/tusb_config.h
index a69d2ecbb..511b81b78 100644
--- a/examples/device/device_virtual_com/src/tusb_config.h
+++ b/examples/device/device_virtual_com/src/tusb_config.h
@@ -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
//--------------------------------------------------------------------+
diff --git a/examples/device/nrf52840/src/main.c b/examples/device/nrf52840/src/main.c
index e6a6388bf..ec574738e 100644
--- a/examples/device/nrf52840/src/main.c
+++ b/examples/device/nrf52840/src/main.c
@@ -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();
}
}
diff --git a/examples/device/nrf52840/src/tusb_config.h b/examples/device/nrf52840/src/tusb_config.h
index 258a5983d..62c788413 100644
--- a/examples/device/nrf52840/src/tusb_config.h
+++ b/examples/device/nrf52840/src/tusb_config.h
@@ -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
/*------------------------------------------------------------------*/
diff --git a/examples/obsolete/device/src/tusb_config.h b/examples/obsolete/device/src/tusb_config.h
index 16003dd6d..8c8d32514 100644
--- a/examples/obsolete/device/src/tusb_config.h
+++ b/examples/obsolete/device/src/tusb_config.h
@@ -88,7 +88,7 @@
// TX is sent automatically in 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