etl/include
Hiten Gupta e4fc36d6f2
Fix FreeRTOS.h/semphr.h include paths for ESP-IDF (fixes #1439) (#1570)
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.
2026-08-26 13:04:46 +02:00
..
etl Fix FreeRTOS.h/semphr.h include paths for ESP-IDF (fixes #1439) (#1570) 2026-08-26 13:04:46 +02:00