git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4830 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
c57e384229
commit
59bb7ed0c6
|
@ -104,6 +104,13 @@
|
||||||
SPC5_ME_MC_CFLAON_NORMAL | \
|
SPC5_ME_MC_CFLAON_NORMAL | \
|
||||||
SPC5_ME_MC_DFLAON_NORMAL | \
|
SPC5_ME_MC_DFLAON_NORMAL | \
|
||||||
SPC5_ME_MC_MVRON)
|
SPC5_ME_MC_MVRON)
|
||||||
|
#define SPC5_ME_STANDBY0_MC_BITS (SPC5_ME_MC_SYSCLK_FMPLL0 | \
|
||||||
|
SPC5_ME_MC_IRCON | \
|
||||||
|
SPC5_ME_MC_XOSC0ON | \
|
||||||
|
SPC5_ME_MC_PLL0ON | \
|
||||||
|
SPC5_ME_MC_CFLAON_NORMAL | \
|
||||||
|
SPC5_ME_MC_DFLAON_NORMAL | \
|
||||||
|
SPC5_ME_MC_MVRON)
|
||||||
#define SPC5_ME_RUN_PC0_BITS 0
|
#define SPC5_ME_RUN_PC0_BITS 0
|
||||||
#define SPC5_ME_RUN_PC1_BITS (SPC5_ME_RUN_PC_TEST | \
|
#define SPC5_ME_RUN_PC1_BITS (SPC5_ME_RUN_PC_TEST | \
|
||||||
SPC5_ME_RUN_PC_SAFE | \
|
SPC5_ME_RUN_PC_SAFE | \
|
||||||
|
|
|
@ -141,6 +141,7 @@ void spc_clock_init(void) {
|
||||||
ME.RUN[3].R = SPC5_ME_RUN3_MC_BITS; /* RUN0 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.HALT0.R = SPC5_ME_HALT0_MC_BITS; /* HALT0 run mode. */
|
||||||
ME.STOP0.R = SPC5_ME_STOP0_MC_BITS; /* STOP0 run mode. */
|
ME.STOP0.R = SPC5_ME_STOP0_MC_BITS; /* STOP0 run mode. */
|
||||||
|
ME.STANDBY0.R = SPC5_ME_STANDBY0_MC_BITS; /* STANDBY0 run mode. */
|
||||||
|
|
||||||
/* Peripherals run and low power modes initialization.*/
|
/* Peripherals run and low power modes initialization.*/
|
||||||
ME.RUNPC[0].R = SPC5_ME_RUN_PC0_BITS;
|
ME.RUNPC[0].R = SPC5_ME_RUN_PC0_BITS;
|
||||||
|
|
|
@ -407,6 +407,19 @@
|
||||||
SPC5_ME_MC_MVRON)
|
SPC5_ME_MC_MVRON)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief STANDBY0 mode settings.
|
||||||
|
*/
|
||||||
|
#if !defined(SPC5_ME_STANDBY0_MC_BITS) || defined(__DOXYGEN__)
|
||||||
|
#define SPC5_ME_STANDBY0_MC_BITS (SPC5_ME_MC_SYSCLK_FMPLL0 | \
|
||||||
|
SPC5_ME_MC_IRCON | \
|
||||||
|
SPC5_ME_MC_XOSC0ON | \
|
||||||
|
SPC5_ME_MC_PLL0ON | \
|
||||||
|
SPC5_ME_MC_CFLAON_NORMAL | \
|
||||||
|
SPC5_ME_MC_DFLAON_NORMAL | \
|
||||||
|
SPC5_ME_MC_MVRON)
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Peripheral mode 0 (run mode).
|
* @brief Peripheral mode 0 (run mode).
|
||||||
* @note Do not change this setting, it is expected to be the "never run"
|
* @note Do not change this setting, it is expected to be the "never run"
|
||||||
|
|
Loading…
Reference in New Issue