Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions variants/station_g3_esp32_rf2/platformio.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
; Station G3 ESP32 second RF slot (RF2)
;
; Reuses the existing Station G3 environments and source code while
; overriding only the GPIOs that differ between RF1 and RF2.

[station_g3_esp32_rf2_pins]
build_unflags =
; Remove RF1 pin definitions inherited from Station_G3_ESP32
-D P_LORA_DIO_1
-D P_LORA_NSS
-D P_LORA_RESET
-D P_LORA_BUSY
-D P_LORA_SCLK
-D P_LORA_MISO
-D P_LORA_MOSI
-D P_PRIMARY_LNA_EN

build_flags =
; Station G3 RF2 pin definitions
-D P_LORA_DIO_1=2
-D P_LORA_NSS=43
-D P_LORA_RESET=44
-D P_LORA_BUSY=1
-D P_LORA_SCLK=39
-D P_LORA_MISO=41
-D P_LORA_MOSI=40
-D P_PRIMARY_LNA_EN=42


[env:Station_G3_ESP32_RF2_repeater]
extends = env:Station_G3_ESP32_repeater
build_flags =
${env:Station_G3_ESP32_repeater.build_flags}
${station_g3_esp32_rf2_pins.build_flags}


[env:Station_G3_ESP32_RF2_repeater_observer_mqtt]
extends = env:Station_G3_ESP32_repeater_observer_mqtt
build_flags =
${env:Station_G3_ESP32_repeater_observer_mqtt.build_flags}
${station_g3_esp32_rf2_pins.build_flags}