- radio.cpp: Add custom SPI bus initialization for boards with non-default pins (conditional on LORA_PIN_SCLK definition). Pass lora_spi object to Module instantiation for SX1262/LR1110. - radio.cpp: Add TCXO voltage to SX1262/LR1110 chip_begin() as 8th parameter (using SX126X_DIO3_TCXO_VOLTAGE macro or 0 if undefined). - radio.cpp: Add post-begin SX126X configuration: setDio2AsRfSwitch(), setCurrentLimit(), setRxBoostedGainMode() (conditional on build macros). - radio.cpp: Fix radio_tx() const conversion for RadioLib transmit() API compatibility. - config.h: Add LORA_TX_POWER → LORA_POWER_DBM alias for boards like Heltec V3 that define power via LORA_TX_POWER. Use #ifndef guard to avoid redefinition warnings. - platformio.ini: Add -Wall -Werror to treat warnings as fatal in our code (excluding SDK/framework). - platformio.ini: Add -std=c99 build flag for KISS C99 support. - src/kiss.c → src/kiss.cpp: Rename to .cpp so Arduino framework compiles it. Verified: Builds cleanly for seeed_xiao_s3_wio_sx1262 and heltec_v3 with no warnings.
28 lines
700 B
INI
28 lines
700 B
INI
; Seeed Xiao S3 + Wio SX1262 — ESP32-S3, SX1262
|
|
[env:seeed_xiao_s3_wio_sx1262]
|
|
extends = soc_esp32s3, env:base
|
|
board = seeed_xiao_esp32s3
|
|
build_flags =
|
|
${soc_esp32s3.build_flags}
|
|
${env:base.build_flags}
|
|
-DBOARD_SEEED_XIAO_S3_WIO_SX1262
|
|
-DLORA_CHIP_SX1262
|
|
-DLORA_PIN_NSS=41
|
|
-DLORA_PIN_DIO1=39
|
|
-DLORA_PIN_RESET=42
|
|
-DLORA_PIN_BUSY=40
|
|
; SPI pins
|
|
-DLORA_PIN_SCLK=7
|
|
-DLORA_PIN_MISO=8
|
|
-DLORA_PIN_MOSI=9
|
|
; SX1262 RF switch and tuning
|
|
-DSX126X_DIO2_AS_RF_SWITCH=true
|
|
-DSX126X_DIO3_TCXO_VOLTAGE=1.8
|
|
-DSX126X_CURRENT_LIMIT=140
|
|
; GPIO
|
|
-DUSER_BTN_PIN=21
|
|
-DSTATUS_LED_PIN=48
|
|
; I2C (SoC pins)
|
|
-DSOC_PIN_SDA=4
|
|
-DSOC_PIN_SCL=5
|