mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
nrf5x clean up
This commit is contained in:
parent
1954a73536
commit
8c79073fa6
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user