From 61e4a8c3d34994f47ae7380217af4dbefef4aab9 Mon Sep 17 00:00:00 2001 From: hathach Date: Thu, 30 Aug 2018 15:20:15 +0700 Subject: remove CFG_TUD_CDC_FLUSH_ON_SOF option --- src/class/cdc/cdc_device.c | 12 +----------- src/class/cdc/cdc_device.h | 6 ------ src/portable/nordic/nrf5x/hal_nrf5x.c | 4 ---- 3 files changed, 1 insertion(+), 21 deletions(-) (limited to 'src') 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; iINTENSET = USBD_INTEN_USBRESET_Msk | USBD_INTEN_USBEVENT_Msk | USBD_INTEN_EPDATA_Msk | USBD_INTEN_EP0SETUP_Msk | USBD_INTEN_EP0DATADONE_Msk | USBD_INTEN_ENDEPIN0_Msk | USBD_INTEN_ENDEPOUT0_Msk; -#if CFG_TUD_CDC && CFG_TUD_CDC_FLUSH_ON_SOF - NRF_USBD->INTENSET |= USBD_INTEN_SOF_Msk; -#endif - // Enable interrupt, Priorities 0,1,4,5 (nRF52) are reserved for SoftDevice NVIC_SetPriority(USBD_IRQn, USB_NVIC_PRIO); NVIC_ClearPendingIRQ(USBD_IRQn); -- cgit v1.3.1