aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-12-17 13:15:12 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-12-17 13:15:12 +0000
commit1f674a970324d5730f6178b210fe9f796587f246 (patch)
tree7cf3aba4097e17228c3debda4ac078e3e85bb953 /os/hal/platforms
parent3341330bd99b6a55ddf79e00995a2a2b11bb1206 (diff)
downloadChibiOS-1f674a970324d5730f6178b210fe9f796587f246.tar.gz
ChibiOS-1f674a970324d5730f6178b210fe9f796587f246.tar.bz2
ChibiOS-1f674a970324d5730f6178b210fe9f796587f246.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4941 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms')
-rw-r--r--os/hal/platforms/SPC563Mxx/hal_lld.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/os/hal/platforms/SPC563Mxx/hal_lld.c b/os/hal/platforms/SPC563Mxx/hal_lld.c
index 921fc744f..3ffcfd0b1 100644
--- a/os/hal/platforms/SPC563Mxx/hal_lld.c
+++ b/os/hal/platforms/SPC563Mxx/hal_lld.c
@@ -114,6 +114,7 @@ void spc_clock_init(void) {
/* PLL activation.*/
FMPLL.ESYNCR1.B.EMODE = 1; /* Enhanced mode on. */
FMPLL.ESYNCR1.B.CLKCFG &= 1; /* Bypass mode, PLL off.*/
+#if !SPC5_CLK_BYPASS
FMPLL.ESYNCR1.B.CLKCFG |= 2; /* PLL on. */
FMPLL.ESYNCR1.B.EPREDIV = SPC5_CLK_PREDIV;
FMPLL.ESYNCR1.B.EMFD = SPC5_CLK_MFD;
@@ -121,6 +122,7 @@ void spc_clock_init(void) {
while (!FMPLL.SYNSR.B.LOCK)
;
FMPLL.ESYNCR1.B.CLKCFG |= 4; /* Clock from the PLL. */
+#endif /* !SPC5_CLK_BYPASS */
#endif /* !SPC5_NO_INIT */
}