sam4e8e: Enable SAM4 cache at startup

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor authored and KevinOConnor committed 2018-10-22 11:16:18 -04:00
1 parent 7fac0de1f8
commit 34c3cb5c01
1 file changed
+6
+6
View File
@@ -43,6 +43,12 @@ int
main(void)
{
SystemInit();
// Enable Cache
if (!(CMCC->CMCC_SR & CMCC_SR_CSTS))
CMCC->CMCC_CTRL = CMCC_CTRL_CEN;
// Start main loop
sched_main();
return 0;
}