Loading...
Searching...
No Matches
gpio_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2015 Freie Universität Berlin
3 * SPDX-FileCopyrightText: 2015 Kaspar Schleiser <kaspar@schleiser.de>
4 * SPDX-FileCopyrightText: 2016 UC Berkeley
5 * SPDX-License-Identifier: LGPL-2.1-only
6 */
7
8#pragma once
9
22
23#include "board.h"
24#include "saul/periph.h"
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
34{
35 {
36 .name = "LED(red)",
37 .pin = LED0_PIN,
38 .mode = GPIO_OUT,
39 .flags = SAUL_GPIO_INVERTED,
40 },
41 {
42 .name = "Button",
43 .pin = BTN0_PIN,
44 .mode = BTN0_MODE,
45 .flags = SAUL_GPIO_INVERTED,
46 },
47};
48
49#ifdef __cplusplus
50}
51#endif
52
static const saul_gpio_params_t saul_gpio_params[]
LED configuration.
Definition gpio_params.h:29
@ GPIO_OUT
select GPIO MASK as output
Definition periph_cpu.h:164
Support for the HamiltonIoT Hamilton board.
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