tmrTIMER_CALLBACK pxCallbackFunction; /*<< The function that will be called when the timer expires. */\r
} xTIMER;\r
\r
-/* The definition of messages that can be sent and received on the timer \r
+/* The definition of messages that can be sent and received on the timer\r
queue. */\r
typedef struct tmrTimerQueueMessage\r
{\r
\r
/*-----------------------------------------------------------*/\r
\r
-/* \r
+/*\r
* Initialise the infrustructure used by the timer service task if it has not\r
* been initialised already.\r
*/\r
\r
/*\r
* The timer service task (daemon). Timer functionality is controlled by this\r
- * task. Other tasks communicate with the timer service task using the \r
+ * task. Other tasks communicate with the timer service task using the\r
* xTimerQueue queue.\r
*/\r
static void prvTimerTask( void *pvParameters ) PRIVILEGED_FUNCTION;\r
\r
-/* \r
- * The following functions handle the commands that are sent to the timer\r
- * service task via the xTimerQueue queue.\r
- */\r
-static void prvTimerStart( xTIMER *pxTimer ) PRIVILEGED_FUNCTION;\r
-\r
/*\r
* Called by the timer service task to interpret and process a command it\r
- * received on the timer queue. \r
+ * received on the timer queue.\r
*/\r
static void prvProcessReceivedCommands( void ) PRIVILEGED_FUNCTION;\r
\r
{\r
portBASE_TYPE xReturn = pdFAIL;\r
\r
- /* This function is called when the scheduler is started if \r
+ /* This function is called when the scheduler is started if\r
configUSE_TIMERS is set to 1. Check that the infrustructure used by the\r
timer service task has been created/initialised. If timers have already\r
been created then the initialisation will already have been performed. */\r
\r
if( xTimerQueue != NULL )\r
{\r
- xReturn = xTaskCreate( prvTimerTask, ( const signed char * ) "Timers", configTIMER_TASK_STACK_DEPTH, NULL, configTIMER_TASK_PRIORITY, NULL );\r
+ xReturn = xTaskCreate( prvTimerTask, ( const signed char * ) "Timer Service", configTIMER_TASK_STACK_DEPTH, NULL, configTIMER_TASK_PRIORITY, NULL );\r
}\r
\r
return xReturn;\r
xTimeNow = xTaskGetTickCount();\r
if( xTimeNow < xNextExpireTime )\r
{\r
- /* This is a simple fast function - a yield will not be \r
+ /* This is a simple fast function - a yield will not be\r
performed until after this critical section exits. */\r
vQueueWaitForMessageRestricted( xTimerQueue, ( xNextExpireTime - xTimeNow ) );\r
}\r
}\r
taskEXIT_CRITICAL();\r
\r
- /* Yield to wait for either a command to arrive, or the block time \r
- to expire. If a command arrived between the critical section being \r
+ /* Yield to wait for either a command to arrive, or the block time\r
+ to expire. If a command arrived between the critical section being\r
exited and this yeild then the yield will just return to the same\r
task. */\r
portYIELD_WITHIN_API();\r
static void prvCheckForValidListAndQueue( void )\r
{\r
/* Check that the list from which active timers are referenced, and the\r
- queue used to communicate with the timer service, have been \r
+ queue used to communicate with the timer service, have been\r
initialised. */\r
taskENTER_CRITICAL();\r
{\r