Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2016 Leon George
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
18
19#include "periph/gpio.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
29#define XTIMER_WIDTH (16)
30#define XTIMER_BACKOFF (50)
31#define XTIMER_ISR_BACKOFF (40)
33
38#define BTN0_PIN GPIO_PIN(0, 4)
39#define BTN0_MODE GPIO_IN_PU
40#define BTN1_PIN GPIO_PIN(0, 0)
41#define BTN1_MODE GPIO_IN_PU
43
48#define LED0_PIN GPIO_PIN(0, 10)
49#define LED1_PIN GPIO_PIN(0, 15)
50
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)
59
60#ifdef __cplusplus
61}
62#endif
63
Low-level GPIO peripheral driver interface definitions.