2019-12-13 17:47:03 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2019 ML!PA Consulting GmbH
|
|
|
|
*
|
|
|
|
* 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 drivers_at86rf215
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @brief Default configuration for the AT86RF215 driver
|
|
|
|
*
|
|
|
|
* @author Benjamin Valentin <benjamin.valentin@ml-pa.com>
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef AT86RF215_PARAMS_H
|
|
|
|
#define AT86RF215_PARAMS_H
|
|
|
|
|
|
|
|
#include "board.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @name Set default configuration parameters for the AT86RF215 driver
|
2020-03-24 00:53:37 +01:00
|
|
|
* Example config for EXT1 on same54-xpro
|
2019-12-13 17:47:03 +01:00
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
#ifndef AT86RF215_PARAM_SPI
|
|
|
|
#define AT86RF215_PARAM_SPI (SPI_DEV(0))
|
|
|
|
#endif
|
|
|
|
#ifndef AT86RF215_PARAM_SPI_CLK
|
|
|
|
#define AT86RF215_PARAM_SPI_CLK (SPI_CLK_5MHZ)
|
|
|
|
#endif
|
|
|
|
#ifndef AT86RF215_PARAM_CS
|
2020-03-24 00:53:37 +01:00
|
|
|
#define AT86RF215_PARAM_CS (GPIO_PIN(1, 28))
|
2019-12-13 17:47:03 +01:00
|
|
|
#endif
|
|
|
|
#ifndef AT86RF215_PARAM_INT
|
2020-03-24 00:53:37 +01:00
|
|
|
#define AT86RF215_PARAM_INT (GPIO_PIN(1, 7))
|
2019-12-13 17:47:03 +01:00
|
|
|
#endif
|
|
|
|
#ifndef AT86RF215_PARAM_RESET
|
2020-03-24 00:53:37 +01:00
|
|
|
#define AT86RF215_PARAM_RESET (GPIO_PIN(1, 8))
|
2019-12-13 17:47:03 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AT86RF215_PARAMS
|
|
|
|
#define AT86RF215_PARAMS { .spi = AT86RF215_PARAM_SPI, \
|
|
|
|
.spi_clk = AT86RF215_PARAM_SPI_CLK, \
|
|
|
|
.cs_pin = AT86RF215_PARAM_CS, \
|
|
|
|
.int_pin = AT86RF215_PARAM_INT, \
|
|
|
|
.reset_pin = AT86RF215_PARAM_RESET }
|
|
|
|
#endif
|
|
|
|
/**@}*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief AT86RF215 configuration
|
|
|
|
*/
|
|
|
|
static const at86rf215_params_t at86rf215_params[] =
|
|
|
|
{
|
|
|
|
AT86RF215_PARAMS
|
|
|
|
};
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* AT86RF215_PARAMS_H */
|
|
|
|
/** @} */
|