Loading...
Searching...
No Matches
board_common.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2014-2015 Freie Universität Berlin
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
22
23#include <stdint.h>
24
25#include "cpu.h"
26#include "periph_conf.h"
27#include "periph_conf_common.h"
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
37#ifndef STDIO_UART_BAUDRATE
38# define STDIO_UART_BAUDRATE (500000U)
39#endif
41
48#define XTIMER_WIDTH (16U)
50
55#define CONFIG_ZTIMER_USEC_TYPE ZTIMER_TYPE_PERIPH_TIMER
56#define CONFIG_ZTIMER_USEC_DEV TIMER_DEV(0)
57#define CONFIG_ZTIMER_USEC_MIN (2)
59
66#define AT86RF2XX_PARAM_CS GPIO_PIN(PORT_A, 4)
67#define AT86RF2XX_PARAM_INT GPIO_PIN(PORT_C, 4)
68#define AT86RF2XX_PARAM_SLEEP GPIO_PIN(PORT_A, 2)
69#define AT86RF2XX_PARAM_RESET GPIO_PIN(PORT_C, 1)
71
76#define LED0_PIN_NUM 2
77#define LED0_PORT GPIO_PORT_D
78#define LED0_PORT_NUM PORT_D
79
80#define LED1_PIN_NUM 5
81#define LED1_PORT GPIO_PORT_B
82#define LED1_PORT_NUM PORT_B
83
84#define LED2_PIN_NUM 10
85#define LED2_PORT GPIO_PORT_C
86#define LED2_PORT_NUM PORT_C
88
89#ifdef __cplusplus
90}
91#endif
92
93#include "stm32_leds.h"
94
Peripheral MCU configuration for the iotlab-m3 board.
Common LED macros.