mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2026-04-27 22:35:36 +00:00
Add driver and board support for the Semtech LR1121 radio on the LilyGo T-Beam Supreme V3.0 (BOARD_TBEAM_S_LR_V1 0x43). New files: - lr11xx.h/cpp: LR1121 driver extending Stream, matching the sx126x interface for duck-typed LoRa pointer compatibility. Implements 2-byte opcode SPI protocol with two-phase reads, inline MISO status capture, DIO9 interrupt handling, and carrier detection via preamble/header IRQ polling. Key LR1121 differences from SX126x handled in the driver: - SPI uses 2-byte opcodes with NSS release between command and response phases (vs single-phase on SX126x) - SetPacketParams PayloadLen is enforced in explicit header mode (SX126x ignores it) — receive() sets PayloadLen=0 to accept any length - ESP32S3 requires explicit SPI pin assignment via SPI.begin(sclk, miso, mosi, cs) - RF switch configured via SetDioAsRfSwitch command (DIO5/DIO6) rather than external GPIO control - TCXO at 3.0V via SetTcxoMode command - High Power PA with configurable output up to +22dBm Modified files: - Modem.h: add LR11XX modem type - Boards.h: add BOARD_TBEAM_S_LR_V1 with pin definitions and model codes (MODEL_D3/DF/D7 for 433/868/2400 MHz) - Utilities.h: add LR11XX modem selection, LED stubs, model validation, and kiss_indicate_log() for KISS-framed debug output - RNode_Firmware.ino: add LR11XX cases for setPins, symbol calculation, TX power clamping, and serial wait exclusion - Display.h: add BOARD_TBEAM_S_LR_V1 alongside BOARD_TBEAM_S_V1 - Power.h: add BOARD_TBEAM_S_LR_V1 alongside BOARD_TBEAM_S_V1 - Makefile: add firmware-tbeam_supreme_lr1121 build target
5 lines
100 B
C
5 lines
100 B
C
#define SX1276 0x01
|
|
#define SX1278 0x02
|
|
#define SX1262 0x03
|
|
#define SX1280 0x04
|
|
#define LR11XX 0x05
|