diff options
| author | hathach <[email protected]> | 2018-07-14 23:43:19 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-07-14 23:43:19 +0700 |
| commit | abb37e98baa16ae9f99f9d7562e4ee166e8bc4de (patch) | |
| tree | 865b77a3d3472d0aa085b7d8e7ff5aa59e8a2f36 /examples/device | |
| parent | 19b6bbfd14778c5a1fd13d2c0665dfbaa49c9425 (diff) | |
rename tud_cdc_flush() to tud_cdc_write_flush(), add tud_cdc_read_flush()
Diffstat (limited to 'examples/device')
| -rw-r--r-- | examples/device/device_virtual_com/src/tusb_config.h | 2 | ||||
| -rw-r--r-- | examples/device/nrf52840/src/main.c | 2 | ||||
| -rw-r--r-- | examples/device/nrf52840/src/tusb_config.h | 2 |
3 files changed, 3 insertions, 3 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 /*------------------------------------------------------------------*/ |
