aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/SAM4L/hal_lld.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-12-09 11:05:47 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-12-09 11:05:47 +0000
commit90d2c483540dfbdfe5e703fa8c830a7b22848cd7 (patch)
tree31f5ca3ec6fef8bd24e916622a44a0638d23445f /os/hal/platforms/SAM4L/hal_lld.c
parentdcf8830c452d9d19a10931fd0c400b46413b97b0 (diff)
downloadChibiOS-90d2c483540dfbdfe5e703fa8c830a7b22848cd7.tar.gz
ChibiOS-90d2c483540dfbdfe5e703fa8c830a7b22848cd7.tar.bz2
ChibiOS-90d2c483540dfbdfe5e703fa8c830a7b22848cd7.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4896 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/SAM4L/hal_lld.c')
-rw-r--r--os/hal/platforms/SAM4L/hal_lld.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/os/hal/platforms/SAM4L/hal_lld.c b/os/hal/platforms/SAM4L/hal_lld.c
index 608fb6fe7..69e408bec 100644
--- a/os/hal/platforms/SAM4L/hal_lld.c
+++ b/os/hal/platforms/SAM4L/hal_lld.c
@@ -121,6 +121,23 @@ void sam_clock_init(void) {
SAM_PM_UNLOCK((uint32_t)&PM->PM_PBDSEL);
PM->PM_PBDSEL = SAM_PBDSEL;
+ /* Switching to the selected clock source, enabling it if necessary.*/
+#if SAM_MCCTRL_MCSEL == SAM_MCSEL_RCSYS
+ /* Nothing to do, already running from SYSIRC.*/
+#endif
+#if SAM_MCCTRL_MCSEL == SAM_MCSEL_OSC0
+#endif
+#if SAM_MCCTRL_MCSEL == SAM_MCSEL_PLL
+#endif
+#if SAM_MCCTRL_MCSEL == SAM_MCSEL_DFLL
+#endif
+#if SAM_MCCTRL_MCSEL == SAM_MCSEL_RC80M
+#endif
+#if SAM_MCCTRL_MCSEL == SAM_MCSEL_RCFAST
+#endif
+#if SAM_MCCTRL_MCSEL == SAM_MCSEL_RC1M
+#endif
+
#endif /* SAM_NO_INIT */
}