summaryrefslogtreecommitdiff
path: root/src/class/cdc
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-08-30 15:20:15 +0700
committerhathach <[email protected]>2018-08-30 15:20:15 +0700
commit61e4a8c3d34994f47ae7380217af4dbefef4aab9 (patch)
treeb21ebaf6bffc46f29fe4791286cdb138c1e16797 /src/class/cdc
parent583326e535454f16b06ebdb9cc06869602a5564c (diff)
remove CFG_TUD_CDC_FLUSH_ON_SOF option
Diffstat (limited to 'src/class/cdc')
-rw-r--r--src/class/cdc/cdc_device.c12
-rw-r--r--src/class/cdc/cdc_device.h6
2 files changed, 1 insertions, 17 deletions
diff --git a/src/class/cdc/cdc_device.c b/src/class/cdc/cdc_device.c
index 5dd7da122..6858b6ad0 100644
--- a/src/class/cdc/cdc_device.c
+++ b/src/class/cdc/cdc_device.c
@@ -90,7 +90,7 @@ CFG_TUSB_ATTR_USBRAM static cdcd_interface_t _cdcd_itf[CFG_TUD_CDC];
//--------------------------------------------------------------------+
bool tud_cdc_n_connected(uint8_t itf)
{
- // DTR (bit 0) active isconsidered as connected
+ // DTR (bit 0) active is considered as connected
return BIT_TEST_(_cdcd_itf[itf].line_state, 0);
}
@@ -348,14 +348,4 @@ tusb_error_t cdcd_xfer_cb(uint8_t rhport, uint8_t ep_addr, tusb_event_t event, u
return TUSB_ERROR_NONE;
}
-#if CFG_TUD_CDC_FLUSH_ON_SOF
-void cdcd_sof(uint8_t rhport)
-{
- for(uint8_t i=0; i<CFG_TUD_CDC; i++)
- {
- tud_cdc_n_flush(i);
- }
-}
-#endif
-
#endif
diff --git a/src/class/cdc/cdc_device.h b/src/class/cdc/cdc_device.h
index 4014f5fa9..2e03793a9 100644
--- a/src/class/cdc/cdc_device.h
+++ b/src/class/cdc/cdc_device.h
@@ -116,12 +116,6 @@ tusb_error_t cdcd_control_request_st (uint8_t rhport, tusb_control_request_t con
tusb_error_t cdcd_xfer_cb (uint8_t rhport, uint8_t edpt_addr, tusb_event_t event, uint32_t xferred_bytes);
void cdcd_reset (uint8_t rhport);
-#if CFG_TUD_CDC_FLUSH_ON_SOF
-void cdcd_sof(uint8_t rhport);
-#else
-#define cdcd_sof NULL
-#endif
-
#endif
#ifdef __cplusplus