Loading...
Searching...
No Matches
board_common.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2014-2015 Freie Universität Berlin
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser General
5 * Public License v2.1. See the file LICENSE in the top level directory for more
6 * details.
7 */
8
24#ifndef BOARD_COMMON_H
25#define BOARD_COMMON_H
26
27#include <stdint.h>
28
29#include "cpu.h"
30#include "periph_conf.h"
31#include "periph_conf_common.h"
32
33#ifdef __cplusplus
34extern "C" {
35#endif
36
41#ifndef STDIO_UART_BAUDRATE
42# define STDIO_UART_BAUDRATE (500000U)
43#endif
52#define XTIMER_WIDTH (16U)
59#define CONFIG_ZTIMER_USEC_TYPE ZTIMER_TYPE_PERIPH_TIMER
60#define CONFIG_ZTIMER_USEC_DEV TIMER_DEV(0)
61#define CONFIG_ZTIMER_USEC_MIN (2)
70#define AT86RF2XX_PARAM_CS GPIO_PIN(PORT_A, 4)
71#define AT86RF2XX_PARAM_INT GPIO_PIN(PORT_C, 4)
72#define AT86RF2XX_PARAM_SLEEP GPIO_PIN(PORT_A, 2)
73#define AT86RF2XX_PARAM_RESET GPIO_PIN(PORT_C, 1)
80#define LED0_PIN_NUM 2
81#define LED0_PORT_NUM PORT_D
82
83#define LED1_PIN_NUM 5
84#define LED1_PORT_NUM PORT_B
85
86#define LED2_PIN_NUM 10
87#define LED2_PORT_NUM PORT_C
90#ifdef __cplusplus
91}
92#endif
93
94#include "stm32_leds.h"
95
96#endif /* BOARD_COMMON_H */
Common peripheral configuration for the Particle Mesh.
Common LED macros.