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:
authorMonika Singh <108652024+moninom1@users.noreply.github.com>2022-08-19 13:21:57 +0300
committerGitHub <noreply@github.com>2022-08-19 13:21:57 +0300
commit11c72bc075b49bfdeb73d7e4bd94fd5a7d0a5e77 (patch)
tree186397d65006052628bb4af7709749f591325889 /croutine.c
parent992ff1bb50aeffd3f637b86e1869033861a30ac6 (diff)
Add support for MISRA rule 20.7 (#546)
Misra rule 20.7 requires parenthesis to all parameter names in macro definitions. The issue was reported here : https://forums.freertos.org/t/misra-20-7-compatibility/15385
Diffstat (limited to 'croutine.c')
-rw-r--r--croutine.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/croutine.c b/croutine.c
index 27ef603c2..a17475aa6 100644
--- a/croutine.c
+++ b/croutine.c
@@ -65,13 +65,13 @@
* This macro accesses the co-routine ready lists and therefore must not be
* used from within an ISR.
*/
- #define prvAddCoRoutineToReadyQueue( pxCRCB ) \
- { \
- if( pxCRCB->uxPriority > uxTopCoRoutineReadyPriority ) \
- { \
- uxTopCoRoutineReadyPriority = pxCRCB->uxPriority; \
- } \
- vListInsertEnd( ( List_t * ) &( pxReadyCoRoutineLists[ pxCRCB->uxPriority ] ), &( pxCRCB->xGenericListItem ) ); \
+ #define prvAddCoRoutineToReadyQueue( pxCRCB ) \
+ { \
+ if( ( pxCRCB )->uxPriority > uxTopCoRoutineReadyPriority ) \
+ { \
+ uxTopCoRoutineReadyPriority = ( pxCRCB )->uxPriority; \
+ } \
+ vListInsertEnd( ( List_t * ) &( pxReadyCoRoutineLists[ ( pxCRCB )->uxPriority ] ), &( ( pxCRCB )->xGenericListItem ) ); \
}
/*