From 5c1c61d6348e1fbaa222c66510a0a56c980100a2 Mon Sep 17 00:00:00 2001 From: PeterKietzmann Date: Fri, 7 Oct 2016 17:06:56 +0200 Subject: [PATCH] boards/telosb: add cc2420 configuration --- boards/telosb/include/board.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/boards/telosb/include/board.h b/boards/telosb/include/board.h index dd03ca175ed0..332ef52ef457 100644 --- a/boards/telosb/include/board.h +++ b/boards/telosb/include/board.h @@ -99,6 +99,19 @@ extern "C" { #define LED2_TOGGLE (LED_OUT_REG ^= LED2_MASK) /** @} */ +/** + * @brief Definition of the interface to the CC2420 radio + */ +#define CC2420_PARAMS_BOARD {.spi = SPI_0, \ + .spi_clk = SPI_SPEED_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)} + #ifdef __cplusplus } #endif