Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2014 Freie Universität Berlin, Hinnerk van Bruinehsen
3
* 2016 Laurent Navet <laurent.navet@gmail.com>
4
* 2019 Otto-von-Guericke-Universität Magdeburg
5
* 2021-2123 Gerson Fernando Budke
6
*
7
* This file is subject to the terms and conditions of the GNU Lesser
8
* General Public License v2.1. See the file LICENSE in the top level
9
* directory for more details.
10
*/
11
25
#ifndef BOARD_H
26
#define BOARD_H
27
28
#include "cpu.h"
29
#include "
periph_conf.h
"
30
31
#ifdef __cplusplus
32
extern
"C"
{
33
#endif
34
42
#define STDIO_UART_BAUDRATE (9600U)
49
#define XTIMER_WIDTH (16)
50
#if CLOCK_CORECLOCK > 4000000UL
51
#define XTIMER_HZ (CLOCK_CORECLOCK / 64)
52
#else
53
#define XTIMER_HZ (CLOCK_CORECLOCK / 8)
54
#endif
55
#define XTIMER_BACKOFF (40)
62
#define LED0_PIN GPIO_PIN(PORT_B, 5)
63
#define LED0_MODE GPIO_OUT
64
#define LED0_ENABLE_PORT DDRB |= LED0_PIN
65
#define LED0_ON PORTB |= LED0_PIN
66
#define LED0_OFF PORTB &= ~LED0_PIN
67
#define LED0_TOGGLE PORTB ^= LED0_PIN
74
#define BTN0_PIN GPIO_PIN(PORT_B, 7)
75
#define BTN0_MODE GPIO_IN_PU
76
#define BTN0_INT_FLANK GPIO_FALLING
79
#ifdef __cplusplus
80
}
81
#endif
82
83
#endif
/* BOARD_H */
periph_conf.h
Native CPU peripheral configuration.
Generated on Sun Dec 22 2024 10:22:27 by
1.9.8