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: 2014 Freie Universität Berlin
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
19
#include "cpu.h"
20
#include "
periph/gpio.h
"
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
30
#define LED0_PIN GPIO_PIN(1, 10)
31
32
#define LED_PORT PORT->Group[1]
33
#define LED0_MASK (1 << 10)
34
35
#define LED0_ON (LED_PORT.OUTCLR.reg = LED0_MASK)
36
#define LED0_OFF (LED_PORT.OUTSET.reg = LED0_MASK)
37
#define LED0_TOGGLE (LED_PORT.OUTTGL.reg = LED0_MASK)
44
#define BTN0_PIN GPIO_PIN(PA, 2)
45
#define BTN0_MODE GPIO_IN_PU
48
#ifdef __cplusplus
49
}
50
#endif
51
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Sat Sep 6 2025 20:14:01 by
1.9.1