gpio_params.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2019 Inria
3  * SPDX-FileCopyrightText: 2019 Freie Universität Berlin
4  * SPDX-FileCopyrightText: 2019 Kaspar Schleiser <kaspar@schleiser.de>
5  * SPDX-License-Identifier: LGPL-2.1-only
6  */
7 
8 #pragma once
9 
20 #include "board.h"
21 #include "saul/periph.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
31 {
32  {
33  .name = "LD1",
34  .pin = LED0_PIN,
35  .mode = GPIO_OUT
36  },
37  {
38  .name = "Button(B1 User)",
39  .pin = BTN0_PIN,
40  .mode = BTN0_MODE,
41  .flags = SAUL_GPIO_INVERTED
42  }
43 };
44 
45 #ifdef __cplusplus
46 }
47 #endif
48 
@ GPIO_OUT
select GPIO MASK as output
Definition: periph_cpu.h:161
Parameter definitions for mapping peripherals directly to SAUL.
@ SAUL_GPIO_INVERTED
pin is used as inverted
Definition: periph.h:42
static const saul_gpio_params_t saul_gpio_params[]
GPIO pin configuration.
Definition: gpio_params.h:30
Direct mapped GPIO configuration values.
Definition: periph.h:50
const char * name
name of the device connected to this pin
Definition: periph.h:51
Board specific definitions for the Zigduino board.