mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 06:23:53 +01:00
boards/mulle: use default at86rf2xx_params.h
This commit is contained in:
parent
7430ab30bb
commit
af067e9428
@ -1,48 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2015 Kaspar Schleiser <kaspar@schleiser.de>
|
||||
* Copyright (C) 2015 Eistec AB
|
||||
*
|
||||
* 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_mulle
|
||||
* @{
|
||||
*
|
||||
* @file
|
||||
* @brief at86rf231 board specific configuration
|
||||
*
|
||||
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
||||
* @author Joakim Nohlgård <joakim.nohlgard@eistec.se>
|
||||
*/
|
||||
|
||||
#ifndef AT86RF2XX_PARAMS_H_
|
||||
#define AT86RF2XX_PARAMS_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @name AT86RF212B 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 */
|
||||
/** @} */
|
||||
@ -89,16 +89,18 @@ void board_init(void);
|
||||
|
||||
/**
|
||||
* @name Define the interface to the AT86RF212B radio
|
||||
* @{
|
||||
*
|
||||
* @todo Work around missing RESET pin on Mulle v0.6x
|
||||
*
|
||||
* {spi bus, spi speed, cs pin, int pin, reset pin, sleep pin}
|
||||
*/
|
||||
#define AT86RF231_SPI SPI_0
|
||||
#define AT86RF231_CS GPIO_PIN(PORT_D, 4)
|
||||
#define AT86RF231_INT GPIO_PIN(PORT_B, 9)
|
||||
/** @todo work around missing RESET pin on Mulle v0.6x */
|
||||
#define AT86RF231_RESET GPIO_PIN(PORT_C, 12)
|
||||
#define AT86RF231_SLEEP GPIO_PIN(PORT_E, 6)
|
||||
#define AT86RF231_SPI_CLK SPI_SPEED_5MHZ
|
||||
/** @} */
|
||||
#define AT86RF2XX_PARAMS_BOARD {.spi = SPI_0, \
|
||||
.spi_speed = SPI_SPEED_5MHZ, \
|
||||
.cs_pin = GPIO_PIN(PORT_D, 4), \
|
||||
.int_pin = GPIO_PIN(PORT_B, 9), \
|
||||
.sleep_pin = GPIO_PIN(PORT_E, 6), \
|
||||
.reset_pin = GPIO_PIN(PORT_C, 12)}
|
||||
|
||||
|
||||
/**
|
||||
* @name LIS3DH configuration
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user