drivers/kw2xrf: use new driver params scheme
This commit is contained in:
parent
291922be34
commit
036a09e9f0
@ -48,10 +48,12 @@ extern "C" {
|
|||||||
#define KW2XRF_PARAM_RESET (GPIO_PIN(0, 3))
|
#define KW2XRF_PARAM_RESET (GPIO_PIN(0, 3))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define KW2XRF_PARAMS_DEFAULT {.spi = KW2XRF_PARAM_SPI, \
|
#ifndef KW2XRF_PARAMS
|
||||||
|
#define KW2XRF_PARAMS { .spi = KW2XRF_PARAM_SPI, \
|
||||||
.spi_clk = KW2XRF_PARAM_SPI_CLK, \
|
.spi_clk = KW2XRF_PARAM_SPI_CLK, \
|
||||||
.cs_pin = KW2XRF_PARAM_CS, \
|
.cs_pin = KW2XRF_PARAM_CS, \
|
||||||
.int_pin = KW2XRF_PARAM_INT }
|
.int_pin = KW2XRF_PARAM_INT }
|
||||||
|
#endif
|
||||||
/**@}*/
|
/**@}*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -59,11 +61,7 @@ extern "C" {
|
|||||||
*/
|
*/
|
||||||
static const kw2xrf_params_t kw2xrf_params[] =
|
static const kw2xrf_params_t kw2xrf_params[] =
|
||||||
{
|
{
|
||||||
#ifdef KW2XRF_PARAMS_BOARD
|
KW2XRF_PARAMS
|
||||||
KW2XRF_PARAMS_BOARD,
|
|
||||||
#else
|
|
||||||
KW2XRF_PARAMS_DEFAULT,
|
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user