gpio_params.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2019 Beuth Hochschule für Technik Berlin
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
19 #include "board.h"
20 #include "saul/periph.h"
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
30 {
31  {
32  .name = "LED0",
33  .pin = LED0_PIN,
34  .mode = GPIO_OUT,
35  },
36  {
37  .name = "LED1",
38  .pin = LED1_PIN,
39  .mode = GPIO_OUT,
40  },
41  {
42  .name = "LED2",
43  .pin = LED2_PIN,
44  .mode = GPIO_OUT,
45  },
46  {
47  .name = "LED3",
48  .pin = LED3_PIN,
49  .mode = GPIO_OUT,
50  },
51  {
52  .name = "LED4",
53  .pin = LED4_PIN,
54  .mode = GPIO_OUT,
55  },
56  {
57  .name = "LED5",
58  .pin = LED5_PIN,
59  .mode = GPIO_OUT,
60  },
61  {
62  .name = "LED6",
63  .pin = LED6_PIN,
64  .mode = GPIO_OUT,
65  },
66  {
67  .name = "LED7",
68  .pin = LED7_PIN,
69  .mode = GPIO_OUT,
70  },
71  {
72  .name = "Button(INT0)",
73  .pin = BTN0_PIN,
74  .mode = BTN0_MODE,
75  .flags = SAUL_GPIO_INVERTED,
76  },
77 };
78 
79 #ifdef __cplusplus
80 }
81 #endif
82 
#define LED2_PIN
RX LED yellow.
Definition: board.h:32
@ 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:29
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.