diff options
author | chinglee-iot <61685396+chinglee-iot@users.noreply.github.com> | 2023-11-28 14:21:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-28 14:21:03 +0300 |
commit | 1813a4551e4edbba215b6f1cb3c484c41d369f96 (patch) | |
tree | cdd5d5dde9853bb162e8e64074e9f092ad56dc42 /timers.c | |
parent | ce88adea2a043dca6104e4fd80b920166cade8c8 (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.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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; } |