aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/SPC560Pxx
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-02-11 08:37:45 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-02-11 08:37:45 +0000
commit845ca3e5f4ca6b70459df4a82ed2be942cf223ee (patch)
tree74fd6151bb0eccc1380f9e12b89071fc05335627 /os/hal/platforms/SPC560Pxx
parent58d24be416d70e8543e9c54f352d7db4a42da7f7 (diff)
downloadChibiOS-845ca3e5f4ca6b70459df4a82ed2be942cf223ee.tar.gz
ChibiOS-845ca3e5f4ca6b70459df4a82ed2be942cf223ee.tar.bz2
ChibiOS-845ca3e5f4ca6b70459df4a82ed2be942cf223ee.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5150 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/SPC560Pxx')
-rw-r--r--os/hal/platforms/SPC560Pxx/hal_lld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/platforms/SPC560Pxx/hal_lld.c b/os/hal/platforms/SPC560Pxx/hal_lld.c
index 2eb9e0e53..f63573ad6 100644
--- a/os/hal/platforms/SPC560Pxx/hal_lld.c
+++ b/os/hal/platforms/SPC560Pxx/hal_lld.c
@@ -124,7 +124,7 @@ void spc_clock_init(void) {
(SPC5_FMPLL0_NDIV_VALUE << 16);
CGM.FMPLL[0].MR.R = 0; /* TODO: Add a setting. */
CGM.FMPLL[1].CR.R = SPC5_FMPLL1_ODF |
- (SPC5_FMPLL1_IDF_VALUE << 26) |
+ ((SPC5_FMPLL1_IDF_VALUE - 1) << 26) |
(SPC5_FMPLL1_NDIV_VALUE << 16);
CGM.FMPLL[1].MR.R = 0; /* TODO: Add a setting. */