Browse Source

Define P_LORA_DIO_1 as build flag for RAK11200

origin/dev's ESP32Board::getIRQGpio() references P_LORA_DIO_1 from the
base header, which is compiled before the variant header. Move the pin
to a -D build flag (matching every other ESP32 board) so it is visible
globally.
pull/1925/head
Wessel Nieboer 1 week ago
parent
commit
8ff422d6b4
No known key found for this signature in database GPG Key ID: 929C8E45E33B5FD2
  1. 2
      variants/rak11200/RAK11200Board.h
  2. 1
      variants/rak11200/platformio.ini

2
variants/rak11200/RAK11200Board.h

@ -4,7 +4,7 @@
#include <helpers/ESP32Board.h>
// LoRa radio module pins when paired with the RAK13300 SX1262 module
#define P_LORA_DIO_1 22 // GPIO22 (ESP32 pin 36 -> IO6/DIO1)
// P_LORA_DIO_1 is defined as a build flag (platformio.ini) so the base ESP32Board.h sees it
#define P_LORA_NSS 32 // GPIO32 (ESP32 pin 8 -> SPI_CS)
#define P_LORA_RESET 23 // GPIO23 (ESP32 pin 37 -> IO4/NRESET)
#define P_LORA_BUSY 13 // GPIO13 (ESP32 pin 16 -> IO5)

1
variants/rak11200/platformio.ini

@ -16,6 +16,7 @@ build_flags =
-D PIN_OLED_RESET=-1
-D RADIO_CLASS=CustomSX1262
-D WRAPPER_CLASS=CustomSX1262Wrapper
-D P_LORA_DIO_1=22 ; GPIO22 (ESP32 pin 36 -> IO6/DIO1); build flag so base ESP32Board.h getIRQGpio() sees it
-D LORA_TX_POWER=22
-D SX126X_CURRENT_LIMIT=140
-D SX126X_DIO2_AS_RF_SWITCH=true

Loading…
Cancel
Save