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

+8
View File
@@ -847,6 +847,14 @@ build_unflags =
build_flags =
${Heltec_lora32_v4.build_flags}
-DARDUINO_USB_MODE=1
; KISS radio2 scanning stays on the board. This narrowly opts this target
; into the guarded SX1262 RX-to-RX fast path and buffered 8 MHz SPI. The
; host-powered modem also uses the established V4 160 MHz role override;
; normal V4 images retain their lower-power 80 MHz policy.
-D MC_SX1262_FAST_PROFILE_SWITCH=1
-D MC_SX1262_BUFFERED_RADIO_HAL=1
-D MC_SX1262_SPI_HZ=8000000
-D ESP32_CPU_FREQ=160
build_src_filter = ${Heltec_lora32_v4.build_src_filter}
+<../examples/kiss_modem/>
+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