nrf5x clean up

This commit is contained in:
hathach 2018-04-16 18:42:29 +07:00
parent 1954a73536
commit 8c79073fa6
1 changed files with 2 additions and 0 deletions

View File

@ -353,6 +353,7 @@ bool dcd_edpt_busy (uint8_t rhport, uint8_t ep_addr)
/* /*
*------------------------------------------------------------------*/ *------------------------------------------------------------------*/
#if ERRATA_104_FIX
static uint16_t frame_sofar(uint16_t fr) static uint16_t frame_sofar(uint16_t fr)
{ {
uint16_t diff = (uint16_t) NRF_USBD->FRAMECNTR; uint16_t diff = (uint16_t) NRF_USBD->FRAMECNTR;
@ -367,6 +368,7 @@ static uint16_t frame_sofar(uint16_t fr)
return diff; return diff;
} }
#endif
void USBD_IRQHandler(void) void USBD_IRQHandler(void)
{ {