Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FreeRTOS/FreeRTOS-Kernel.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchinglee-iot <61685396+chinglee-iot@users.noreply.github.com>2023-11-28 14:21:03 +0300
committerGitHub <noreply@github.com>2023-11-28 14:21:03 +0300
commit1813a4551e4edbba215b6f1cb3c484c41d369f96 (patch)
treecdd5d5dde9853bb162e8e64074e9f092ad56dc42 /timers.c
parentce88adea2a043dca6104e4fd80b920166cade8c8 (diff)
Fix MISRA 2012 rule 10.4 violations (#852)
Fix MISRA 2012 rule 10.4 violations
Diffstat (limited to 'timers.c')
-rw-r--r--timers.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/timers.c b/timers.c
index 2f575627a..878e7db11 100644
--- a/timers.c
+++ b/timers.c
@@ -603,7 +603,7 @@
configASSERT( xTimer );
taskENTER_CRITICAL();
{
- if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) == 0 )
+ if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) == 0U )
{
/* Not an auto-reload timer. */
xReturn = pdFALSE;
@@ -662,7 +662,7 @@
configASSERT( ppxTimerBuffer != NULL );
- if( ( pxTimer->ucStatus & tmrSTATUS_IS_STATICALLY_ALLOCATED ) != 0 )
+ if( ( pxTimer->ucStatus & tmrSTATUS_IS_STATICALLY_ALLOCATED ) != 0U )
{
*ppxTimerBuffer = ( StaticTimer_t * ) pxTimer;
xReturn = pdTRUE;
@@ -724,7 +724,7 @@
/* If the timer is an auto-reload timer then calculate the next
* expiry time and re-insert the timer in the list of active timers. */
- if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
+ if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0U )
{
prvReloadTimer( pxTimer, xNextExpireTime, xTimeNow );
}
@@ -1001,7 +1001,7 @@
{
/* The timer expired before it was added to the active
* timer list. Process it now. */
- if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
+ if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0U )
{
prvReloadTimer( pxTimer, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, xTimeNow );
}
@@ -1165,7 +1165,7 @@
/* Is the timer in the list of active timers? */
taskENTER_CRITICAL();
{
- if( ( pxTimer->ucStatus & tmrSTATUS_IS_ACTIVE ) == 0 )
+ if( ( pxTimer->ucStatus & tmrSTATUS_IS_ACTIVE ) == 0U )
{
xReturn = pdFALSE;
}