Fix ESP32 repeater build targets

This commit is contained in:
mikecarper committed 2026-06-25 14:02:01 -07:00
1 parent 4e63941c92
commit 98f8b11c57
4 files changed
+19 -5

No files matched your search

+2
View File
@@ -86,6 +86,7 @@ void ESP32Board::enterDeepSleep(uint32_t secs) {
// Power off LoRa
radio_driver.powerOff();
#ifdef P_LORA_NSS
// Keep LoRa inactive during deepsleep
digitalWrite(P_LORA_NSS, HIGH);
#if CONFIG_IDF_TARGET_ESP32C3
@@ -93,6 +94,7 @@ void ESP32Board::enterDeepSleep(uint32_t secs) {
#else
rtc_gpio_hold_en((gpio_num_t)P_LORA_NSS);
#endif
#endif
// Power off GPS if any
if (sensors.getLocationProvider() != NULL) {
+15 -3
View File
@@ -70,7 +70,11 @@ public:
void enterDeepSleep(uint32_t secs);
uint32_t getIRQGpio() override {
#ifdef P_LORA_DIO_1
return P_LORA_DIO_1; // default for SX1262
#else
return -1;
#endif
}
void sleep(uint32_t secs) override {
@@ -80,14 +84,22 @@ public:
return;
}
// Set GPIO wakeup
gpio_num_t wakeupPin = (gpio_num_t)getIRQGpio();
// Configure timer wakeup
if (secs > 0) {
esp_sleep_enable_timer_wakeup(secs * 1000000ULL); // Wake up periodically to do scheduled jobs
}
uint32_t irqGpio = getIRQGpio();
if (irqGpio == static_cast<uint32_t>(-1)) {
if (secs > 0) {
esp_light_sleep_start();
}
return;
}
// Set GPIO wakeup
gpio_num_t wakeupPin = (gpio_num_t)irqGpio;
// Disable CPU interrupt servicing
portENTER_CRITICAL(&sleepMux);
+1
View File
@@ -4,6 +4,7 @@ board = esp32-c3-devkitm-1
build_flags =
${esp32_base.build_flags}
-I variants/tenstar_c3
-I variants/xiao_c3
-D ESP32_CPU_FREQ=80
-D LORA_TX_BOOST_PIN=4
-D P_LORA_TX_NEOPIXEL_LED=10
+1 -2
View File
@@ -3,7 +3,7 @@
#define RADIOLIB_STATIC_ONLY 1
#include <RadioLib.h>
#include <helpers/radiolib/RadioLibWrappers.h>
#include <helpers/XiaoC3Board.h>
#include <XiaoC3Board.h>
#include <helpers/radiolib/CustomSX1262Wrapper.h>
#include <helpers/radiolib/CustomSX1268Wrapper.h>
#include <helpers/AutoDiscoverRTCClock.h>
@@ -16,4 +16,3 @@ extern SensorManager sensors;
bool radio_init();
mesh::LocalIdentity radio_new_identity();