Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2016 Nicholas Jackson
3 * SPDX-FileCopyrightText: 2017 Sebastian Meiling
4 * SPDX-License-Identifier: LGPL-2.1-only
5 */
6
7#pragma once
8
19
20#include "periph/gpio.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
30#define XTIMER_WIDTH (16)
31#define XTIMER_BACKOFF (25)
32#define XTIMER_ISR_BACKOFF (20)
34
39#define BTN0_PIN GPIO_PIN(0, 13)
40#define BTN0_MODE GPIO_IN_PU
41
42#define BTN1_PIN GPIO_PIN(0, 14)
43#define BTN1_MODE GPIO_IN_PU
45
50#define LED0_PIN GPIO_PIN(0, 6)
51#define LED1_PIN GPIO_PIN(0, 7)
52
53#define LED0_ON gpio_set(LED0_PIN)
54#define LED0_OFF gpio_clear(LED0_PIN)
55#define LED0_TOGGLE gpio_toggle(LED0_PIN)
56
57#define LED1_ON gpio_set(LED1_PIN)
58#define LED1_OFF gpio_clear(LED1_PIN)
59#define LED1_TOGGLE gpio_toggle(LED1_PIN)
61
62#ifdef __cplusplus
63}
64#endif
65
Low-level GPIO peripheral driver interface definitions.