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

This commit is contained in:
gdisirio 2012-10-01 14:05:32 +00:00
parent 4becbef6de
commit 60cd6f958b
1 changed files with 6 additions and 0 deletions

View File

@ -168,6 +168,12 @@ void spc560p_clock_init(void) {
if (halSPC560PSetRunMode(SPC5_RUNMODE_DRUN) == CH_FAILED)
chSysHalt();
/* CFLASH settings calculated for a maximum clock of 64MHz.*/
CFLASH.PFCR0.B.BK0_APC = 2;
CFLASH.PFCR0.B.BK0_RWSC = 2;
CFLASH.PFCR1.B.BK1_APC = 2;
CFLASH.PFCR1.B.BK1_RWSC = 2;
#endif /* !SPC5_NO_INIT */
}