This is DEEP power down bit, not "power down".
This commit is contained in:
parent
9d13c3c06f
commit
361f3d6f4c
2 changed files with 2 additions and 2 deletions
|
@ -155,7 +155,7 @@ void enter_deep_power_down(void)
|
|||
while (!(sys_config->main_clk_upd_en & 0x01));
|
||||
|
||||
/* Enter deep power-down on next wfi() call */
|
||||
pmu->power_ctrl |= LPC_PD_EN;
|
||||
pmu->power_ctrl |= LPC_DPD_EN;
|
||||
scb->scr |= SCB_SCR_SLEEPDEEP;
|
||||
|
||||
/* Power down everything but the IRC and Flash */
|
||||
|
|
|
@ -284,7 +284,7 @@ struct lpc_pm_unit
|
|||
#define LPC_PMU ((struct lpc_pm_unit *) LPC_PMU_BASE)
|
||||
|
||||
/* Power control register */
|
||||
#define LPC_PD_EN (0x01 << 1)
|
||||
#define LPC_DPD_EN (0x01 << 1)
|
||||
#define LPC_SLEEP_FLAG (0x01 << 8)
|
||||
#define LPC_DPD_FLAG (0x01 << 11)
|
||||
/* System config register */
|
||||
|
|
Loading…
Reference in a new issue