From ec62c6c401ae7c9e71e31f99a3da2f52bf32dc61 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 4 Dec 2012 22:30:23 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4872 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/SAM4L/hal_lld.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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 + } /** -- cgit v1.2.3