Skip to content
Snippets Groups Projects
Commit cf3a40dc authored by Hauke Petersen's avatar Hauke Petersen
Browse files

baords: adapted saul config to GPIO changes

parent e51d634a
No related branches found
No related tags found
No related merge requests found
...@@ -34,20 +34,17 @@ static const saul_gpio_params_t saul_gpio_params[] = ...@@ -34,20 +34,17 @@ static const saul_gpio_params_t saul_gpio_params[] =
{ {
.name = "LED(red)", .name = "LED(red)",
.pin = LED0_PIN, .pin = LED0_PIN,
.dir = GPIO_DIR_OUT, .mode = GPIO_OUT
.pull = GPIO_NOPULL,
}, },
{ {
.name = "LED(green)", .name = "LED(green)",
.pin = LED1_PIN, .pin = LED1_PIN,
.dir = GPIO_DIR_OUT, .mode = GPIO_OUT
.pull = GPIO_NOPULL,
}, },
{ {
.name = "LED(orange)", .name = "LED(orange)",
.pin = LED2_PIN, .pin = LED2_PIN,
.dir = GPIO_DIR_OUT, .mode = GPIO_OUT
.pull = GPIO_NOPULL,
}, },
}; };
......
...@@ -35,50 +35,42 @@ static const saul_gpio_params_t saul_gpio_params[] = ...@@ -35,50 +35,42 @@ static const saul_gpio_params_t saul_gpio_params[] =
{ {
.name = "LED 1", .name = "LED 1",
.pin = LED0_PIN, .pin = LED0_PIN,
.dir = GPIO_DIR_OUT, .mode = GPIO_OUT
.pull = GPIO_NOPULL
}, },
{ {
.name = "LED 2", .name = "LED 2",
.pin = LED1_PIN, .pin = LED1_PIN,
.dir = GPIO_DIR_OUT, .mode = GPIO_OUT
.pull = GPIO_NOPULL
}, },
{ {
.name = "LED 3", .name = "LED 3",
.pin = LED2_PIN, .pin = LED2_PIN,
.dir = GPIO_DIR_OUT, .mode = GPIO_OUT
.pull = GPIO_NOPULL
}, },
{ {
.name = "LED 4", .name = "LED 4",
.pin = LED3_PIN, .pin = LED3_PIN,
.dir = GPIO_DIR_OUT, .mode = GPIO_OUT
.pull = GPIO_NOPULL
}, },
{ {
.name = "Button 1", .name = "Button 1",
.pin = BUTTON1_PIN, .pin = BUTTON1_PIN,
.dir = GPIO_DIR_IN, .mode = GPIO_IN_PU
.pull = GPIO_PULLUP
}, },
{ {
.name = "Button 2", .name = "Button 2",
.pin = BUTTON2_PIN, .pin = BUTTON2_PIN,
.dir = GPIO_DIR_IN, .mode = GPIO_IN_PU
.pull = GPIO_PULLUP
}, },
{ {
.name = "Button 3", .name = "Button 3",
.pin = BUTTON3_PIN, .pin = BUTTON3_PIN,
.dir = GPIO_DIR_IN, .mode = GPIO_IN_PU
.pull = GPIO_PULLUP
}, },
{ {
.name = "Button 4", .name = "Button 4",
.pin = BUTTON4_PIN, .pin = BUTTON4_PIN,
.dir = GPIO_DIR_IN, .mode = GPIO_IN_PU
.pull = GPIO_PULLUP
} }
}; };
......
...@@ -36,14 +36,12 @@ static const saul_gpio_params_t saul_gpio_params[] = ...@@ -36,14 +36,12 @@ static const saul_gpio_params_t saul_gpio_params[] =
{ {
.name = "LED(orange)", .name = "LED(orange)",
.pin = LED0_PIN, .pin = LED0_PIN,
.dir = GPIO_DIR_OUT, .mode = GPIO_OUT
.pull = GPIO_NOPULL,
}, },
{ {
.name = "Button(SW0)", .name = "Button(SW0)",
.pin = BUTTON_GPIO, .pin = BUTTON_GPIO,
.dir = GPIO_DIR_IN, .mode = GPIO_IN_PU
.pull = GPIO_PULLUP,
}, },
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment