Mesh4all
May the mesh be with you
gpio_params.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 Travis Griggs <travisgriggs@gmail.com>
3  * Copyright (C) 2017 Dan Evans <photonthunder@gmail.com>
4  * Copyright (C) 2021 Mesh4all <mesh4all.org>
5  *
6  * This file is subject to the terms and conditions of the GNU Lesser
7  * General Public License v2.1. See the file LICENSE in the top level
8  * directory for more details.
9  */
10 
17 #ifndef GPIO_PARAMS_H
18 #define GPIO_PARAMS_H
19 
20 #include "board.h"
21 #include "saul/periph.h"
22 
23 #ifdef __cplusplus
24 extern "C"
25 {
26 #endif
27 
46 static const saul_gpio_params_t saul_gpio_params[] = {
47  {
48  .name = "LED (Orange)",
49  .pin = LED0_PIN,
50  .mode = GPIO_OUT,
51  },
52  {
53  .name = "LED (Green)",
54  .pin = LED1_PIN,
55  .mode = GPIO_OUT,
56  .flags = SAUL_GPIO_INVERTED,
57  },
58  {
59  .name = "LED (Yellow)",
60  .pin = LED2_PIN,
61  .mode = GPIO_OUT,
62  .flags = SAUL_GPIO_INVERTED,
63  },
64  {
65  .name = "Button (SW0)",
66  .pin = BTN0_PIN,
67  .mode = BTN0_MODE,
68  },
69 };
70 
71 #ifdef __cplusplus
72 }
73 #endif
74 
75 #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
static const saul_gpio_params_t saul_gpio_params[]
Saul Settings.
Definition: gpio_params.h:46
Board specific definitions for the VS203 board.