From f470e9a9cd8f39c742a11216563f1d88aa6023b9 Mon Sep 17 00:00:00 2001 From: Conor Patrick Date: Wed, 6 Feb 2019 18:05:22 -0500 Subject: [PATCH] dont need to init clock at first in bootloader --- targets/stm32l432/bootloader/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/targets/stm32l432/bootloader/main.c b/targets/stm32l432/bootloader/main.c index d1325af..2c419a7 100644 --- a/targets/stm32l432/bootloader/main.c +++ b/targets/stm32l432/bootloader/main.c @@ -24,6 +24,7 @@ #include #include "stm32l4xx_ll_rcc.h" +#include "stm32l4xx_ll_gpio.h" #include "stm32l4xx.h" #include "cbor.h" @@ -85,8 +86,9 @@ int main(int argc, char * argv[]) ); // device_init(); - SystemClock_Config_LF(); + init_gpio(); + init_millisecond_timer(1); #if DEBUG_LEVEL > 0