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: 2017 Inria
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 LED0_PIN GPIO_PIN(PA, 21)
31
32
#define LED0_PORT PORT->Group[PA]
33
#define LED0_MASK (1 << 21)
34
35
#define LED0_ON (LED0_PORT.OUTSET.reg = LED0_MASK)
36
#define LED0_OFF (LED0_PORT.OUTCLR.reg = LED0_MASK)
37
#define LED0_TOGGLE (LED0_PORT.OUTTGL.reg = LED0_MASK)
44
#define BTN0_PIN GPIO_PIN(PA, 14)
45
#define BTN0_MODE GPIO_IN_PU
52
#define RN2XX3_PARAM_UART UART_DEV(2)
53
#define RN2XX3_PARAM_PIN_RESET GPIO_PIN(PA, 7)
56
#ifdef __cplusplus
57
}
58
#endif
59
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Sat Sep 6 2025 20:14:01 by
1.9.1