diff --git a/boards/common/saml1x/board.c b/boards/common/saml1x/board.c index 2aed9531f6..7ae43fde1e 100644 --- a/boards/common/saml1x/board.c +++ b/boards/common/saml1x/board.c @@ -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; } diff --git a/boards/samd21-xpro/board.c b/boards/samd21-xpro/board.c index 6bc1d2f114..7fd18a4dee 100644 --- a/boards/samd21-xpro/board.c +++ b/boards/samd21-xpro/board.c @@ -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); diff --git a/boards/same54-xpro/board.c b/boards/same54-xpro/board.c index a6863dc7a8..7d5eff3896 100644 --- a/boards/same54-xpro/board.c +++ b/boards/same54-xpro/board.c @@ -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); diff --git a/boards/saml21-xpro/board.c b/boards/saml21-xpro/board.c index 2b9184a954..753713ffb7 100644 --- a/boards/saml21-xpro/board.c +++ b/boards/saml21-xpro/board.c @@ -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; } diff --git a/boards/samr21-xpro/board.c b/boards/samr21-xpro/board.c index 0f78b8d223..d79525d62d 100644 --- a/boards/samr21-xpro/board.c +++ b/boards/samr21-xpro/board.c @@ -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);