diff --git a/boards/iotlab-m3/include/gpio_params.h b/boards/iotlab-m3/include/gpio_params.h index 17a73f6e11e116577dbc0b2bcbe98d8014765813..7a3f26e6c460534ca9c60788d2a068faebe6bf91 100644 --- a/boards/iotlab-m3/include/gpio_params.h +++ b/boards/iotlab-m3/include/gpio_params.h @@ -34,20 +34,17 @@ static const saul_gpio_params_t saul_gpio_params[] = { .name = "LED(red)", .pin = LED0_PIN, - .dir = GPIO_DIR_OUT, - .pull = GPIO_NOPULL, + .mode = GPIO_OUT }, { .name = "LED(green)", .pin = LED1_PIN, - .dir = GPIO_DIR_OUT, - .pull = GPIO_NOPULL, + .mode = GPIO_OUT }, { .name = "LED(orange)", .pin = LED2_PIN, - .dir = GPIO_DIR_OUT, - .pull = GPIO_NOPULL, + .mode = GPIO_OUT }, }; diff --git a/boards/nrf52dk/include/gpio_params.h b/boards/nrf52dk/include/gpio_params.h index 6045bd9f0f804e78a9b2be1b61db3455c6d96868..bb1846a064abd9870208b65bce6d35b939c39cb6 100644 --- a/boards/nrf52dk/include/gpio_params.h +++ b/boards/nrf52dk/include/gpio_params.h @@ -35,50 +35,42 @@ static const saul_gpio_params_t saul_gpio_params[] = { .name = "LED 1", .pin = LED0_PIN, - .dir = GPIO_DIR_OUT, - .pull = GPIO_NOPULL + .mode = GPIO_OUT }, { .name = "LED 2", .pin = LED1_PIN, - .dir = GPIO_DIR_OUT, - .pull = GPIO_NOPULL + .mode = GPIO_OUT }, { .name = "LED 3", .pin = LED2_PIN, - .dir = GPIO_DIR_OUT, - .pull = GPIO_NOPULL + .mode = GPIO_OUT }, { .name = "LED 4", .pin = LED3_PIN, - .dir = GPIO_DIR_OUT, - .pull = GPIO_NOPULL + .mode = GPIO_OUT }, { .name = "Button 1", .pin = BUTTON1_PIN, - .dir = GPIO_DIR_IN, - .pull = GPIO_PULLUP + .mode = GPIO_IN_PU }, { .name = "Button 2", .pin = BUTTON2_PIN, - .dir = GPIO_DIR_IN, - .pull = GPIO_PULLUP + .mode = GPIO_IN_PU }, { .name = "Button 3", .pin = BUTTON3_PIN, - .dir = GPIO_DIR_IN, - .pull = GPIO_PULLUP + .mode = GPIO_IN_PU }, { .name = "Button 4", .pin = BUTTON4_PIN, - .dir = GPIO_DIR_IN, - .pull = GPIO_PULLUP + .mode = GPIO_IN_PU } }; diff --git a/boards/samr21-xpro/include/gpio_params.h b/boards/samr21-xpro/include/gpio_params.h index 8551e0d808fb9940c1cff313a5881c6d8ad55408..6adf9f9744a53c9f700d570ab7cff4921f24f26f 100644 --- a/boards/samr21-xpro/include/gpio_params.h +++ b/boards/samr21-xpro/include/gpio_params.h @@ -36,14 +36,12 @@ static const saul_gpio_params_t saul_gpio_params[] = { .name = "LED(orange)", .pin = LED0_PIN, - .dir = GPIO_DIR_OUT, - .pull = GPIO_NOPULL, + .mode = GPIO_OUT }, { .name = "Button(SW0)", .pin = BUTTON_GPIO, - .dir = GPIO_DIR_IN, - .pull = GPIO_PULLUP, + .mode = GPIO_IN_PU }, };