mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-15 08:26:04 +08:00
Merge e9fc3022d80552182d9e890d1b9dba17d4fca815 into 777fb0c199b278e8bcb8f445e75b961cd805de59
This commit is contained in:
commit
e0dcbb4473
@ -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
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user