[riot-notifications] [RIOT-OS/RIOT] cpu/stm32: optimize stop mode for stm32f* (#11758)

Kaspar Schleiser notifications at github.com
Tue Jul 2 12:22:12 CEST 2019


kaspar030 commented on this pull request.



> +#define GPIO_CLK_ENR_MASK     (0x0000FFFF)
+#elif defined(CPU_FAM_STM32F1)
+#define GPIO_CLK              (APB2)
+#define GPIO_CLK_ENR          (RCC->APB2ENR)
+#define GPIO_CLK_ENR_MASK     (0x000001FC)
+#endif
+
+/**
+ * @brief   Initialize gpio to AIN
+ *
+ * stm32f need to have all there pins initialized to AIN so the consumption
+ * of the input Schmitt trigger is saved when running in STOP mode.
+ *
+ * @see https://comm.eefocus.com/media/download/index/id-1013834
+ */
+void _gpio_init_ain(void)

only static should suffice

-- 
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/11758#discussion_r299411682
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190702/14a74bb0/attachment.html>


More information about the notifications mailing list