Skip to content

Commit

Permalink
Prioritize ETL_TARGET_OS_* for mutex selection
Browse files Browse the repository at this point in the history
  • Loading branch information
John Wellbelove committed Dec 10, 2023
1 parent 783be74 commit f500cd2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/etl/mutex.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f500cd2

Please sign in to comment.