board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2019 Inria
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
19 #ifndef BOARD_H
20 #define BOARD_H
21 
22 #include "cpu.h"
23 #include "periph/gpio.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
32 #define STDIO_UART_DEV (UART_DEV(1))
33 
40 #define XTIMER_WIDTH (16)
41 #define XTIMER_HZ (250000UL)
42 #define XTIMER_BACKOFF (40)
49 #define CONFIG_ZTIMER_USEC_ADJUST_SET (132)
50 #define CONFIG_ZTIMER_USEC_ADJUST_SLEEP (120)
57 #define LED0_PIN GPIO_PIN(PORT_B, 4)
58 #define LED0_MODE GPIO_OUT
59 #define LED0_ENABLE_PORT DDRB |= LED0_PIN
60 #define LED0_ON PORTB |= LED0_PIN
61 #define LED0_OFF PORTB &= ~LED0_PIN
62 #define LED0_TOGGLE PORTB ^= LED0_PIN
69 #define BTN0_PIN GPIO_PIN(PORT_E, 4)
70 #define BTN0_MODE GPIO_IN_PU
73 #ifdef __cplusplus
74 }
75 #endif
76 
77 #endif /* BOARD_H */
Low-level GPIO peripheral driver interface definitions.