1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/kw2xrf: use new driver params scheme

This commit is contained in:
Alexandre Abadie 2018-02-28 17:50:36 +01:00
parent 291922be34
commit 036a09e9f0

View File

@ -48,10 +48,12 @@ extern "C" {
#define KW2XRF_PARAM_RESET (GPIO_PIN(0, 3))
#endif
#define KW2XRF_PARAMS_DEFAULT {.spi = KW2XRF_PARAM_SPI, \
.spi_clk = KW2XRF_PARAM_SPI_CLK, \
.cs_pin = KW2XRF_PARAM_CS, \
.int_pin = KW2XRF_PARAM_INT }
#ifndef KW2XRF_PARAMS
#define KW2XRF_PARAMS { .spi = KW2XRF_PARAM_SPI, \
.spi_clk = KW2XRF_PARAM_SPI_CLK, \
.cs_pin = KW2XRF_PARAM_CS, \
.int_pin = KW2XRF_PARAM_INT }
#endif
/**@}*/
/**
@ -59,11 +61,7 @@ extern "C" {
*/
static const kw2xrf_params_t kw2xrf_params[] =
{
#ifdef KW2XRF_PARAMS_BOARD
KW2XRF_PARAMS_BOARD,
#else
KW2XRF_PARAMS_DEFAULT,
#endif
KW2XRF_PARAMS
};
#ifdef __cplusplus