19#ifndef CC2420_PARAMS_H
20#define CC2420_PARAMS_H
33#ifndef CC2420_PARAM_SPI
34#define CC2420_PARAM_SPI (SPI_DEV(0))
36#ifndef CC2420_PARAM_SPI_CLK
37#define CC2420_PARAM_SPI_CLK (SPI_CLK_5MHZ)
39#ifndef CC2420_PARAM_CS
40#define CC2420_PARAM_CS (GPIO_PIN(0, 0))
42#ifndef CC2420_PARAM_FIFO
43#define CC2420_PARAM_FIFO (GPIO_PIN(0, 1))
45#ifndef CC2420_PARAM_FIFOP
46#define CC2420_PARAM_FIFOP (GPIO_PIN(0, 2))
48#ifndef CC2420_PARAM_CCA
49#define CC2420_PARAM_CCA (GPIO_PIN(0, 3))
51#ifndef CC2420_PARAM_SFD
52#define CC2420_PARAM_SFD (GPIO_PIN(0, 3))
54#ifndef CC2420_PARAM_VREFEN
55#define CC2420_PARAM_VREFEN (GPIO_PIN(0, 3))
57#ifndef CC2420_PARAM_RESET
58#define CC2420_PARAM_RESET (GPIO_PIN(0, 3))
62#define CC2420_PARAMS { .spi = CC2420_PARAM_SPI, \
63 .spi_clk = CC2420_PARAM_SPI_CLK, \
64 .pin_cs = CC2420_PARAM_CS, \
65 .pin_fifo = CC2420_PARAM_FIFO, \
66 .pin_fifop = CC2420_PARAM_FIFOP, \
67 .pin_cca = CC2420_PARAM_CCA, \
68 .pin_sfd = CC2420_PARAM_SFD, \
69 .pin_vrefen = CC2420_PARAM_VREFEN, \
70 .pin_reset = CC2420_PARAM_RESET }
Interface definition for the CC2420 driver.
Struct holding all parameters needed for device initialization.