Loading...
Searching...
No Matches
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
16
17#include "board.h"
18#include "saul/periph.h"
19
20#ifdef __cplusplus
21extern "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
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
Board specific definitions for the omote 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