Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
board.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2019 Christian Amsüss <chrysn@fsfe.org>
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
18
#include "cpu.h"
19
#include "board_common.h"
20
#include "
periph/gpio.h
"
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
31
#define LED0_PIN GPIO_PIN(0, 6)
32
34
#define LED1_PIN GPIO_PIN(0, 8)
36
#define LED2_PIN GPIO_PIN(1, 9)
38
#define LED3_PIN GPIO_PIN(0, 12)
39
48
#define LED0_ON gpio_clear(LED0_PIN)
50
#define LED0_OFF gpio_set(LED0_PIN)
52
#define LED0_TOGGLE gpio_toggle(LED0_PIN)
53
55
#define LED1_ON gpio_clear(LED1_PIN)
57
#define LED1_OFF gpio_set(LED1_PIN)
59
#define LED1_TOGGLE gpio_toggle(LED1_PIN)
60
62
#define LED2_ON gpio_clear(LED2_PIN)
64
#define LED2_OFF gpio_set(LED2_PIN)
66
#define LED2_TOGGLE gpio_toggle(LED2_PIN)
67
69
#define LED3_ON gpio_clear(LED3_PIN)
71
#define LED3_OFF gpio_set(LED3_PIN)
73
#define LED3_TOGGLE gpio_toggle(LED3_PIN)
74
82
#define BTN0_PIN GPIO_PIN(1, 6)
84
#define BTN0_MODE GPIO_IN_PU
87
#ifdef __cplusplus
88
}
89
#endif
90
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Sat Sep 6 2025 20:14:01 by
1.9.1