From 4c25ef039a4811882c3bf20014880f2cce66b986 Mon Sep 17 00:00:00 2001 From: askuric Date: Sun, 16 Jun 2024 22:56:59 +0200 Subject: [PATCH] forgotten mcpwm ifdef --- src/drivers/hardware_specific/esp32/mcpwm_private.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/drivers/hardware_specific/esp32/mcpwm_private.h b/src/drivers/hardware_specific/esp32/mcpwm_private.h index e133a710..dbf48970 100644 --- a/src/drivers/hardware_specific/esp32/mcpwm_private.h +++ b/src/drivers/hardware_specific/esp32/mcpwm_private.h @@ -13,6 +13,8 @@ #define MCPWM_PRIVATE_H +#if defined(ESP_H) && defined(ARDUINO_ARCH_ESP32) && defined(SOC_MCPWM_SUPPORTED) && !defined(SIMPLEFOC_ESP32_USELEDC) + #include "freertos/FreeRTOS.h" #include "esp_intr_alloc.h" #include "esp_heap_caps.h" @@ -75,4 +77,6 @@ struct mcpwm_timer_t { } #endif +#endif + #endif /* MCPWM_PRIVATE_H */ \ No newline at end of file