gpio_params.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2016-2017 Inria
3  * SPDX-FileCopyrightText: 2016 Freie Universität Berlin
4  * SPDX-License-Identifier: LGPL-2.1-only
5  */
6 
7 #pragma once
8 
20 #include "board.h"
21 #include "saul/periph.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
31 {
32  {
33  .name = LED0_NAME,
34  .pin = LED0_PIN,
35  .mode = GPIO_OUT
36  },
37 };
38 
39 #ifdef __cplusplus
40 }
41 #endif
42 
#define LED0_NAME
LED0 name.
Definition: board.h:38
@ GPIO_OUT
select GPIO MASK as output
Definition: periph_cpu.h:164
static const saul_gpio_params_t saul_gpio_params[]
GPIO pin configuration.
Definition: gpio_params.h:30
Parameter definitions for mapping peripherals directly to SAUL.
Direct mapped GPIO configuration values.
Definition: periph.h:50
const char * name
name of the device connected to this pin
Definition: periph.h:51