*-----------------------------------------------------------\r
*/\r
\r
+/* IAR includes. */\r
+#include <intrinsics.h>\r
+\r
/* Type definitions. */\r
#define portCHAR char\r
#define portFLOAT float\r
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 1\r
#endif\r
\r
-#if configUSE_PORT_OPTIMISED_TASK_SELECTION == 1\r
+#if( configUSE_PORT_OPTIMISED_TASK_SELECTION == 1 )\r
\r
/* Check the configuration. */\r
#if( configMAX_PRIORITIES > 32 )\r
\r
/*-----------------------------------------------------------*/\r
\r
- #include <intrinsics.h>\r
#define portGET_HIGHEST_PRIORITY( uxTopPriority, uxReadyPriorities ) uxTopPriority = ( 31UL - ( ( uint32_t ) __CLZ( ( uxReadyPriorities ) ) ) )\r
\r
#endif /* configUSE_PORT_OPTIMISED_TASK_SELECTION */\r