1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/samXXX-xpro: clear LED on init

The LED on the sam-xpro boards is active low, so we have
to turn it off manually, otherwise it's always on.
This commit is contained in:
Benjamin Valentin 2020-02-24 19:39:00 +01:00
parent 32e7e840fc
commit bc5ac92cff
5 changed files with 8 additions and 3 deletions

View File

@ -34,11 +34,11 @@ void board_init(void)
}
/**
* @brief Initialize the boards on-board LED
*/
void led_init(void)
{
gpio_init(GPIO_PIN(PA, 7), GPIO_OUT);
gpio_init(LED0_PIN, GPIO_OUT);
LED0_OFF;
}

View File

@ -28,6 +28,7 @@ void board_init(void)
{
/* initialize the on-board LED */
gpio_init(LED0_PIN, GPIO_OUT);
LED0_OFF;
/* initialize the on-board button */
gpio_init(BTN0_PIN, BTN0_MODE);

View File

@ -25,6 +25,7 @@ void board_init(void)
{
/* initialize the on-board LED */
gpio_init(LED0_PIN, GPIO_OUT);
LED0_OFF;
/* initialize the on-board button */
gpio_init(BTN0_PIN, BTN0_MODE);

View File

@ -44,5 +44,6 @@ void board_init(void)
*/
void led_init(void)
{
gpio_init(GPIO_PIN(PB,10), GPIO_OUT);
gpio_init(LED0_PIN, GPIO_OUT);
LED0_OFF;
}

View File

@ -39,6 +39,8 @@ void board_init(void)
{
/* initialize the on-board LED */
gpio_init(LED0_PIN, GPIO_OUT);
LED0_OFF;
/* initialize the on-board antenna switch */
gpio_init(RFCTL1_PIN, GPIO_OUT);
gpio_init(RFCTL2_PIN, GPIO_OUT);