gpio_params.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 Freie Universität Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
9 #pragma once
10 
22 #include "board.h"
23 #include "saul/periph.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
33 {
34  {
35  .name = "LD3",
36  .pin = LED0_PIN,
37  .mode = GPIO_OUT
38  },
39  {
40  .name = "LD4",
41  .pin = LED1_PIN,
42  .mode = GPIO_OUT
43  },
44  {
45  .name = "LD5",
46  .pin = LED2_PIN,
47  .mode = GPIO_OUT
48  },
49  {
50  .name = "LD6",
51  .pin = LED3_PIN,
52  .mode = GPIO_OUT
53  },
54  {
55  .name = "LD7",
56  .pin = LED4_PIN,
57  .mode = GPIO_OUT
58  },
59  {
60  .name = "LD8",
61  .pin = LED5_PIN,
62  .mode = GPIO_OUT
63  },
64  {
65  .name = "LD9",
66  .pin = LED6_PIN,
67  .mode = GPIO_OUT
68  },
69  {
70  .name = "LD10",
71  .pin = LED7_PIN,
72  .mode = GPIO_OUT
73  },
74  {
75  .name = "BTN USER",
76  .pin = BTN0_PIN,
77  .mode = BTN0_MODE
78  },
79 };
80 
81 #ifdef __cplusplus
82 }
83 #endif
84 
#define LED2_PIN
RX LED yellow.
Definition: board.h:35
@ GPIO_OUT
select GPIO MASK as output
Definition: periph_cpu.h:164
Parameter definitions for mapping peripherals directly to SAUL.
static const saul_gpio_params_t saul_gpio_params[]
GPIO pin configuration.
Definition: gpio_params.h:32
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.