aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/SPC560BCxx/hal_lld.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-02-19 10:23:33 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-02-19 10:23:33 +0000
commit9c15492e2d30c70c95e3b7f3b42f7d86bb24f2d6 (patch)
tree22a931b9fda6b3762b1e7277c4d8c280c4373cd5 /os/hal/platforms/SPC560BCxx/hal_lld.c
parent3b951cfb3744648a4ad18788dc373d7fa880a964 (diff)
downloadChibiOS-9c15492e2d30c70c95e3b7f3b42f7d86bb24f2d6.tar.gz
ChibiOS-9c15492e2d30c70c95e3b7f3b42f7d86bb24f2d6.tar.bz2
ChibiOS-9c15492e2d30c70c95e3b7f3b42f7d86bb24f2d6.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5257 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/SPC560BCxx/hal_lld.c')
-rw-r--r--os/hal/platforms/SPC560BCxx/hal_lld.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/os/hal/platforms/SPC560BCxx/hal_lld.c b/os/hal/platforms/SPC560BCxx/hal_lld.c
index aa4c7f538..c24eb1ee1 100644
--- a/os/hal/platforms/SPC560BCxx/hal_lld.c
+++ b/os/hal/platforms/SPC560BCxx/hal_lld.c
@@ -144,6 +144,11 @@ void spc_clock_init(void) {
CGM.OSC_CTL.B.OSCBYP = TRUE;
#endif /* SPC5_OSC_BYPASS */
+ /* Setting the various dividers and source selectors.*/
+ CGM.SC_DC[0].R = SPC5_CGM_SC_DC0;
+ CGM.SC_DC[1].R = SPC5_CGM_SC_DC1;
+ CGM.SC_DC[2].R = SPC5_CGM_SC_DC2;
+
/* Initialization of the FMPLLs settings.*/
CGM.FMPLL_CR.R = SPC5_FMPLL0_ODF |
((SPC5_FMPLL0_IDF_VALUE - 1) << 26) |