board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 Locha Inc
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser General
5  * Public License v2.1. See the file LICENSE in the top level directory for more
6  * details.
7  */
8 
9 #pragma once
10 
21 #include "periph/gpio.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
31 #define XTIMER_WIDTH (16)
32 #define XTIMER_BACKOFF (25)
33 #define XTIMER_ISR_BACKOFF (20)
40 #define BTN0_PIN GPIO_PIN(0, 15)
41 #define BTN0_MODE GPIO_IN_PU
42 
43 #define BTN1_PIN GPIO_PIN(0, 14)
44 #define BTN1_MODE GPIO_IN_PU
51 #define LED0_PIN GPIO_PIN(0, 6)
52 #define LED1_PIN GPIO_PIN(0, 7)
54 #define LED0_ON gpio_set(LED0_PIN)
55 #define LED0_OFF gpio_clear(LED0_PIN)
56 #define LED0_TOGGLE gpio_toggle(LED0_PIN)
57 
58 #define LED1_ON gpio_set(LED1_PIN)
59 #define LED1_OFF gpio_clear(LED1_PIN)
60 #define LED1_TOGGLE gpio_toggle(LED1_PIN)
63 #ifdef __cplusplus
64 }
65 #endif
66 
Low-level GPIO peripheral driver interface definitions.