mirror of
https://github.com/hathach/tinyusb.git
synced 2025-05-09 15:21:21 +08:00
commit
002ca345b8
@ -55,6 +55,12 @@ const uint8_t dcd_data[] = { 0x00 };
|
|||||||
|
|
||||||
void board_init(void)
|
void board_init(void)
|
||||||
{
|
{
|
||||||
|
// make sure the dcache is on.
|
||||||
|
#if defined(__DCACHE_PRESENT) && __DCACHE_PRESENT
|
||||||
|
if (SCB_CCR_DC_Msk != (SCB_CCR_DC_Msk & SCB->CCR))
|
||||||
|
SCB_EnableDCache();
|
||||||
|
#endif
|
||||||
|
|
||||||
// Init clock
|
// Init clock
|
||||||
BOARD_BootClockRUN();
|
BOARD_BootClockRUN();
|
||||||
SystemCoreClockUpdate();
|
SystemCoreClockUpdate();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user