]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/timers.c
Add additional const qualifiers.
[freertos] / FreeRTOS / Source / timers.c
index c29bc3c521a472e073c098cec7116c3f2aab7f46..45d9351cda9f842d2b50d3b957ad632d2355ce02 100644 (file)
@@ -208,7 +208,7 @@ static void prvSwitchTimerLists( void ) PRIVILEGED_FUNCTION;
  * Obtain the current tick count, setting *pxTimerListsWereSwitched to pdTRUE\r
  * if a tick count overflow occurred since prvSampleTimeNow() was last called.\r
  */\r
-static portTickType prvSampleTimeNow( portBASE_TYPE *pxTimerListsWereSwitched ) PRIVILEGED_FUNCTION;\r
+static portTickType prvSampleTimeNow( portBASE_TYPE * const pxTimerListsWereSwitched ) PRIVILEGED_FUNCTION;\r
 \r
 /*\r
  * If the timer list contains any active timers then return the expire time of\r
@@ -216,7 +216,7 @@ static portTickType prvSampleTimeNow( portBASE_TYPE *pxTimerListsWereSwitched )
  * timer list does not contain any timers then return 0 and set *pxListWasEmpty\r
  * to pdTRUE.\r
  */\r
-static portTickType prvGetNextExpireTime( portBASE_TYPE *pxListWasEmpty ) PRIVILEGED_FUNCTION;\r
+static portTickType prvGetNextExpireTime( portBASE_TYPE * const pxListWasEmpty ) PRIVILEGED_FUNCTION;\r
 \r
 /*\r
  * If a timer has expired, process it.  Otherwise, block the timer service task\r
@@ -261,7 +261,7 @@ portBASE_TYPE xReturn = pdFAIL;
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-xTimerHandle xTimerCreate( const signed char * const pcTimerName, portTickType xTimerPeriodInTicks, unsigned portBASE_TYPE uxAutoReload, void *pvTimerID, tmrTIMER_CALLBACK pxCallbackFunction )\r
+xTimerHandle xTimerCreate( const signed char * const pcTimerName, const portTickType xTimerPeriodInTicks, const unsigned portBASE_TYPE uxAutoReload, void * const pvTimerID, tmrTIMER_CALLBACK pxCallbackFunction )\r
 {\r
 xTIMER *pxNewTimer;\r
 \r
@@ -302,7 +302,7 @@ xTIMER *pxNewTimer;
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-portBASE_TYPE xTimerGenericCommand( xTimerHandle xTimer, portBASE_TYPE xCommandID, portTickType xOptionalValue, signed portBASE_TYPE *pxHigherPriorityTaskWoken, portTickType xBlockTime )\r
+portBASE_TYPE xTimerGenericCommand( xTimerHandle xTimer, const portBASE_TYPE xCommandID, const portTickType xOptionalValue, signed portBASE_TYPE * const pxHigherPriorityTaskWoken, const portTickType xBlockTime )\r
 {\r
 portBASE_TYPE xReturn = pdFAIL;\r
 xDAEMON_TASK_MESSAGE xMessage;\r
@@ -473,7 +473,7 @@ portBASE_TYPE xTimerListsWereSwitched;
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-static portTickType prvGetNextExpireTime( portBASE_TYPE *pxListWasEmpty )\r
+static portTickType prvGetNextExpireTime( portBASE_TYPE * const pxListWasEmpty )\r
 {\r
 portTickType xNextExpireTime;\r
 \r
@@ -499,7 +499,7 @@ portTickType xNextExpireTime;
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-static portTickType prvSampleTimeNow( portBASE_TYPE *pxTimerListsWereSwitched )\r
+static portTickType prvSampleTimeNow( portBASE_TYPE * const pxTimerListsWereSwitched )\r
 {\r
 portTickType xTimeNow;\r
 PRIVILEGED_DATA static portTickType xLastTime = ( portTickType ) 0U; /*lint !e956 Variable is only accessible to one task. */\r