- 
                Notifications
    You must be signed in to change notification settings 
- Fork 227
Description
Hi
I am trying to make this library work with the RAK811 module, but I can not find the correct configuration, I think my problem is in the definition and use of the pins
RADIO_RF_CRX_RX                             PB_6  //CRF3 (ANT_SWITCH_TX_BOOST)
RADIO_RF_CBT_HF                             PB_7  //CRF2 HF (ANT_SWITCH_TX_RFO)
RADIO_RF_CTX_PA                             PA_4  //CRF1 PA (ANT_SWITCH_RX)
// LORA
#define RADIO_RESET_PORT        PB13
#define RADIO_MOSI_PORT         PA7
#define RADIO_MISO_PORT         PA6
#define RADIO_SCLK_PORT         PA5
#define RADIO_NSS_PORT          PB0
#define RADIO_DIO_0_PORT        PA11
#define RADIO_DIO_1_PORT        PB1
#define RADIO_DIO_2_PORT        PA3
#define RADIO_DIO_3_PORT        PH0
#define RADIO_DIO_4_PORT        PC13
//#define RADIO_DIO_5_PORT        PA4
#define RADIO_RF_CRX_RX                             PB_6  //CRF3 (ANT_SWITCH_TX_BOOST)
#define RADIO_RF_CBT_HF                             PB_7  //CRF2 HF (ANT_SWITCH_TX_RFO)
#define RADIO_RF_CTX_PA                             PA_4  //CRF1 PA (ANT_SWITCH_RX)
#define RADIO_XTAL_EN                               PH_1
My Pin mapping
const lmic_pinmap lmic_pins = {
.nss = RADIO_NSS_PORT,
.rxtx = RADIO_RF_CRX_RX,
.rst = RADIO_RESET_PORT,
.dio = {RADIO_DIO_0_PORT, RADIO_DIO_1_PORT, RADIO_DIO_2_PORT},
// the RAK811 module needs D29 high for RX, low for TX.
//.rxtx_rx_polarity = 1
.rxtx_rx_active = 0,
// the Murata module is direct-wired, we can use 8 MHz for SPI.
.spi_freq = 8000000
};
Datasheet: https://github.com/RAKWireless/WisNode-LoRa/blob/master/Doc/RAK811%20SCH.pdf
sx1276-board.c: https://github.com/RAKWireless/RAK811_BreakBoard/blob/master/src/boards/RAK811BreakBoard/sx1276-board.c
Thanks