mirror of
https://github.com/ETLCPP/etl.git
synced 2026-07-31 00:36:20 +08:00
Merge 57dd4757ca66549fa886f7eb7f0941b049cc7705 into 7f290365a9f1b72bf89b4b77ec7dbe39b228bd8e
This commit is contained in:
commit
dd2c506b88
@ -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