feat(kiss): add dual-profile radio2 support for OpenHop

This commit is contained in:
mikecarper committed 2026-09-20 07:59:43 -07:00
1 parent 66b605a49d
commit 7657840d38
9 files changed
+796 -46

No files matched your search

+12 -1
View File
@@ -1,11 +1,22 @@
#include <Arduino.h>
#include "target.h"
// Normal V4 images retain the established RadioLib Arduino HAL. The KISS
// modem can opt into buffered SPI for its on-board dual-profile RX scanner.
#if defined(MC_SX1262_BUFFERED_RADIO_HAL) && MC_SX1262_BUFFERED_RADIO_HAL
#include <helpers/radiolib/ESP32BufferedRadioHal.h>
#endif
HeltecV4Board board;
#if defined(P_LORA_SCLK)
static SPIClass spi;
RADIO_CLASS radio = new Module(P_LORA_NSS, P_LORA_DIO_1, P_LORA_RESET, P_LORA_BUSY, spi);
#if defined(MC_SX1262_BUFFERED_RADIO_HAL) && MC_SX1262_BUFFERED_RADIO_HAL
static ESP32BufferedRadioHal radio_hal(spi);
RADIO_CLASS radio = new Module(&radio_hal, P_LORA_NSS, P_LORA_DIO_1, P_LORA_RESET, P_LORA_BUSY);
#else
RADIO_CLASS radio = new Module(P_LORA_NSS, P_LORA_DIO_1, P_LORA_RESET, P_LORA_BUSY, spi);
#endif
#else
RADIO_CLASS radio = new Module(P_LORA_NSS, P_LORA_DIO_1, P_LORA_RESET, P_LORA_BUSY);
#endif