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

Vincent Dupont notifications at github.com
Tue Apr 9 14:43:17 CEST 2019


vincent-d requested changes 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 */
     stmclk_init_sysclk();
+
+#if defined(CPU_FAM_STM32L1)

This could be applied to STM32F* families as well. We do this in our project on the board init with a stm32f4. 

> +#include "shell.h"
+
+static int cmd_check(int argc, char **argv)
+{
+    if (argc < 2) {
+        printf("usage: %s <hex address>\n", argv[0]);
+        printf("\t example: %s 0x08080000\n", argv[0]);
+        return 1;
+    }
+
+    char *address;
+    uint32_t address_value = strtol(argv[1], NULL, 0);
+
+    address = (char *)address_value;
+
+    if (cpu_check_address(address))

coding style: missing braces

-- 
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/11359#pullrequestreview-224283439
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190409/88c9d87c/attachment.html>


More information about the notifications mailing list