gpio_params.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2020 Oppila Microsystems - http://www.oppila.in
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
17 #include "board.h"
18 #include "saul/periph.h"
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
28 {
29  {
30  .name = "LED(green1)",
31  .pin = LED0_PIN,
32  .mode = GPIO_OUT,
33  .flags = 0x0,
34  },
35  {
36  .name = "LED(green2)",
37  .pin = LED1_PIN,
38  .mode = GPIO_OUT,
39  .flags = 0x0,
40  },
41  {
42  .name = "Button(User)",
43  .pin = BTN0_PIN,
44  .mode = BTN0_MODE,
45  .flags = SAUL_GPIO_INVERTED,
46  }
47 };
48 
49 #ifdef __cplusplus
50 }
51 #endif
52 
@ GPIO_OUT
select GPIO MASK as output
Definition: periph_cpu.h:161
static const saul_gpio_params_t saul_gpio_params[]
GPIO pin configuration.
Definition: gpio_params.h:27
Parameter definitions for mapping peripherals directly to SAUL.
@ SAUL_GPIO_INVERTED
pin is used as inverted
Definition: periph.h:42
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.