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

Merge pull request #8690 from aabadie/pr/drivers/params/kw2xrf

drivers/kw2xrf: use new driver params scheme
This commit is contained in:
Martine Lenders 2018-03-08 17:21:26 +01:00 committed by GitHub
commit 55950dd814
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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