/* * 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 */ #ifndef AT86RF215_PARAMS_H #define AT86RF215_PARAMS_H #include "at86rf215.h" #include "board.h" #ifdef __cplusplus extern "C" { #endif /** * @name Set default configuration parameters for the AT86RF215 driver * Example config for EXT3 on same54-xpro * @{ */ #ifndef AT86RF215_PARAM_SPI #define AT86RF215_PARAM_SPI (SPI_DEV(1)) #endif #ifndef AT86RF215_PARAM_SPI_CLK #define AT86RF215_PARAM_SPI_CLK (SPI_CLK_5MHZ) #endif #ifndef AT86RF215_PARAM_CS #define AT86RF215_PARAM_CS (GPIO_PIN(2, 14)) #endif #ifndef AT86RF215_PARAM_INT #define AT86RF215_PARAM_INT (GPIO_PIN(2, 30)) #endif #ifndef AT86RF215_PARAM_RESET #define AT86RF215_PARAM_RESET (GPIO_PIN(3, 10)) #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 */ /** @} */