From 411fbf94de4693806c0dcad8ec6e467809c7c5c4 Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Mon, 23 May 2022 23:54:16 +0200 Subject: [PATCH] Cleanup arduino useless bullshit --- FastLED.cpp | 2 +- FastLED.h | 2 -- fastled_delay.h | 2 ++ led_sysdefs.h | 5 ----- platforms/esp/32/clockless_rmt_esp32.h | 1 - 5 files changed, 3 insertions(+), 9 deletions(-) diff --git a/FastLED.cpp b/FastLED.cpp index 6330fd1..7faa348 100644 --- a/FastLED.cpp +++ b/FastLED.cpp @@ -1,6 +1,6 @@ #define FASTLED_INTERNAL #include "FastLED.h" - +#include "esp32-hal-misc.h" #if defined(__SAM3X8E__) volatile uint32_t fuckit; diff --git a/FastLED.h b/FastLED.h index ad6ab9a..e2ac245 100644 --- a/FastLED.h +++ b/FastLED.h @@ -10,8 +10,6 @@ #endif #define FASTLED_NO_PINMAP -//#include "esp32-hal.h" - #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) #define FASTLED_HAS_PRAGMA_MESSAGE #endif diff --git a/fastled_delay.h b/fastled_delay.h index b6a97d0..53b3c7a 100644 --- a/fastled_delay.h +++ b/fastled_delay.h @@ -8,6 +8,8 @@ #include "FastLED.h" +#include "esp32-hal-cpu.h" + ///@file fastled_delay.h ///Utility functions and classes for managing delaycycles diff --git a/led_sysdefs.h b/led_sysdefs.h index 484d6cf..82be7a5 100644 --- a/led_sysdefs.h +++ b/led_sysdefs.h @@ -56,11 +56,6 @@ #define FASTLED_USING_NAMESPACE #endif -// Arduino.h needed for convenience functions digitalPinToPort/BitMask/portOutputRegister and the pinMode methods. -#ifdef ARDUINO -#include -#endif - // F_CPU is almost certainly not defined BB //#define CLKS_PER_US (F_CPU/1000000) diff --git a/platforms/esp/32/clockless_rmt_esp32.h b/platforms/esp/32/clockless_rmt_esp32.h index c68158b..7f38527 100644 --- a/platforms/esp/32/clockless_rmt_esp32.h +++ b/platforms/esp/32/clockless_rmt_esp32.h @@ -114,7 +114,6 @@ extern "C" { #endif #include "esp_idf_version.h" -//#include "esp32-hal.h" #include "esp_intr_alloc.h" #include "driver/gpio.h" #include "driver/rmt.h"