Browse Source

boards/telosb: add cc2420 configuration

pr/spi.typo
PeterKietzmann 6 years ago
parent
commit
5c1c61d634
  1. 13
      boards/telosb/include/board.h

13
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

Loading…
Cancel
Save