make sure that the interrupt driver is compiled

see discussion in PR #308

experimental sanity checks added, will possibly remove them later.
This commit is contained in:
Frank
2026-01-08 12:18:42 +01:00
parent 01331b205e
commit db847f590b
3 changed files with 8 additions and 4 deletions

View File

@@ -29,7 +29,7 @@ License along with NeoPixel. If not, see
#pragma once #pragma once
#if defined(ARDUINO_ARCH_ESP32) #if defined(ARDUINO_ARCH_ESP32)
#if !defined(WLED_USE_SHARED_RMT) && !defined(__riscv) && (ESP_IDF_VERSION_MAJOR >= 4) // WLEDMM don't compile this file on unsupported platforms #if !defined(WLED_USE_SHARED_RMT) // WLEDMM don't compile this file on unsupported platforms
// Use the NeoEspRmtSpeed types from the driver-based implementation // Use the NeoEspRmtSpeed types from the driver-based implementation
#include <NeoPixelBus.h> #include <NeoPixelBus.h>

View File

@@ -5,8 +5,12 @@
* *
*/ */
#if !defined(ESP32) && !defined(ESP8266) // WLEDMM buildenv sanity check (experimental)
#error neither ESP32 nor ESP8266, don't know what to do
#endif
#if defined(__XTENSA__) && defined(ESP32) && !defined(CONFIG_BTDM_CTRL_HLI) #if defined(__XTENSA__) && defined(ESP32) && !defined(CONFIG_BTDM_CTRL_HLI)
#if !defined(WLED_USE_SHARED_RMT) && !defined(__riscv) && defined(ARDUINO_ARCH_ESP32) && (ESP_IDF_VERSION_MAJOR >= 4) // WLEDMM don't compile this file on unsupported platforms #if !defined(WLED_USE_SHARED_RMT) // WLEDMM don't compile this file on unsupported platforms
#include <freertos/xtensa_context.h> #include <freertos/xtensa_context.h>
#include "sdkconfig.h" #include "sdkconfig.h"
@@ -261,5 +265,5 @@ ld_include_hli_vectors_rmt:
#endif // CONFIG_BTDM_CTRL_HLI #endif // CONFIG_BTDM_CTRL_HLI
#endif // WLEDMM #endif // WLED_USE_SHARED_RMT
#endif // XTensa #endif // XTensa

View File

@@ -30,7 +30,7 @@ License along with NeoPixel. If not, see
#include <Arduino.h> #include <Arduino.h>
#if defined(ARDUINO_ARCH_ESP32) #if defined(ARDUINO_ARCH_ESP32)
#if !defined(WLED_USE_SHARED_RMT) && !defined(__riscv) && (ESP_IDF_VERSION_MAJOR >= 4) // WLEDMM don't compile this file on unsupported platforms #if !defined(WLED_USE_SHARED_RMT) // WLEDMM don't compile this file on unsupported platforms
#include <algorithm> #include <algorithm>
#include "esp_idf_version.h" #include "esp_idf_version.h"