Skip to content

Commit

Permalink
Merge pull request #5917 from PeterKietzmann/telosb_add_cc2420
Browse files Browse the repository at this point in the history
boards/telosb: add cc2420 configuration
  • Loading branch information
haukepetersen authored Oct 17, 2016
2 parents 4db9b35 + 5c1c61d commit c978883
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions boards/telosb/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c978883

Please sign in to comment.