boards/fox: use default at86rf2xx_params.h
This commit is contained in:
parent
36a111e72f
commit
973d85fa2e
@ -1,46 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2015 Kaspar Schleiser <kaspar@schleiser.de>
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @ingroup board_iotlab-m3
|
||||
* @{
|
||||
*
|
||||
* @file
|
||||
* @brief at86rf231 board specific configuration
|
||||
*
|
||||
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
||||
*/
|
||||
|
||||
#ifndef AT86RF2XX_PARAMS_H_
|
||||
#define AT86RF2XX_PARAMS_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @name AT86RF231 configuration
|
||||
*/
|
||||
static const at86rf2xx_params_t at86rf2xx_params[] =
|
||||
{
|
||||
{
|
||||
.spi = AT86RF231_SPI,
|
||||
.spi_speed = AT86RF231_SPI_CLK,
|
||||
.cs_pin = AT86RF231_CS,
|
||||
.int_pin = AT86RF231_INT,
|
||||
.sleep_pin = AT86RF231_SLEEP,
|
||||
.reset_pin = AT86RF231_RESET,
|
||||
},
|
||||
};
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* AT86RF2XX_PARAMS_H_ */
|
||||
/** @} */
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2014 Freie Universität Berlin
|
||||
* 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
|
||||
@ -49,15 +49,15 @@ extern "C" {
|
||||
|
||||
/**
|
||||
* @name Define the interface to the AT86RF231 radio
|
||||
* @{
|
||||
*
|
||||
* {spi bus, spi speed, cs pin, int pin, reset pin, sleep pin}
|
||||
*/
|
||||
#define AT86RF231_SPI SPI_0
|
||||
#define AT86RF231_CS GPIO_PIN(PORT_A,1)
|
||||
#define AT86RF231_INT GPIO_PIN(PORT_C,2)
|
||||
#define AT86RF231_RESET GPIO_PIN(PORT_C,1)
|
||||
#define AT86RF231_SLEEP GPIO_PIN(PORT_A,0)
|
||||
#define AT86RF231_SPI_CLK SPI_SPEED_5MHZ
|
||||
/** @} */
|
||||
#define AT86RF2XX_PARAMS_BOARD {.spi = SPI_0, \
|
||||
.spi_speed = SPI_SPEED_5MHZ, \
|
||||
.cs_pin = GPIO_PIN(PORT_A, 1), \
|
||||
.int_pin = GPIO_PIN(PORT_C, 2), \
|
||||
.sleep_pin = GPIO_PIN(PORT_A, 0), \
|
||||
.reset_pin = GPIO_PIN(PORT_C, 1)}
|
||||
|
||||
/**
|
||||
* @name Define the interface to the LPS331AP pressure sensor
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user