+\r
+ /* Demonstrate the use of the xTimerGetTimerTaskHandle() and \r
+ xTaskGetIdleTaskHandle() functions. */\r
+ xIdleTaskHandle = xTaskGetIdleTaskHandle();\r
+ xTimerTaskHandle = xTimerGetTimerTaskHandle();\r
+\r
+ /* This is the idle hook, so the current task handle should equal the \r
+ returned idle task handle. */\r
+ if( xTaskGetCurrentTaskHandle() != xIdleTaskHandle )\r
+ {\r
+ pcStatusMessage = "Error: Returned idle task handle was incorrect";\r
+ }\r
+\r
+ /* Check the timer task handle was returned correctly. */\r
+ pcTaskName = pcTaskGetTaskName( xTimerTaskHandle );\r
+ if( strcmp( pcTaskName, "Tmr Svc" ) != 0 )\r
+ {\r
+ pcStatusMessage = "Error: Returned timer task handle was incorrect";\r
+ }\r
+\r
+ /* If xSemaphoreToDelete has not already been deleted, then delete it now.\r
+ This is done purely to demonstrate the use of, and test, the \r
+ vSemaphoreDelete() macro. Care must be taken not to delete a semaphore\r
+ that has tasks blocked on it. */\r
+ if( xSemaphoreToDelete != NULL )\r
+ {\r
+ vSemaphoreDelete( xSemaphoreToDelete );\r
+ xSemaphoreToDelete = NULL;\r
+ }\r