2016-03-18 18:33:53 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2014-2015 Freie Universität Berlin
|
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser General
|
|
|
|
* Public License v2.1. See the file LICENSE in the top level directory for more
|
|
|
|
* details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2017-11-30 23:39:07 +01:00
|
|
|
* @defgroup boards_common_iotlab IoTlab Common
|
|
|
|
* @ingroup boards_common
|
|
|
|
* @brief Shared files and configuration for the IoTlab boards.
|
2016-03-18 18:33:53 +01:00
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @brief Board specific definitions for the iotlab-m3 board.
|
|
|
|
*
|
|
|
|
* @author Alaeddine Weslati <alaeddine.weslati@inria.fr>
|
|
|
|
* @author Thomas Eichinger <thomas.eichinger@fu-berlin.de>
|
|
|
|
* @author Oliver Hahm <oliver.hahm@inria.fr>
|
|
|
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
|
|
|
*/
|
|
|
|
|
2017-01-18 13:00:05 +01:00
|
|
|
#ifndef BOARD_COMMON_H
|
|
|
|
#define BOARD_COMMON_H
|
2016-03-18 18:33:53 +01:00
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#include "cpu.h"
|
|
|
|
#include "periph_conf.h"
|
|
|
|
#include "periph_conf_common.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
2017-04-10 19:04:32 +02:00
|
|
|
* @name Set the default baudrate to 500K for this board
|
2016-03-18 18:33:53 +01:00
|
|
|
* @{
|
|
|
|
*/
|
2018-07-05 14:09:08 +02:00
|
|
|
#ifndef STDIO_UART_BAUDRATE
|
|
|
|
# define STDIO_UART_BAUDRATE (500000U)
|
2016-03-18 18:33:53 +01:00
|
|
|
#endif
|
|
|
|
/** @} */
|
|
|
|
|
|
|
|
/**
|
2017-04-10 19:04:32 +02:00
|
|
|
* @name Xtimer configuration
|
|
|
|
*
|
|
|
|
* Tell the xtimer that we use a 16-bit peripheral timer
|
|
|
|
* @{
|
2016-03-18 18:33:53 +01:00
|
|
|
*/
|
2017-04-10 19:04:32 +02:00
|
|
|
#define XTIMER_WIDTH (16U)
|
|
|
|
/** @} */
|
2016-03-18 18:33:53 +01:00
|
|
|
|
2020-06-17 14:20:00 +02:00
|
|
|
/**
|
|
|
|
* @name ztimer configuration
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
#define CONFIG_ZTIMER_USEC_TYPE ZTIMER_TYPE_PERIPH_TIMER
|
|
|
|
#define CONFIG_ZTIMER_USEC_DEV TIMER_DEV(0)
|
|
|
|
#define CONFIG_ZTIMER_USEC_MIN (2)
|
|
|
|
/** @} */
|
|
|
|
|
2016-03-18 18:33:53 +01:00
|
|
|
/**
|
2018-02-28 18:26:39 +01:00
|
|
|
* @name Define the interface to the AT86RF231 radio
|
2016-03-18 18:33:53 +01:00
|
|
|
*
|
|
|
|
* {spi bus, spi speed, cs pin, int pin, reset pin, sleep pin}
|
2018-02-28 18:26:39 +01:00
|
|
|
* @{
|
2016-03-18 18:33:53 +01:00
|
|
|
*/
|
2018-02-28 18:26:39 +01:00
|
|
|
#define AT86RF2XX_PARAM_CS GPIO_PIN(PORT_A, 4)
|
|
|
|
#define AT86RF2XX_PARAM_INT GPIO_PIN(PORT_C, 4)
|
|
|
|
#define AT86RF2XX_PARAM_SLEEP GPIO_PIN(PORT_A, 2)
|
|
|
|
#define AT86RF2XX_PARAM_RESET GPIO_PIN(PORT_C, 1)
|
|
|
|
/** @} */
|
2016-03-18 18:33:53 +01:00
|
|
|
|
|
|
|
/**
|
2017-04-10 19:04:32 +02:00
|
|
|
* @name LED pin definitions and handlers
|
2016-03-18 18:33:53 +01:00
|
|
|
* @{
|
|
|
|
*/
|
2022-08-08 09:55:20 +02:00
|
|
|
#define LED0_PIN_NUM 2
|
|
|
|
#define LED0_PORT_NUM PORT_D
|
2016-03-18 18:33:53 +01:00
|
|
|
|
2022-08-08 09:55:20 +02:00
|
|
|
#define LED1_PIN_NUM 5
|
|
|
|
#define LED1_PORT_NUM PORT_B
|
2016-03-18 18:33:53 +01:00
|
|
|
|
2022-08-08 09:55:20 +02:00
|
|
|
#define LED2_PIN_NUM 10
|
|
|
|
#define LED2_PORT_NUM PORT_C
|
2016-03-18 18:33:53 +01:00
|
|
|
/** @} */
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2022-08-08 09:55:20 +02:00
|
|
|
#include "stm32_leds.h"
|
|
|
|
|
2017-01-18 13:00:05 +01:00
|
|
|
#endif /* BOARD_COMMON_H */
|
2016-03-18 18:33:53 +01:00
|
|
|
/** @} */
|