Mesh4all
May the mesh be with you
gpio_params.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Freie Universität Berlin
3  * Copyright (C) 2015 Kaspar Schleiser <kaspar@schleiser.de>
4  * Copyright (C) 2021 Mesh4all <contact@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  */
23 #ifndef GPIO_PARAMS_H
24 #define GPIO_PARAMS_H
25 
26 #include "board.h"
27 #include "saul/periph.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
46 static const saul_gpio_params_t saul_gpio_params[] =
47 {
48  {
49  .name = "LED(orange)",
50  .pin = LED0_PIN,
51  .mode = GPIO_OUT,
52  .flags = SAUL_GPIO_INVERTED,
53  },
54  {
55  .name = "Button(SW0)",
56  .pin = BTN0_PIN,
57  .mode = BTN0_MODE,
58  .flags = SAUL_GPIO_INVERTED,
59  },
60 };
61 
62 #ifdef __cplusplus
63 }
64 #endif
65 
66 #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
static const saul_gpio_params_t saul_gpio_params[]
Saul Settings.
Definition: gpio_params.h:46
Board specific definitions for the VS203 board.