1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards+efm32: skip board initialization when in bootloader

This commit is contained in:
Bas Stottelaar 2019-09-26 23:32:26 +02:00
parent 962b0efaaf
commit 08bc67c0b6
7 changed files with 14 additions and 0 deletions

View File

@ -26,7 +26,9 @@ void board_init(void)
/* initialize the CPU */
cpu_init();
#ifndef RIOTBOOT
/* initialize the LEDs */
gpio_init(LED0_PIN, GPIO_OUT);
gpio_init(LED1_PIN, GPIO_OUT);
#endif
}

View File

@ -28,6 +28,7 @@ void board_init(void)
/* initialize the CPU */
cpu_init();
#ifndef RIOTBOOT
/* perform common board initialization */
board_common_init();
@ -36,4 +37,5 @@ void board_init(void)
gpio_init(SI7021_EN_PIN, GPIO_OUT);
gpio_set(SI7021_EN_PIN);
#endif
#endif
}

View File

@ -28,6 +28,7 @@ void board_init(void)
/* initialize the CPU */
cpu_init();
#ifndef RIOTBOOT
/* perform common board initialization */
board_common_init();
@ -36,4 +37,5 @@ void board_init(void)
gpio_init(SI7021_EN_PIN, GPIO_OUT);
gpio_set(SI7021_EN_PIN);
#endif
#endif
}

View File

@ -32,6 +32,7 @@ void board_init(void)
/* initialize the CPU */
cpu_init();
#ifndef RIOTBOOT
/* perform common board initialization */
board_common_init();
@ -61,4 +62,5 @@ void board_init(void)
(RGB_LED4_ENABLED << RGB_LED4_EN_BIT));
#endif
#endif
#endif
}

View File

@ -28,6 +28,7 @@ void board_init(void)
/* initialize the CPU */
cpu_init();
#ifndef RIOTBOOT
/* perform common board initialization */
board_common_init();
@ -36,4 +37,5 @@ void board_init(void)
gpio_init(SI7021_EN_PIN, GPIO_OUT);
gpio_set(SI7021_EN_PIN);
#endif
#endif
}

View File

@ -27,6 +27,8 @@ void board_init(void)
/* initialize the CPU */
cpu_init();
#ifndef RIOTBOOT
/* perform common board initialization */
board_common_init();
#endif
}

View File

@ -27,6 +27,8 @@ void board_init(void)
/* initialize the CPU */
cpu_init();
#ifndef RIOTBOOT
/* perform common board initialization */
board_common_init();
#endif
}