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 GPIO_PORT_D
82#define LED0_PORT_NUM PORT_D
83
84#define LED1_PIN_NUM 5
85#define LED1_PORT GPIO_PORT_B
86#define LED1_PORT_NUM PORT_B
87
88#define LED2_PIN_NUM 10
89#define LED2_PORT GPIO_PORT_C
90#define LED2_PORT_NUM PORT_C
93#ifdef __cplusplus
94}
95#endif
96
97#include "stm32_leds.h"
98
99#endif /* BOARD_COMMON_H */
Common peripheral configuration for the Particle Mesh.
Common LED macros.