mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-21 03:40:52 +00:00
commit
002ca345b8
@ -55,6 +55,12 @@ const uint8_t dcd_data[] = { 0x00 };
|
||||
|
||||
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
|
||||
BOARD_BootClockRUN();
|
||||
SystemCoreClockUpdate();
|
||||
|
Loading…
x
Reference in New Issue
Block a user