19#ifndef KW2XRF_PARAMS_H
20#define KW2XRF_PARAMS_H
33#ifndef KW2XRF_PARAM_SPI
34#define KW2XRF_PARAM_SPI (SPI_DEV(0))
36#ifndef KW2XRF_PARAM_SPI_CLK
37#define KW2XRF_PARAM_SPI_CLK (SPI_CLK_10MHZ)
39#ifndef KW2XRF_PARAM_CS
40#define KW2XRF_PARAM_CS (GPIO_PIN(0, 0))
42#ifndef KW2XRF_PARAM_INT
43#define KW2XRF_PARAM_INT (GPIO_PIN(0, 1))
45#ifndef KW2XRF_PARAM_SLEEP
46#define KW2XRF_PARAM_SLEEP (GPIO_PIN(0, 2))
48#ifndef KW2XRF_PARAM_RESET
49#define KW2XRF_PARAM_RESET (GPIO_PIN(0, 3))
53#define KW2XRF_PARAMS { .spi = KW2XRF_PARAM_SPI, \
54 .spi_clk = KW2XRF_PARAM_SPI_CLK, \
55 .cs_pin = KW2XRF_PARAM_CS, \
56 .int_pin = KW2XRF_PARAM_INT, \
57 .rst_pin = KW2XRF_PARAM_RESET }
Interface definition for the kw2xrf driver.
Struct holding all params needed for device initialization.