aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/SPC563Mxx/hal_lld.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-06-22 07:51:40 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-06-22 07:51:40 +0000
commitcb5dc8279181e6e5554d48f7495fa12841354b4b (patch)
tree2d258651abdf6aa9cc50579c5b34f5b5282de061 /os/hal/platforms/SPC563Mxx/hal_lld.c
parent83da11cab02e6e366ab1ed5913d0db70058ef4d6 (diff)
downloadChibiOS-cb5dc8279181e6e5554d48f7495fa12841354b4b.tar.gz
ChibiOS-cb5dc8279181e6e5554d48f7495fa12841354b4b.tar.bz2
ChibiOS-cb5dc8279181e6e5554d48f7495fa12841354b4b.zip
Added eMIOS global prescaler setting to SPC563Mxx and SPC564Axx devices HAL.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5867 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/SPC563Mxx/hal_lld.c')
-rw-r--r--os/hal/platforms/SPC563Mxx/hal_lld.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/os/hal/platforms/SPC563Mxx/hal_lld.c b/os/hal/platforms/SPC563Mxx/hal_lld.c
index 22979e61b..5eb36bdd4 100644
--- a/os/hal/platforms/SPC563Mxx/hal_lld.c
+++ b/os/hal/platforms/SPC563Mxx/hal_lld.c
@@ -95,6 +95,9 @@ void hal_lld_init(void) {
INTC.CPR.R = 0;
INTC.IACKR.R = (uint32_t)_vectors;
+ /* eMIOS initialization.*/
+ EMIOS.MCR.R = (1U << 26) | SPC5_EMIOS_GPRE; /* GPREN and GPRE. */
+
/* EDMA initialization.*/
edmaInit();
}