diff options
author | iabdalkader <i.abdalkader@gmail.com> | 2020-12-02 23:36:47 +0200 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2020-12-07 17:00:42 +1100 |
commit | 7b9b6d080a2d7de6db73fe4caaca29f54a1d716d (patch) | |
tree | 1e4f1da61eaff747d5b7f79bf3da5ee97d7fb3c5 | |
parent | 8add94e94e906ecf6c46d49127a8a0590be308b8 (diff) |
stm32/powerctrl: Set H7 RTC wakeup flags.
-rw-r--r-- | ports/stm32/powerctrl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ports/stm32/powerctrl.c b/ports/stm32/powerctrl.c index ce2f6e190..076215ba9 100644 --- a/ports/stm32/powerctrl.c +++ b/ports/stm32/powerctrl.c @@ -705,7 +705,8 @@ void powerctrl_enter_standby_mode(void) { // clear global wake-up flag PWR->CR2 |= PWR_CR2_CWUPF6 | PWR_CR2_CWUPF5 | PWR_CR2_CWUPF4 | PWR_CR2_CWUPF3 | PWR_CR2_CWUPF2 | PWR_CR2_CWUPF1; #elif defined(STM32H7) - // TODO + EXTI_D1->PR1 = 0x3fffff; + PWR->WKUPCR |= PWR_WAKEUP_FLAG1 | PWR_WAKEUP_FLAG2 | PWR_WAKEUP_FLAG3 | PWR_WAKEUP_FLAG4 | PWR_WAKEUP_FLAG5 | PWR_WAKEUP_FLAG6; #elif defined(STM32L4) || defined(STM32WB) // clear all wake-up flags PWR->SCR |= PWR_SCR_CWUF5 | PWR_SCR_CWUF4 | PWR_SCR_CWUF3 | PWR_SCR_CWUF2 | PWR_SCR_CWUF1; |