\r
void vDisplayMessage( const portCHAR * const pcMessageToPrint )\r
{\r
- taskENTER_CRITICAL();\r
+ vTaskSuspendAll();\r
+ {\r
printf( "%s", pcMessageToPrint );\r
fflush( stdout );\r
- taskEXIT_CRITICAL();\r
+ }\r
+ xTaskResumeAll();\r
}\r
/*-----------------------------------------------------------*/\r
\r
const portCHAR * const pcSeparator = "\r\n-----------------------\r\n";\r
FILE *pf;\r
\r
- taskENTER_CRITICAL();\r
+ vTaskSuspendAll();\r
{ \r
pf = fopen( pcFileName, "a" );\r
if( pf != NULL )\r
fclose( pf );\r
}\r
}\r
- taskEXIT_CRITICAL();\r
+ xTaskResumeAll();\r
}\r
/*-----------------------------------------------------------*/\r
\r
const portCHAR * const pcFileName = "a:\\trace.bin";\r
FILE *pf;\r
\r
- taskENTER_CRITICAL();\r
+ vTaskSuspendAll();\r
{\r
pf = fopen( pcFileName, "wb" );\r
if( pf )\r
fclose( pf );\r
}\r
}\r
- taskEXIT_CRITICAL();\r
+ xTaskResumeAll();\r
}\r
\r