1
0
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:
Alexandre Abadie 2017-04-03 10:56:41 +02:00
parent 94b38bf7c7
commit 2abce109b5
5 changed files with 19 additions and 5 deletions

View File

@ -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

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}