1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:32:45 +01:00

boards, pba-d-01-kw2x: fix saul gpio init

This commit is contained in:
smlng 2017-11-16 22:08:28 +01:00
parent 4952ffbae7
commit 5e7f0af450

View File

@ -32,29 +32,34 @@ extern "C" {
static const saul_gpio_params_t saul_gpio_params[] =
{
{
.name = "LED(red)",
.pin = LED0_PIN,
.mode = GPIO_OUT
.name = "LED(red)",
.pin = LED0_PIN,
.mode = GPIO_OUT,
.flags = (SAUL_GPIO_INVERTED | SAUL_GPIO_INIT_CLEAR)
},
{
.name = "LED(green)",
.pin = LED1_PIN,
.mode = GPIO_OUT
.name = "LED(green)",
.pin = LED1_PIN,
.mode = GPIO_OUT,
.flags = (SAUL_GPIO_INVERTED | SAUL_GPIO_INIT_CLEAR)
},
{
.name = "LED(blue)",
.pin = LED2_PIN,
.mode = GPIO_OUT
.name = "LED(blue)",
.pin = LED2_PIN,
.mode = GPIO_OUT,
.flags = (SAUL_GPIO_INVERTED | SAUL_GPIO_INIT_CLEAR)
},
{
.name = "Button(SW0)",
.pin = BTN0_PIN,
.mode = BTN0_MODE
.name = "Button(SW0)",
.pin = BTN0_PIN,
.mode = BTN0_MODE,
.flags = SAUL_GPIO_INVERTED
},
{
.name = "Button(CS0)",
.pin = BTN1_PIN,
.mode = BTN1_MODE
.name = "Button(CS0)",
.pin = BTN1_PIN,
.mode = BTN1_MODE,
.flags = 0x0
},
};