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:
parent
962b0efaaf
commit
08bc67c0b6
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -27,6 +27,8 @@ void board_init(void)
|
||||
/* initialize the CPU */
|
||||
cpu_init();
|
||||
|
||||
#ifndef RIOTBOOT
|
||||
/* perform common board initialization */
|
||||
board_common_init();
|
||||
#endif
|
||||
}
|
||||
|
@ -27,6 +27,8 @@ void board_init(void)
|
||||
/* initialize the CPU */
|
||||
cpu_init();
|
||||
|
||||
#ifndef RIOTBOOT
|
||||
/* perform common board initialization */
|
||||
board_common_init();
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user