boards/fox: added params file for the at86rf231

cc430
Hauke Petersen 8 years ago
parent 58245bab60
commit 99e5aaaa7d

@ -0,0 +1,46 @@
/*
* 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_ */
/** @} */

@ -56,6 +56,7 @@ extern "C" {
#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
/** @} */
/**

Loading…
Cancel
Save