board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 Nicholas Jackson
3  * 2017 Sebastian Meiling
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser General
6  * Public License v2.1. See the file LICENSE in the top level directory for more
7  * details.
8  */
9 
10 #pragma once
11 
23 #include "periph/gpio.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
33 #define XTIMER_WIDTH (16)
34 #define XTIMER_BACKOFF (25)
35 #define XTIMER_ISR_BACKOFF (20)
42 #define BTN0_PIN GPIO_PIN(0, 13)
43 #define BTN0_MODE GPIO_IN_PU
44 
45 #define BTN1_PIN GPIO_PIN(0, 14)
46 #define BTN1_MODE GPIO_IN_PU
53 #define LED0_PIN GPIO_PIN(0, 6)
54 #define LED1_PIN GPIO_PIN(0, 7)
56 #define LED0_ON gpio_set(LED0_PIN)
57 #define LED0_OFF gpio_clear(LED0_PIN)
58 #define LED0_TOGGLE gpio_toggle(LED0_PIN)
59 
60 #define LED1_ON gpio_set(LED1_PIN)
61 #define LED1_OFF gpio_clear(LED1_PIN)
62 #define LED1_TOGGLE gpio_toggle(LED1_PIN)
65 #ifdef __cplusplus
66 }
67 #endif
68 
Low-level GPIO peripheral driver interface definitions.