1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #6813 from aabadie/fix_nucleo_led_spi

boards/nucleos: deactivate LED0 auto init by default
This commit is contained in:
Alexandre Abadie 2017-03-30 16:49:31 +02:00 committed by GitHub
commit b1eaed72e8
16 changed files with 72 additions and 25 deletions

View File

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

View File

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

View File

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

View File

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

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

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

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

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

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

View File

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

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
}