[riot-notifications] [RIOT-OS/RIOT] cpu/stm32l1: optimize power consumption (#11359)

Francisco notifications at github.com
Fri Apr 12 14:14:01 CEST 2019

fjmolinas commented on this pull request.

> @@ -49,6 +50,44 @@ void cpu_init(void)
     periph_clk_en(APB1, BIT_APB_PWREN);
     /* initialize the system clock as configured in the periph_conf.h */
+#if defined(CPU_FAM_STM32L1)
+    uint32_t ahb_gpio_clocks;
+    GPIO_TypeDef *port;
+    /* enable GPIO clock and save GPIO clock configuration */
+    ahb_gpio_clocks = RCC->AHBENR & 0xFF;

There is not definition in the cmsis header file, I also checked the newer versions and there isn't one.

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...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190412/47d8b809/attachment.html>

More information about the notifications mailing list