Skip to content
Snippets Groups Projects
Commit 0815ef18 authored by Alexandre Abadie's avatar Alexandre Abadie
Browse files

drivers/io1_xplained: fix gpio params initializer

parent 462cc783
Branches
No related tags found
No related merge requests found
...@@ -65,16 +65,27 @@ saul_reg_info_t io1_xplained_saul_info[][4] = ...@@ -65,16 +65,27 @@ saul_reg_info_t io1_xplained_saul_info[][4] =
IO1_XPLAINED_SAUL_INFO IO1_XPLAINED_SAUL_INFO
}; };
#ifdef MODULE_SAUL_GPIO
/** /**
* @brief Allocate and configure the extension LED gpios * @brief Allocate and configure the extension LED gpios
*/ */
gpio_t io1_xplained_saul_gpios[3] = saul_gpio_params_t io1_xplained_saul_gpios[] =
{ {
IO1_LED_PIN, {
IO1_GPIO1_PIN, .pin = IO1_LED_PIN,
IO1_GPIO2_PIN, .mode = GPIO_OUT,
.flags = SAUL_GPIO_INVERTED,
},
{
.pin = IO1_GPIO1_PIN,
.mode = GPIO_OUT,
},
{
.pin = IO1_GPIO2_PIN,
.mode = GPIO_OUT
}
}; };
#endif
#ifdef __cplusplus #ifdef __cplusplus
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment