drivers/cc2420: use new driver params scheme
This commit is contained in:
parent
291922be34
commit
eb81eae060
@ -57,7 +57,8 @@ extern "C" {
|
||||
#define CC2420_PARAM_RESET (GPIO_PIN(0, 3))
|
||||
#endif
|
||||
|
||||
#define CC2420_PARAMS_DEFAULT {.spi = CC2420_PARAM_SPI, \
|
||||
#ifndef CC2420_PARAMS
|
||||
#define CC2420_PARAMS { .spi = CC2420_PARAM_SPI, \
|
||||
.spi_clk = CC2420_PARAM_SPI_CLK, \
|
||||
.pin_cs = CC2420_PARAM_CS, \
|
||||
.pin_fifo = CC2420_PARAM_FIFO, \
|
||||
@ -66,6 +67,7 @@ extern "C" {
|
||||
.pin_sfd = CC2420_PARAM_SFD, \
|
||||
.pin_vrefen = CC2420_PARAM_VREFEN, \
|
||||
.pin_reset = CC2420_PARAM_RESET }
|
||||
#endif
|
||||
/**@}*/
|
||||
|
||||
/**
|
||||
@ -73,11 +75,7 @@ extern "C" {
|
||||
*/
|
||||
static const cc2420_params_t cc2420_params[] =
|
||||
{
|
||||
#ifdef CC2420_PARAMS_BOARD
|
||||
CC2420_PARAMS_BOARD,
|
||||
#else
|
||||
CC2420_PARAMS_DEFAULT,
|
||||
#endif
|
||||
CC2420_PARAMS
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user