Browse Source

boards/nucleo32s: skip LED0 auto init by default

pr/rotary
Alexandre Abadie 6 years ago
parent
commit
2abce109b5
  1. 2
      boards/nucleo32-common/include/gpio_params.h
  2. 5
      boards/nucleo32-f031/board.c
  3. 5
      boards/nucleo32-f042/board.c
  4. 5
      boards/nucleo32-f303/board.c
  5. 7
      boards/nucleo32-l031/board.c

2
boards/nucleo32-common/include/gpio_params.h

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

5
boards/nucleo32-f031/board.c

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

5
boards/nucleo32-f042/board.c

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

5
boards/nucleo32-f303/board.c

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

7
boards/nucleo32-l031/board.c

@ -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…
Cancel
Save