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:
parent
32e7e840fc
commit
bc5ac92cff
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user