[riot-notifications] [RIOT-OS/RIOT] cpu/stm32f0: add periph_pm support (#9521)

Vincent Dupont 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)
+#else
+#define PM_STOP_CLEAR   (PWR_CR_LPDS | PWR_CR_PDDS)
+#endif
+#endif
+
+static inline uint32_t _ewup_config(void)
+{
+    uint32_t tmp = 0;
+#ifdef PM_EWUP_CONFIG
+    tmp |= PM_EWUP_CONFIG;
+#elif defined(PWR_CSR_EWUP)
+    tmp |= PWR_CSR_EWUP;
+#else

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:
https://github.com/RIOT-OS/RIOT/pull/9521#discussion_r266372504
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190318/f03694ce/attachment.html>


More information about the notifications mailing list