Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2020 Locha Inc
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "periph/gpio.h"
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
28#define XTIMER_WIDTH (16)
29#define XTIMER_BACKOFF (25)
30#define XTIMER_ISR_BACKOFF (20)
32
37#define BTN0_PIN GPIO_PIN(0, 15)
38#define BTN0_MODE GPIO_IN_PU
39
40#define BTN1_PIN GPIO_PIN(0, 14)
41#define BTN1_MODE GPIO_IN_PU
43
48#define LED0_PIN GPIO_PIN(0, 6)
49#define LED1_PIN GPIO_PIN(0, 7)
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.