mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/lobaro-lorabox: make sx127x definition consistent
No need to specify SX127X_PARAMS structure as it is already defined in drivers/sx127x/include/sx127x_params.h. Also remove SX127X_PARAM_SPI and SX127X_PARAM_PASELECT as their values are the same as default ones. Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
This commit is contained in:
parent
0911ddfe07
commit
2c41c9e094
@ -51,31 +51,12 @@ extern "C" {
|
||||
* SX127X configuration.
|
||||
* @{
|
||||
*/
|
||||
#define SX127X_PARAM_SPI (SPI_DEV(0))
|
||||
|
||||
#define SX127X_PARAM_SPI_NSS GPIO_PIN(PORT_B, 0)
|
||||
|
||||
#define SX127X_PARAM_RESET GPIO_PIN(PORT_A, 4)
|
||||
|
||||
#define SX127X_PARAM_DIO0 GPIO_PIN(PORT_B, 1)
|
||||
|
||||
#define SX127X_PARAM_DIO1 GPIO_PIN(PORT_B, 10)
|
||||
|
||||
#define SX127X_PARAM_DIO2 GPIO_PIN(PORT_B, 11)
|
||||
|
||||
#define SX127X_PARAM_DIO3 GPIO_PIN(PORT_B, 7)
|
||||
|
||||
#define SX127X_PARAM_PASELECT (SX127X_PA_RFO)
|
||||
|
||||
#define SX127X_PARAMS { .spi = SX127X_PARAM_SPI, \
|
||||
.nss_pin = SX127X_PARAM_SPI_NSS, \
|
||||
.reset_pin = SX127X_PARAM_RESET, \
|
||||
.dio0_pin = SX127X_PARAM_DIO0, \
|
||||
.dio1_pin = SX127X_PARAM_DIO1, \
|
||||
.dio2_pin = SX127X_PARAM_DIO2, \
|
||||
.dio3_pin = SX127X_PARAM_DIO3, \
|
||||
.paselect = SX127X_PARAM_PASELECT \
|
||||
}
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user