aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/SPC560Dxx/hal_lld.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/platforms/SPC560Dxx/hal_lld.c')
-rw-r--r--os/hal/platforms/SPC560Dxx/hal_lld.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/os/hal/platforms/SPC560Dxx/hal_lld.c b/os/hal/platforms/SPC560Dxx/hal_lld.c
index 87d2c88fa..b027e1ac4 100644
--- a/os/hal/platforms/SPC560Dxx/hal_lld.c
+++ b/os/hal/platforms/SPC560Dxx/hal_lld.c
@@ -146,9 +146,9 @@ void spc_clock_init(void) {
#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;
+ CGM.SC_DC0.R = SPC5_CGM_SC_DC0;
+ CGM.SC_DC1.R = SPC5_CGM_SC_DC1;
+ CGM.SC_DC2.R = SPC5_CGM_SC_DC2;
/* Initialization of the FMPLLs settings.*/
CGM.FMPLL_CR.R = SPC5_FMPLL0_ODF |
@@ -166,10 +166,10 @@ void spc_clock_init(void) {
ME.RUN[1].R = SPC5_ME_RUN1_MC_BITS; /* RUN1 run mode. */
ME.RUN[2].R = SPC5_ME_RUN2_MC_BITS; /* RUN2 run mode. */
ME.RUN[3].R = SPC5_ME_RUN3_MC_BITS; /* RUN0 run mode. */
- ME.HALT0.R = SPC5_ME_HALT0_MC_BITS; /* HALT0 run mode. */
- ME.STOP0.R = SPC5_ME_STOP0_MC_BITS; /* STOP0 run mode. */
- ME.STANDBY0.R = SPC5_ME_STANDBY0_MC_BITS; /* STANDBY0 run mode. */
- if (ME.IS.B.I_CONF) {
+ ME.HALT.R = SPC5_ME_HALT0_MC_BITS; /* HALT0 run mode. */
+ ME.STOP.R = SPC5_ME_STOP0_MC_BITS; /* STOP0 run mode. */
+ ME.STANDBY.R = SPC5_ME_STANDBY0_MC_BITS; /* STANDBY0 run mode. */
+ if (ME.IS.B.I_ICONF) {
/* Configuration rejected.*/
SPC5_CLOCK_FAILURE_HOOK();
}