20#ifndef SX127X_PARAMS_H
21#define SX127X_PARAMS_H
35#ifndef SX127X_PARAM_SPI
36#define SX127X_PARAM_SPI (SPI_DEV(0))
39#ifndef SX127X_PARAM_SPI_NSS
40#define SX127X_PARAM_SPI_NSS GPIO_PIN(1, 6)
43#ifndef SX127X_PARAM_RESET
44#define SX127X_PARAM_RESET GPIO_PIN(0, 0)
47#ifndef SX127X_PARAM_DIO0
48#define SX127X_PARAM_DIO0 GPIO_PIN(0, 10)
51#ifndef SX127X_PARAM_DIO1
52#define SX127X_PARAM_DIO1 GPIO_PIN(1, 3)
55#ifndef SX127X_PARAM_DIO2
56#define SX127X_PARAM_DIO2 GPIO_PIN(1, 5)
59#ifndef SX127X_PARAM_DIO3
60#define SX127X_PARAM_DIO3 GPIO_PIN(1, 4)
63#ifndef SX127X_PARAM_PASELECT
64#define SX127X_PARAM_PASELECT (SX127X_PA_RFO)
67#ifndef SX127X_PARAM_TX_SWITCH
68#define SX127X_PARAM_TX_SWITCH GPIO_UNDEF
71#ifndef SX127X_PARAM_RX_SWITCH
72#define SX127X_PARAM_RX_SWITCH GPIO_UNDEF
76#if defined(SX127X_USE_TX_SWITCH) || defined(SX127X_USE_RX_SWITCH)
77#define SX127X_PARAMS { .spi = SX127X_PARAM_SPI, \
78 .nss_pin = SX127X_PARAM_SPI_NSS, \
79 .reset_pin = SX127X_PARAM_RESET, \
80 .dio0_pin = SX127X_PARAM_DIO0, \
81 .dio1_pin = SX127X_PARAM_DIO1, \
82 .dio2_pin = SX127X_PARAM_DIO2, \
83 .dio3_pin = SX127X_PARAM_DIO3, \
84 .rx_switch_pin = SX127X_PARAM_RX_SWITCH, \
85 .tx_switch_pin = SX127X_PARAM_TX_SWITCH, \
86 .paselect = SX127X_PARAM_PASELECT }
88#define SX127X_PARAMS { .spi = SX127X_PARAM_SPI, \
89 .nss_pin = SX127X_PARAM_SPI_NSS, \
90 .reset_pin = SX127X_PARAM_RESET, \
91 .dio0_pin = SX127X_PARAM_DIO0, \
92 .dio1_pin = SX127X_PARAM_DIO1, \
93 .dio2_pin = SX127X_PARAM_DIO2, \
94 .dio3_pin = SX127X_PARAM_DIO3, \
95 .paselect = SX127X_PARAM_PASELECT }
static const sx127x_params_t sx127x_params[]
Board specific SX127X configuration.
SX127X hardware and global parameters.
Public interface for SX127X driver.