diff options
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/platforms/SAM4L/hal_lld.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/os/hal/platforms/SAM4L/hal_lld.c b/os/hal/platforms/SAM4L/hal_lld.c index 02dbfb9a3..fbbaebcf8 100644 --- a/os/hal/platforms/SAM4L/hal_lld.c +++ b/os/hal/platforms/SAM4L/hal_lld.c @@ -55,6 +55,14 @@ void sam4l_clock_init(void) {
+#if SAM_USE_PICOCACHE
+ /* Enable the PicoCache.*/
+ sysclk_enable_peripheral_clock(HCACHE);
+ HCACHE->HCACHE_CTRL = HCACHE_CTRL_CEN_YES;
+ while ((HCACHE->HCACHE_SR & HCACHE_SR_CSTS_EN) == 0)
+ ;
+#endif
+
}
/**
|