Skip to content

Commit

Permalink
boards/stm32: initialize board gpios after cpu
Browse files Browse the repository at this point in the history
  • Loading branch information
aabadie committed Oct 4, 2019
1 parent 825303c commit 5dfe80d
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 28 deletions.
6 changes: 3 additions & 3 deletions boards/f4vi1/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
5 changes: 3 additions & 2 deletions boards/limifrog-v1/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
6 changes: 3 additions & 3 deletions boards/p-l496g-cell02/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
5 changes: 3 additions & 2 deletions boards/spark-core/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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! */
Expand Down
6 changes: 3 additions & 3 deletions boards/stm32f0discovery/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
6 changes: 3 additions & 3 deletions boards/stm32f3discovery/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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();
}
6 changes: 3 additions & 3 deletions boards/stm32f429i-disc1/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
6 changes: 3 additions & 3 deletions boards/stm32f4discovery/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
6 changes: 3 additions & 3 deletions boards/stm32l0538-disco/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
6 changes: 3 additions & 3 deletions boards/stm32l476g-disco/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

0 comments on commit 5dfe80d

Please sign in to comment.