mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-29 08:21:18 +01:00
boards/nucleo32s: skip LED0 auto init by default
This commit is contained in:
parent
94b38bf7c7
commit
2abce109b5
@ -31,11 +31,13 @@ extern "C" {
|
||||
*/
|
||||
static const saul_gpio_params_t saul_gpio_params[] =
|
||||
{
|
||||
#ifdef AUTO_INIT_LED0
|
||||
{
|
||||
.name = "LD3(green)",
|
||||
.pin = LED0_PIN,
|
||||
.mode = GPIO_OUT
|
||||
}
|
||||
#endif
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@ -28,6 +28,9 @@ void board_init(void)
|
||||
/* initialize the CPU */
|
||||
cpu_init();
|
||||
|
||||
/* initialize the boards LEDs */
|
||||
#ifdef AUTO_INIT_LED0
|
||||
/* The LED pin is also used for SPI, so we enable it
|
||||
only if explicitly wanted by the user */
|
||||
gpio_init(LED0_PIN, GPIO_OUT);
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -26,6 +26,9 @@ void board_init(void)
|
||||
/* initialize the CPU */
|
||||
cpu_init();
|
||||
|
||||
/* initialize the boards LEDs */
|
||||
#ifdef AUTO_INIT_LED0
|
||||
/* The LED pin is also used for SPI, so we enable it
|
||||
only if explicitly wanted by the user */
|
||||
gpio_init(LED0_PIN, GPIO_OUT);
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -26,6 +26,9 @@ void board_init(void)
|
||||
/* initialize the CPU */
|
||||
cpu_init();
|
||||
|
||||
/* initialize the boards LEDs */
|
||||
#ifdef AUTO_INIT_LED0
|
||||
/* The LED pin is also used for SPI, so we enable it
|
||||
only if explicitly wanted by the user */
|
||||
gpio_init(LED0_PIN, GPIO_OUT);
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -29,6 +29,9 @@ void board_init(void)
|
||||
/* initialize the boards LED */
|
||||
gpio_init(LED0_PIN, GPIO_OUT);
|
||||
|
||||
/* initialize the CPU */
|
||||
cpu_init();
|
||||
#ifdef AUTO_INIT_LED0
|
||||
/* The LED pin is also used for SPI, so we enable it
|
||||
only if explicitly wanted by the user */
|
||||
gpio_init(LED0_PIN, GPIO_OUT);
|
||||
#endif
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user