mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-22 15:40:06 +00:00
fix build with gd32vf103
This commit is contained in:
parent
4ac136d81d
commit
67e80f60e3
@ -96,6 +96,9 @@
|
|||||||
#elif CFG_TUSB_MCU == OPT_MCU_GD32VF103
|
#elif CFG_TUSB_MCU == OPT_MCU_GD32VF103
|
||||||
#include "synopsys_common.h"
|
#include "synopsys_common.h"
|
||||||
|
|
||||||
|
// for remote wakeup delay
|
||||||
|
#define __NOP() __asm volatile ("nop")
|
||||||
|
|
||||||
// These numbers are the same for the whole GD32VF103 family.
|
// These numbers are the same for the whole GD32VF103 family.
|
||||||
#define OTG_FS_IRQn 86
|
#define OTG_FS_IRQn 86
|
||||||
#define EP_MAX_FS 4
|
#define EP_MAX_FS 4
|
||||||
@ -559,7 +562,10 @@ static void remote_wakeup_delay(void)
|
|||||||
{
|
{
|
||||||
// try to delay for 1 ms
|
// try to delay for 1 ms
|
||||||
uint32_t count = SystemCoreClock / 1000;
|
uint32_t count = SystemCoreClock / 1000;
|
||||||
while(count--) __NOP();
|
while ( count-- )
|
||||||
|
{
|
||||||
|
__NOP();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void dcd_remote_wakeup(uint8_t rhport)
|
void dcd_remote_wakeup(uint8_t rhport)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user