gpio_params.h
1 #ifndef GPIO_PARAMS_H
2 #define GPIO_PARAMS_H
3 
4 #include "board.h"
5 #include "saul/periph.h"
6 
7 #ifdef __cplusplus
8 extern "C"
9 {
10 #endif
11 
16 static const saul_gpio_params_t saul_gpio_params[] =
17  {
18  {
19  .name = "LED1",
20  .pin = LED0_PIN,
21  .mode = GPIO_OUT,
22  .flags = SAUL_GPIO_INIT_SET,
23  },
24  {
25  .name = "LED2",
26  .pin = LED1_PIN,
27  .mode = GPIO_OUT,
28  .flags = SAUL_GPIO_INIT_SET,
29  },
30  {
31  .name = "LED3",
32  .pin = LED2_PIN,
33  .mode = GPIO_OUT,
34  .flags = SAUL_GPIO_INIT_SET,
35  },
36  {
37  .name = "LED4",
38  .pin = LED3_PIN,
39  .mode = GPIO_OUT,
40  .flags = SAUL_GPIO_INIT_SET,
41  },
42  {
43  .name = "BTN USER",
44  .pin = BTN0_PIN,
45  .mode = BTN0_MODE,
46  },
47 };
48 
49 #ifdef __cplusplus
50 }
51 #endif
52 
53 #endif /* GPIO_PARAMS_H */
static const saul_gpio_params_t saul_gpio_params[]
LED configuration.
Definition: gpio_params.h:33
#define LED1_PIN
TX LED yellow.
Definition: board.h:35
#define LED2_PIN
RX LED yellow.
Definition: board.h:36
@ GPIO_OUT
select GPIO MASK as output
Definition: periph_cpu.h:165
Parameter definitions for mapping peripherals directly to SAUL.
@ SAUL_GPIO_INIT_SET
set pin active after init
Definition: periph.h:45
Direct mapped GPIO configuration values.
Definition: periph.h:51
const char * name
name of the device connected to this pin
Definition: periph.h:52
Board specific definitions for the Zigduino board.