From 1788444f5f2587103689c8cb84288afcc62286b9 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Wed, 28 Feb 2018 18:31:14 +0100 Subject: [PATCH] boards/telosb: fix driver params usage --- boards/telosb/include/board.h | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/boards/telosb/include/board.h b/boards/telosb/include/board.h index 281c71d9e1..85e41fd067 100644 --- a/boards/telosb/include/board.h +++ b/boards/telosb/include/board.h @@ -97,17 +97,18 @@ extern "C" { /** @} */ /** - * @brief Definition of the interface to the CC2420 radio + * @name Definition of the interface to the CC2420 radio + * @{ */ -#define CC2420_PARAMS_BOARD {.spi = SPI_DEV(0), \ - .spi_clk = SPI_CLK_1MHZ , \ - .pin_cs = GPIO_PIN(P4, 2), \ - .pin_fifo = GPIO_PIN(P1, 3), \ - .pin_fifop = GPIO_PIN(P1, 0), \ - .pin_cca = GPIO_PIN(P1, 4), \ - .pin_sfd = GPIO_PIN(P4, 1), \ - .pin_vrefen = GPIO_PIN(P4, 5), \ - .pin_reset = GPIO_PIN(P4, 6)} +#define CC2420_PARAM_SPI_CLK (SPI_CLK_1MHZ) +#define CC2420_PARAM_CS GPIO_PIN(P4, 2) +#define CC2420_PARAM_FIFO GPIO_PIN(P1, 3) +#define CC2420_PARAM_FIFOP GPIO_PIN(P1, 0) +#define CC2420_PARAM_CCA GPIO_PIN(P1, 4) +#define CC2420_PARAM_SFD GPIO_PIN(P4, 1) +#define CC2420_PARAM_VREFEN GPIO_PIN(P4, 5) +#define CC2420_PARAM_RESET GPIO_PIN(P4, 6) +/** @} */ #ifdef __cplusplus }