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) 2024 Marian Buschsieweke
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 "board_common.h"
22
#include "
periph/gpio.h
"
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
32
#define BTN0_PIN GPIO_PIN(PORT_A, 0)
33
#define BTN0_MODE GPIO_IN_PU
34
#define BTN0_INT_FLANK GPIO_FALLING
41
#define LED0_PIN GPIO_PIN(PORT_A, 7)
42
#define LED0_MASK (1 << 7)
43
#define LED0_ON (GPIOA->BC = LED0_MASK)
44
#define LED0_OFF (GPIOA->BOP = LED0_MASK)
45
#define LED0_TOGGLE (GPIOA->OCTL ^= LED0_MASK)
48
#ifdef __cplusplus
49
}
50
#endif
51
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Mon Jun 30 2025 18:46:44 by
1.9.1