mirror of
https://github.com/ETLCPP/etl.git
synced 2026-10-31 03:16:20 +08:00
mutex_freertos.h unconditionally included the vanilla FreeRTOS header layout (FreeRTOS.h and semphr.h at the include root). On ESP-IDF, and therefore Arduino-ESP32 as well since it's built on top of ESP-IDF, these headers are nested one level deeper under freertos/, so the unconditional include fails to compile on any ESP32 target with ETL_TARGET_OS_FREERTOS defined. Use __has_include to try the standard path first, fall back to the ESP-IDF nested path, and fail with a clear #error if neither is found, rather than a mysterious "file not found" from the compiler. Also resolves a pre-existing include-style inconsistency in this file: the old code mixed "FreeRTOS.h" (quotes) with <semphr.h> (angle brackets). All includes now uniformly use angle brackets. |
||
|---|---|---|
| .. | ||
| etl | ||