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: 2021 Jean Pierre Dudey
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
18
#include "
periph/gpio.h
"
19
20
#ifdef __cplusplus
21
extern
"C"
{
22
#endif
23
28
#define XTIMER_WIDTH (16)
29
#define XTIMER_BACKOFF (25)
30
#define XTIMER_ISR_BACKOFF (20)
37
#define BTN0_PIN GPIO_PIN(0, 13)
38
#define BTN0_MODE GPIO_IN_PU
39
40
#define BTN1_PIN GPIO_PIN(0, 14)
41
#define BTN1_MODE GPIO_IN_PU
48
#define LED0_PIN GPIO_PIN(0, 6)
49
#define LED1_PIN GPIO_PIN(0, 7)
51
#define LED0_ON gpio_set(LED0_PIN)
52
#define LED0_OFF gpio_clear(LED0_PIN)
53
#define LED0_TOGGLE gpio_toggle(LED0_PIN)
54
55
#define LED1_ON gpio_set(LED1_PIN)
56
#define LED1_OFF gpio_clear(LED1_PIN)
57
#define LED1_TOGGLE gpio_toggle(LED1_PIN)
60
#ifdef __cplusplus
61
}
62
#endif
63
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Thu Jul 24 2025 16:03:56 by
1.9.1