Skip to content

Commit

Permalink
boards/iotlab: fix saul gpio configuration
Browse files Browse the repository at this point in the history
take into account inversion of LEDs and initialize them cleared
  • Loading branch information
aabadie committed May 4, 2018
1 parent 53c3f83 commit 3474d05
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions boards/common/iotlab/include/gpio_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,20 @@ static const saul_gpio_params_t saul_gpio_params[] =
{
.name = "LED(red)",
.pin = LED0_PIN,
.mode = GPIO_OUT
.mode = GPIO_OUT,
.flags = SAUL_GPIO_INVERTED | SAUL_GPIO_INIT_CLEAR,
},
{
.name = "LED(green)",
.pin = LED1_PIN,
.mode = GPIO_OUT
.mode = GPIO_OUT,
.flags = SAUL_GPIO_INVERTED | SAUL_GPIO_INIT_CLEAR,
},
{
.name = "LED(orange)",
.pin = LED2_PIN,
.mode = GPIO_OUT
.mode = GPIO_OUT,
.flags = SAUL_GPIO_INVERTED | SAUL_GPIO_INIT_CLEAR,
},
};

Expand Down

0 comments on commit 3474d05

Please sign in to comment.