Merge pull request #6813 from aabadie/fix_nucleo_led_spi

boards/nucleos: deactivate LED0 auto init by default
pr/rotary
Alexandre Abadie 6 years ago committed by GitHub
commit b1eaed72e8

@ -31,11 +31,13 @@ extern "C" {
*/
static const saul_gpio_params_t saul_gpio_params[] =
{
#ifdef AUTO_INIT_LED0
{
.name = "LED(green)",
.pin = LED0_PIN,
.mode = GPIO_OUT
},
#endif
{
.name = "Button(B1 User)",
.pin = BTN_B1_PIN,

@ -26,9 +26,12 @@
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
}

@ -26,9 +26,12 @@
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
}

@ -25,9 +25,12 @@
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
}

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

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

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

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

@ -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,9 +26,12 @@
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
}

@ -26,9 +26,12 @@
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
}

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

Loading…
Cancel
Save