Mesh4all
May the mesh be with you
gpio_params.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 DAI Labor Technische Universität Berlin
3  * Copyright (C) 2022 Mesh4all <contact@mesh4all.org>
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser
6  * General Public License v2.1. See the file LICENSE in the top level
7  * directory for more details.
8  */
9 
21 #ifndef GPIO_PARAMS_H
22 #define GPIO_PARAMS_H
23 
24 #include "board.h"
25 #include "saul/periph.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
34 static const saul_gpio_params_t saul_gpio_params[] = {
35  {
36  .name = "LED0 ()",
37  .pin = LED0_PIN,
38  .mode = GPIO_OUT,
39  .flags = SAUL_GPIO_INIT_CLEAR,
40  },
41  {
42  .name = "LED1 ()",
43  .pin = LED1_PIN,
44  .mode = GPIO_OUT,
45  .flags = SAUL_GPIO_INIT_CLEAR,
46  },
47  {
48  .name = "LED2 ()",
49  .pin = LED2_PIN,
50  .mode = GPIO_OUT,
51  .flags = SAUL_GPIO_INIT_CLEAR,
52  },
53  {
54  .name = "LED3 ()",
55  .pin = LED3_PIN,
56  .mode = GPIO_OUT,
57  .flags = SAUL_GPIO_INIT_CLEAR,
58  },
59  {
60  .name = "SW0 button",
61  .pin = BTN0_PIN,
62  .mode = BTN0_MODE,
63  },
64 };
65 
66 #ifdef __cplusplus
67 }
68 #endif
69 
70 #endif /* GPIO_PARAMS_H */
#define LED0_PIN
Definition: board.h:65
#define BTN0_MODE
Definition: board.h:79
#define BTN0_PIN
Definition: board.h:78
#define LED1_PIN
Definition: board.h:59
#define LED2_PIN
Definition: board.h:70
#define LED3_PIN
Definition: board.h:48
Board specific definitions for the VS203 board.
static const saul_gpio_params_t saul_gpio_params[]
GPIO pin configuration.
Definition: gpio_params.h:34