[riot-notifications] [RIOT-OS/RIOT] cpu/stm32f0: add periph_pm support (#9521)
notifications at github.com
Mon Mar 18 11:19:57 CET 2019
vincent-d commented on this pull request.
> + */
+#if defined(CPU_FAM_STM32L0) || defined(CPU_FAM_STM32L1)
+#define PM_STOP_CLEAR (PWR_CR_LPSDSR | PWR_CR_PDDS)
+#define PM_STOP_CLEAR (PWR_CR_LPDS | PWR_CR_PDDS)
+static inline uint32_t _ewup_config(void)
+ uint32_t tmp = 0;
+ tmp |= PM_EWUP_CONFIG;
+ tmp |= PWR_CSR_EWUP;
I think this has been inherited from the previous versions which used to enable all wake-up pins.
I don't mind changing to use `PM_EWUP_CONFIG` only.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications