diff --git a/boards/f4vi1/board.c b/boards/f4vi1/board.c index a390ca792ef4..ac3a96cda822 100644 --- a/boards/f4vi1/board.c +++ b/boards/f4vi1/board.c @@ -24,11 +24,11 @@ void board_init(void) { + /* initialize the CPU */ + cpu_init(); + /* initialize the boards LEDs */ gpio_init(LED0_PIN, GPIO_OUT); gpio_init(LED1_PIN, GPIO_OUT); gpio_init(LED2_PIN, GPIO_OUT); - - /* initialize the CPU */ - cpu_init(); } diff --git a/boards/limifrog-v1/board.c b/boards/limifrog-v1/board.c index ac52819c419c..84171eb4d453 100644 --- a/boards/limifrog-v1/board.c +++ b/boards/limifrog-v1/board.c @@ -24,8 +24,9 @@ void board_init(void) { - /* initialize the boards LEDs */ - gpio_init(LED0_PIN, GPIO_OUT); /* initialize the CPU */ cpu_init(); + + /* initialize the boards LEDs */ + gpio_init(LED0_PIN, GPIO_OUT); } diff --git a/boards/p-l496g-cell02/board.c b/boards/p-l496g-cell02/board.c index 3a3a0bd90b70..ee27df676632 100644 --- a/boards/p-l496g-cell02/board.c +++ b/boards/p-l496g-cell02/board.c @@ -23,10 +23,10 @@ void board_init(void) { + /* initialize the CPU */ + cpu_init(); + /* initialize LEDs */ gpio_init(LED0_PIN, GPIO_OUT); gpio_init(LED1_PIN, GPIO_OUT); - - /* initialize the CPU */ - cpu_init(); } diff --git a/boards/spark-core/board.c b/boards/spark-core/board.c index 16b2423d548a..854f37099572 100644 --- a/boards/spark-core/board.c +++ b/boards/spark-core/board.c @@ -24,6 +24,9 @@ void board_init(void) { + /* initialize the CPU */ + cpu_init(); + /* initialize the boards LEDs */ gpio_init(LED0_PIN, GPIO_OUT); gpio_init(LED1_PIN, GPIO_OUT); @@ -34,8 +37,6 @@ void board_init(void) gpio_set(LED2_PIN); gpio_set(LED3_PIN); - /* initialize the CPU */ - cpu_init(); /* disable systick interrupt, set by the spark bootloader */ SysTick->CTRL = 0; /* signal to spark bootloader: do not enable IWDG! set Stop Mode Flag! */ diff --git a/boards/stm32f0discovery/board.c b/boards/stm32f0discovery/board.c index 64eea24f92a2..b593318104fe 100644 --- a/boards/stm32f0discovery/board.c +++ b/boards/stm32f0discovery/board.c @@ -23,10 +23,10 @@ void board_init(void) { + /* initialize the CPU */ + cpu_init(); + /* initialize the boards LEDs */ gpio_init(LED0_PIN, GPIO_OUT); gpio_init(LED1_PIN, GPIO_OUT); - - /* initialize the CPU */ - cpu_init(); } diff --git a/boards/stm32f3discovery/board.c b/boards/stm32f3discovery/board.c index 4960cfaacc6d..fb558a9f7801 100644 --- a/boards/stm32f3discovery/board.c +++ b/boards/stm32f3discovery/board.c @@ -23,6 +23,9 @@ void board_init(void) { + /* initialize the CPU */ + cpu_init(); + /* initialize the boards LEDs */ gpio_init(LED0_PIN, GPIO_OUT); gpio_init(LED1_PIN, GPIO_OUT); @@ -32,7 +35,4 @@ void board_init(void) gpio_init(LED5_PIN, GPIO_OUT); gpio_init(LED6_PIN, GPIO_OUT); gpio_init(LED7_PIN, GPIO_OUT); - - /* initialize the CPU */ - cpu_init(); } diff --git a/boards/stm32f429i-disc1/board.c b/boards/stm32f429i-disc1/board.c index 1fe72e373fcf..1a2f3e5e7fbb 100644 --- a/boards/stm32f429i-disc1/board.c +++ b/boards/stm32f429i-disc1/board.c @@ -23,10 +23,10 @@ void board_init(void) { + /* initialize the CPU */ + cpu_init(); + /* initialize the boards LEDs */ gpio_init(LED0_PIN, GPIO_OUT); gpio_init(LED1_PIN, GPIO_OUT); - - /* initialize the CPU */ - cpu_init(); } diff --git a/boards/stm32f4discovery/board.c b/boards/stm32f4discovery/board.c index b06836cfbd07..160d3f3fde65 100644 --- a/boards/stm32f4discovery/board.c +++ b/boards/stm32f4discovery/board.c @@ -23,12 +23,12 @@ void board_init(void) { + /* initialize the CPU */ + cpu_init(); + /* initialize the boards LEDs */ gpio_init(LED0_PIN, GPIO_OUT); gpio_init(LED1_PIN, GPIO_OUT); gpio_init(LED2_PIN, GPIO_OUT); gpio_init(LED3_PIN, GPIO_OUT); - - /* initialize the CPU */ - cpu_init(); } diff --git a/boards/stm32l0538-disco/board.c b/boards/stm32l0538-disco/board.c index a1d9fc06e1b0..e3cfe5385314 100644 --- a/boards/stm32l0538-disco/board.c +++ b/boards/stm32l0538-disco/board.c @@ -23,10 +23,10 @@ void board_init(void) { + /* initialize the CPU */ + cpu_init(); + /* initialize the boards LEDs */ gpio_init(LED0_PIN, GPIO_OUT); gpio_init(LED1_PIN, GPIO_OUT); - - /* initialize the CPU */ - cpu_init(); } diff --git a/boards/stm32l476g-disco/board.c b/boards/stm32l476g-disco/board.c index 12b83403adc1..b8769c974d4a 100644 --- a/boards/stm32l476g-disco/board.c +++ b/boards/stm32l476g-disco/board.c @@ -23,10 +23,10 @@ void board_init(void) { + /* initialize the CPU */ + cpu_init(); + /* initialize LEDs */ gpio_init(LED0_PIN, GPIO_OUT); gpio_init(LED1_PIN, GPIO_OUT); - - /* initialize the CPU */ - cpu_init(); }