mirror of
https://github.com/ETLCPP/etl.git
synced 2026-04-30 19:09:10 +08:00
Prioritize ETL_TARGET_OS_* for mutex selection
This commit is contained in:
parent
783be74dd3
commit
f500cd29a8
@ -31,15 +31,15 @@ SOFTWARE.
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#if ETL_USING_STL && ETL_USING_CPP11
|
||||
#include "mutex/mutex_std.h"
|
||||
#define ETL_HAS_MUTEX 1
|
||||
#elif defined(ETL_TARGET_OS_CMSIS_OS2)
|
||||
#if defined(ETL_TARGET_OS_CMSIS_OS2)
|
||||
#include "mutex/mutex_cmsis_os2.h"
|
||||
#define ETL_HAS_MUTEX 1
|
||||
#elif defined(ETL_TARGET_OS_FREERTOS)
|
||||
#include "mutex/mutex_freertos.h"
|
||||
#define ETL_HAS_MUTEX 1
|
||||
#elif ETL_USING_STL && ETL_USING_CPP11
|
||||
#include "mutex/mutex_std.h"
|
||||
#define ETL_HAS_MUTEX 1
|
||||
#elif defined(ETL_COMPILER_ARM5) || defined(ETL_COMPILER_ARM6) || defined(ETL_COMPILER_ARM7) || defined(ETL_COMPILER_ARM8)
|
||||
#include "mutex/mutex_arm.h"
|
||||
#define ETL_HAS_MUTEX 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user