git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4872 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2012-12-04 22:30:23 +00:00
parent d65e5e6b0d
commit ec62c6c401
1 changed files with 8 additions and 0 deletions

View File

@ -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
}
/**