Merge e9fc3022d80552182d9e890d1b9dba17d4fca815 into 777fb0c199b278e8bcb8f445e75b961cd805de59

This commit is contained in:
Войтко Валерий Павлович 2026-06-02 13:15:43 +01:00 committed by GitHub
commit e0dcbb4473
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,8 +31,26 @@ SOFTWARE.
#include "../platform.h"
#include "FreeRTOS.h"
#include <semphr.h>
#if defined(__has_include)
#if __has_include("FreeRTOS.h") && __has_include(<semphr.h>)
#include "FreeRTOS.h"
#include <semphr.h>
#elif __has_include("freertos/FreeRTOS.h") && __has_include("freertos/semphr.h")
#include "freertos/FreeRTOS.h"
#include "freertos/semphr.h"
#else
#error "FreeRTOS.h and semphr.h not found. Please include path to FreeRTOS in your project settings"
#endif // __has_include
#else
#include "FreeRTOS.h"
#include <semphr.h>
#endif // defined(__has_include)
namespace etl
{