]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/timers.c
Changes in common files:
[freertos] / FreeRTOS / Source / timers.c
index 5d1ad084a4d167b6cc8b840858956e7939c74812..9ede09f61f5da85b7114ed47024c52301f6c0145 100644 (file)
@@ -318,6 +318,8 @@ BaseType_t xTimerGenericCommand( TimerHandle_t xTimer, const BaseType_t xCommand
 BaseType_t xReturn = pdFAIL;\r
 DaemonTaskMessage_t xMessage;\r
 \r
+       configASSERT( xTimer );\r
+\r
        /* Send a message to the timer service task to perform a particular action\r
        on a particular timer definition. */\r
        if( xTimerQueue != NULL )\r
@@ -371,6 +373,7 @@ const char * pcTimerGetTimerName( TimerHandle_t xTimer )
 {\r
 Timer_t *pxTimer = ( Timer_t * ) xTimer;\r
 \r
+       configASSERT( xTimer );\r
        return pxTimer->pcTimerName;\r
 }\r
 /*-----------------------------------------------------------*/\r
@@ -810,6 +813,8 @@ BaseType_t xTimerIsTimerActive( TimerHandle_t xTimer )
 BaseType_t xTimerIsInActiveList;\r
 Timer_t *pxTimer = ( Timer_t * ) xTimer;\r
 \r
+       configASSERT( xTimer );\r
+\r
        /* Is the timer in the list of active timers? */\r
        taskENTER_CRITICAL();\r
        {\r