#endif\r
/*-----------------------------------------------------------*/\r
\r
-/* Critical section definitions. */\r
-void portENTER_CRITICAL( void );\r
-#pragma aux portENTER_CRITICAL = "pushf" \\r
+/* Critical section definitions. portENTER_CRITICAL() must be defined as a\r
+macro for portable.h to work properly. */\r
+void portLOCAL_ENTER_CRITICAL( void );\r
+#pragma aux portLOCAL_ENTER_CRITICAL = "pushf" \\r
"cli";\r
+#define portENTER_CRITICAL() portLOCAL_ENTER_CRITICAL()\r
+ \r
void portEXIT_CRITICAL( void );\r
#pragma aux portEXIT_CRITICAL = "popf";\r
\r