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: 2020 Benjamin Valentin
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
30
#define INTERNAL_PERIPHERAL_VID (0x239a)
31
#define INTERNAL_PERIPHERAL_PID (0x0029)
39
#define LED0_PIN GPIO_PIN(0, 23)
41
#define LED1_PIN GPIO_PIN(0, 22)
43
#define LED2_PIN GPIO_PIN(0, 24)
44
53
#define LED0_ON gpio_clear(LED0_PIN)
55
#define LED0_OFF gpio_set(LED0_PIN)
57
#define LED0_TOGGLE gpio_toggle(LED0_PIN)
58
60
#define LED1_ON gpio_clear(LED1_PIN)
62
#define LED1_OFF gpio_set(LED1_PIN)
64
#define LED1_TOGGLE gpio_toggle(LED1_PIN)
65
67
#define LED2_ON gpio_clear(LED2_PIN)
69
#define LED2_OFF gpio_set(LED2_PIN)
71
#define LED2_TOGGLE gpio_toggle(LED2_PIN)
72
80
#define BTN0_PIN GPIO_PIN(0, 18)
82
#define BTN0_MODE GPIO_IN_PU
85
#ifdef __cplusplus
86
}
87
#endif
88
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Sat Sep 6 2025 20:14:01 by
1.9.1