Skip to content
Snippets Groups Projects
Commit a492207e authored by Alexandre Abadie's avatar Alexandre Abadie
Browse files

drivers/mrf24j40: use new driver params scheme

parent 291922be
No related branches found
No related tags found
No related merge requests found
...@@ -47,11 +47,13 @@ extern "C" { ...@@ -47,11 +47,13 @@ extern "C" {
#define MRF24J40_PARAM_RESET (GPIO_PIN(0, 3)) #define MRF24J40_PARAM_RESET (GPIO_PIN(0, 3))
#endif #endif
#define MRF24J40_PARAMS_DEFAULT { .spi = MRF24J40_PARAM_SPI, \ #ifndef MRF24J40_PARAMS
#define MRF24J40_PARAMS { .spi = MRF24J40_PARAM_SPI, \
.spi_clk = MRF24J40_PARAM_SPI_CLK, \ .spi_clk = MRF24J40_PARAM_SPI_CLK, \
.cs_pin = MRF24J40_PARAM_CS, \ .cs_pin = MRF24J40_PARAM_CS, \
.int_pin = MRF24J40_PARAM_INT, \ .int_pin = MRF24J40_PARAM_INT, \
.reset_pin = MRF24J40_PARAM_RESET } .reset_pin = MRF24J40_PARAM_RESET }
#endif
/**@}*/ /**@}*/
/** /**
...@@ -59,11 +61,7 @@ extern "C" { ...@@ -59,11 +61,7 @@ extern "C" {
*/ */
static const mrf24j40_params_t mrf24j40_params[] = static const mrf24j40_params_t mrf24j40_params[] =
{ {
#ifdef MRF24J40_PARAMS_BOARD MRF24J40_PARAMS
MRF24J40_PARAMS_BOARD,
#else
MRF24J40_PARAMS_DEFAULT,
#endif
}; };
#ifdef __cplusplus #ifdef __cplusplus
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment