board.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2019 Inria
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
18 #include "cpu.h"
19 #include "periph/gpio.h"
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
28 #define STDIO_UART_DEV (UART_DEV(1))
29 
36 #define XTIMER_WIDTH (16)
37 #define XTIMER_HZ (250000UL)
38 #define XTIMER_BACKOFF (40)
45 #define CONFIG_ZTIMER_USEC_ADJUST_SET (132)
46 #define CONFIG_ZTIMER_USEC_ADJUST_SLEEP (120)
53 #define LED0_PIN GPIO_PIN(PORT_B, 4)
54 #define LED0_MODE GPIO_OUT
55 #define LED0_ENABLE_PORT DDRB |= LED0_PIN
56 #define LED0_ON PORTB |= LED0_PIN
57 #define LED0_OFF PORTB &= ~LED0_PIN
58 #define LED0_TOGGLE PORTB ^= LED0_PIN
65 #define BTN0_PIN GPIO_PIN(PORT_E, 4)
66 #define BTN0_MODE GPIO_IN_PU
69 #ifdef __cplusplus
70 }
71 #endif
72 
Low-level GPIO peripheral driver interface definitions.