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 
12 #pragma once
13 
27 #include "cpu.h"
28 #include "periph_conf.h"
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
41 #define STDIO_UART_BAUDRATE (9600U)
48 #define XTIMER_WIDTH (16)
49 #if CLOCK_CORECLOCK > 4000000UL
50 #define XTIMER_HZ (CLOCK_CORECLOCK / 64)
51 #else
52 #define XTIMER_HZ (CLOCK_CORECLOCK / 8)
53 #endif
54 #define XTIMER_BACKOFF (40)
61 #define LED0_PIN GPIO_PIN(PORT_B, 5)
62 #define LED0_MODE GPIO_OUT
63 #define LED0_ENABLE_PORT DDRB |= LED0_PIN
64 #define LED0_ON PORTB |= LED0_PIN
65 #define LED0_OFF PORTB &= ~LED0_PIN
66 #define LED0_TOGGLE PORTB ^= LED0_PIN
73 #define BTN0_PIN GPIO_PIN(PORT_B, 7)
74 #define BTN0_MODE GPIO_IN_PU
75 #define BTN0_INT_FLANK GPIO_FALLING
78 #ifdef __cplusplus
79 }
80 #endif
81 
Peripheral MCU configuration for the Zigduino board.