boards/fox: use default at86rf2xx_params.h

This commit is contained in:
Hauke Petersen 2015-11-13 16:29:48 +01:00
parent 36a111e72f
commit 973d85fa2e
2 changed files with 9 additions and 55 deletions

View File

@ -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_ */
/** @} */

View File

@ -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 * 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 * 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 * @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 AT86RF2XX_PARAMS_BOARD {.spi = SPI_0, \
#define AT86RF231_CS GPIO_PIN(PORT_A,1) .spi_speed = SPI_SPEED_5MHZ, \
#define AT86RF231_INT GPIO_PIN(PORT_C,2) .cs_pin = GPIO_PIN(PORT_A, 1), \
#define AT86RF231_RESET GPIO_PIN(PORT_C,1) .int_pin = GPIO_PIN(PORT_C, 2), \
#define AT86RF231_SLEEP GPIO_PIN(PORT_A,0) .sleep_pin = GPIO_PIN(PORT_A, 0), \
#define AT86RF231_SPI_CLK SPI_SPEED_5MHZ .reset_pin = GPIO_PIN(PORT_C, 1)}
/** @} */
/** /**
* @name Define the interface to the LPS331AP pressure sensor * @name Define the interface to the LPS331AP pressure sensor