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
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)
43
49
#define LED0_PIN GPIO_PIN(PORT_B, 4)
50
#define LED0_MODE GPIO_OUT
51
#define LED0_ENABLE_PORT DDRB |= LED0_PIN
52
#define LED0_ON PORTB |= LED0_PIN
53
#define LED0_OFF PORTB &= ~LED0_PIN
54
#define LED0_TOGGLE PORTB ^= LED0_PIN
55
61
#define BTN0_PIN GPIO_PIN(PORT_E, 4)
62
#define BTN0_MODE GPIO_IN_PU
63
68
void
board_init
(
void
);
69
70
#ifdef __cplusplus
71
}
72
#endif
73
74
#endif
/* BOARD_H */
75
gpio.h
Low-level GPIO peripheral driver interface definitions.
board_init
void board_init(void)
Board level initialization.
Generated on Tue Nov 24 2020 19:46:49 by
1.8.17