Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
9
#pragma once
10
21
#include "cpu.h"
22
#include "
periph/gpio.h
"
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
31
#define STDIO_UART_DEV (UART_DEV(1))
32
39
#define XTIMER_WIDTH (16)
40
#define XTIMER_HZ (250000UL)
41
#define XTIMER_BACKOFF (40)
48
#define CONFIG_ZTIMER_USEC_ADJUST_SET (132)
49
#define CONFIG_ZTIMER_USEC_ADJUST_SLEEP (120)
56
#define LED0_PIN GPIO_PIN(PORT_B, 4)
57
#define LED0_MODE GPIO_OUT
58
#define LED0_ENABLE_PORT DDRB |= LED0_PIN
59
#define LED0_ON PORTB |= LED0_PIN
60
#define LED0_OFF PORTB &= ~LED0_PIN
61
#define LED0_TOGGLE PORTB ^= LED0_PIN
68
#define BTN0_PIN GPIO_PIN(PORT_E, 4)
69
#define BTN0_MODE GPIO_IN_PU
72
#ifdef __cplusplus
73
}
74
#endif
75
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Fri Jun 20 2025 21:02:35 by
1.9.1