Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
board.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2020 Benjamin Valentin
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
9
#pragma once
10
21
#include "cpu.h"
22
#include "board_common.h"
23
#include "
periph/gpio.h
"
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
33
#define INTERNAL_PERIPHERAL_VID (0x239a)
34
#define INTERNAL_PERIPHERAL_PID (0x0029)
42
#define LED0_PIN GPIO_PIN(0, 23)
44
#define LED1_PIN GPIO_PIN(0, 22)
46
#define LED2_PIN GPIO_PIN(0, 24)
47
56
#define LED0_ON gpio_clear(LED0_PIN)
58
#define LED0_OFF gpio_set(LED0_PIN)
60
#define LED0_TOGGLE gpio_toggle(LED0_PIN)
61
63
#define LED1_ON gpio_clear(LED1_PIN)
65
#define LED1_OFF gpio_set(LED1_PIN)
67
#define LED1_TOGGLE gpio_toggle(LED1_PIN)
68
70
#define LED2_ON gpio_clear(LED2_PIN)
72
#define LED2_OFF gpio_set(LED2_PIN)
74
#define LED2_TOGGLE gpio_toggle(LED2_PIN)
75
83
#define BTN0_PIN GPIO_PIN(0, 18)
85
#define BTN0_MODE GPIO_IN_PU
88
#ifdef __cplusplus
89
}
90
#endif
91
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Mon Jun 30 2025 18:46:44 by
1.9.1