board.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2016 Nicholas Jackson
3  * SPDX-FileCopyrightText: 2017 Sebastian Meiling
4  * SPDX-FileCopyrightText: 2018 Anton Gerasimov
5  * SPDX-License-Identifier: LGPL-2.1-only
6  */
7 
8 #pragma once
9 
22 #include "periph/gpio.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
32 #define XTIMER_WIDTH (16)
33 #define XTIMER_BACKOFF (25)
34 #define XTIMER_ISR_BACKOFF (20)
41 #define BTN0_PIN GPIO_PIN(0, 15)
42 #define BTN0_MODE GPIO_IN_PU
43 
44 #define BTN1_PIN GPIO_PIN(0, 14)
45 #define BTN1_MODE GPIO_IN_PU
52 #define LED0_PIN GPIO_PIN(0, 6)
53 #define LED1_PIN GPIO_PIN(0, 7)
55 #define LED0_ON gpio_set(LED0_PIN)
56 #define LED0_OFF gpio_clear(LED0_PIN)
57 #define LED0_TOGGLE gpio_toggle(LED0_PIN)
58 
59 #define LED1_ON gpio_set(LED1_PIN)
60 #define LED1_OFF gpio_clear(LED1_PIN)
61 #define LED1_TOGGLE gpio_toggle(LED1_PIN)
64 #ifdef __cplusplus
65 }
66 #endif
67 
Low-level GPIO peripheral driver interface definitions.