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 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 
20 #ifndef GPIO_PARAMS_H
21 #define GPIO_PARAMS_H
22 
23 #include "board.h"
24 #include "saul/periph.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
33 static const saul_gpio_params_t saul_gpio_params[] = {
34  {
35  .name = "LED0 (?)",
36  .pin = LED0_PIN,
37  .mode = GPIO_OUT,
38  .flags = SAUL_GPIO_INIT_CLEAR,
39  },
40  {
41  .name = "LED1 (Green)",
42  .pin = LED1_PIN,
43  .mode = GPIO_OUT,
44  .flags = SAUL_GPIO_INIT_CLEAR,
45  },
46  {
47  .name = "LED2 (Orange)",
48  .pin = LED2_PIN,
49  .mode = GPIO_OUT,
50  .flags = SAUL_GPIO_INIT_CLEAR,
51  },
52  {
53  .name = "LED3 (Red)",
54  .pin = LED3_PIN,
55  .mode = GPIO_OUT,
56  .flags = SAUL_GPIO_INIT_CLEAR,
57  },
58  {
59  .name = "SW0/K1 button",
60  .pin = BTN0_PIN,
61  .mode = BTN0_MODE,
62  },
63  {
64  .name = "SW1/K2 button",
65  .pin = BTN1_PIN,
66  .mode = BTN1_MODE,
67  },
68 };
69 
70 #ifdef __cplusplus
71 }
72 #endif
73 
74 #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
#define BTN1_MODE
Definition: board.h:67
#define BTN1_PIN
Definition: board.h:66
static const saul_gpio_params_t saul_gpio_params[]
GPIO pin configuration.
Definition: gpio_params.h:33
Board specific definitions for the VS203 board.