Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2016 Nicholas Jackson
3 * 2017 Sebastian Meiling
4 * 2018 Anton Gerasimov
5 *
6 * This file is subject to the terms and conditions of the GNU Lesser General
7 * Public License v2.1. See the file LICENSE in the top level directory for more
8 * details.
9 */
10
23#ifndef BOARD_H
24#define BOARD_H
25
26#include "periph/gpio.h"
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
36#define XTIMER_WIDTH (16)
37#define XTIMER_BACKOFF (25)
38#define XTIMER_ISR_BACKOFF (20)
45#define BTN0_PIN GPIO_PIN(0, 15)
46#define BTN0_MODE GPIO_IN_PU
47
48#define BTN1_PIN GPIO_PIN(0, 14)
49#define BTN1_MODE GPIO_IN_PU
56#define LED0_PIN GPIO_PIN(0, 6)
57#define LED1_PIN GPIO_PIN(0, 7)
59#define LED0_ON gpio_set(LED0_PIN)
60#define LED0_OFF gpio_clear(LED0_PIN)
61#define LED0_TOGGLE gpio_toggle(LED0_PIN)
62
63#define LED1_ON gpio_set(LED1_PIN)
64#define LED1_OFF gpio_clear(LED1_PIN)
65#define LED1_TOGGLE gpio_toggle(LED1_PIN)
68#ifdef __cplusplus
69}
70#endif
71
72#endif /* BOARD_H */
Low-level GPIO peripheral driver interface definitions.