aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-12-04 22:30:23 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-12-04 22:30:23 +0000
commitec62c6c401ae7c9e71e31f99a3da2f52bf32dc61 (patch)
treef0cacf677171cc276d21125e7592ee82adbd6b0a /os
parentd65e5e6b0d687a87abfad5f92a27e5920314f0fa (diff)
downloadChibiOS-ec62c6c401ae7c9e71e31f99a3da2f52bf32dc61.tar.gz
ChibiOS-ec62c6c401ae7c9e71e31f99a3da2f52bf32dc61.tar.bz2
ChibiOS-ec62c6c401ae7c9e71e31f99a3da2f52bf32dc61.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4872 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r--os/hal/platforms/SAM4L/hal_lld.c8
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
+
}
/**