gpio_params.h File Reference

Board specific configuration of direct mapped GPIOs. More...

Detailed Description

Board specific configuration of direct mapped GPIOs.

Author
Joakim NohlgÄrd joaki.nosp@m.m.no.nosp@m.hlgar.nosp@m.d@ei.nosp@m.stec..nosp@m.se

Definition in file gpio_params.h.

#include "board.h"
#include "saul/periph.h"
+ Include dependency graph for gpio_params.h:

Go to the source code of this file.

static const saul_gpio_params_t saul_gpio_params []
 LED configuration. More...
 

Variable Documentation

◆ saul_gpio_params

const saul_gpio_params_t saul_gpio_params[]
static
Initial value:
=
{
{
.name = "LED1(green)",
.pin = LED0_PIN,
.mode = GPIO_OUT,
},
{
.name = "LED2(red)",
.pin = LED1_PIN,
.mode = GPIO_OUT,
},
{
.name = "SW1",
.pin = GPIO_PIN(PORT_C, 3),
.mode = GPIO_IN_PU
},
}

LED configuration.

Definition at line 32 of file gpio_params.h.

PORT_C
@ PORT_C
port C
Definition: periph_cpu.h:38
GPIO_OUT
@ GPIO_OUT
configure as output in push-pull mode
Definition: gpio.h:122
GPIO_IN_PU
@ GPIO_IN_PU
configure as input with pull-up resistor
Definition: gpio.h:121
GPIO_PIN
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition: periph_cpu.h:35
SAUL_GPIO_INVERTED
@ SAUL_GPIO_INVERTED
pin is used as inverted
Definition: periph.h:43