aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/SPC560Pxx
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-10-01 14:05:32 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-10-01 14:05:32 +0000
commit60cd6f958b431b1f8268302b0636fffb7a71c538 (patch)
tree98d1d902ea246c57b4e25c349d8c14a2332da892 /os/hal/platforms/SPC560Pxx
parent4becbef6de9e4b5d6b8f027f91de846b4702a1cb (diff)
downloadChibiOS-60cd6f958b431b1f8268302b0636fffb7a71c538.tar.gz
ChibiOS-60cd6f958b431b1f8268302b0636fffb7a71c538.tar.bz2
ChibiOS-60cd6f958b431b1f8268302b0636fffb7a71c538.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4730 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/SPC560Pxx')
-rw-r--r--os/hal/platforms/SPC560Pxx/hal_lld.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/os/hal/platforms/SPC560Pxx/hal_lld.c b/os/hal/platforms/SPC560Pxx/hal_lld.c
index 7f340e6fc..822e75cb2 100644
--- a/os/hal/platforms/SPC560Pxx/hal_lld.c
+++ b/os/hal/platforms/SPC560Pxx/hal_lld.c
@@ -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 */
}