@@ -43,7 +43,7 @@ task.h is included from an application file. */
4343MPU ports require MPU_WRAPPERS_INCLUDED_FROM_API_FILE to be defined for the
4444header files above, but not in this file, in order to generate the correct
4545privileged Vs unprivileged linkage and placement. */
46- #undef MPU_WRAPPERS_INCLUDED_FROM_API_FILE /*lint !e961 !e750. */
46+ #undef MPU_WRAPPERS_INCLUDED_FROM_API_FILE
4747
4848/* The following bit fields convey control information in a task's event list
4949item value. It is important they don't clash with the
@@ -108,7 +108,7 @@ static BaseType_t prvTestWaitCondition( const EventBits_t uxCurrentEventBits, co
108108 #endif /* configASSERT_DEFINED */
109109
110110 /* The user has provided a statically allocated event group - use it. */
111- pxEventBits = ( EventGroup_t * ) pxEventGroupBuffer ; /*lint !e740 EventGroup_t and StaticEventGroup_t are guaranteed to have the same size and alignment requirement - checked by configASSERT(). */
111+ pxEventBits = ( EventGroup_t * ) pxEventGroupBuffer ;
112112
113113 if ( pxEventBits != NULL )
114114 {
@@ -134,7 +134,7 @@ static BaseType_t prvTestWaitCondition( const EventBits_t uxCurrentEventBits, co
134134 traceEVENT_GROUP_CREATE_FAILED ();
135135 }
136136
137- return ( EventGroupHandle_t ) pxEventBits ;
137+ return pxEventBits ;
138138 }
139139
140140#endif /* configSUPPORT_STATIC_ALLOCATION */
@@ -182,7 +182,7 @@ static BaseType_t prvTestWaitCondition( const EventBits_t uxCurrentEventBits, co
182182 traceEVENT_GROUP_CREATE_FAILED ();
183183 }
184184
185- return ( EventGroupHandle_t ) pxEventBits ;
185+ return pxEventBits ;
186186 }
187187
188188#endif /* configSUPPORT_DYNAMIC_ALLOCATION */
@@ -191,7 +191,7 @@ static BaseType_t prvTestWaitCondition( const EventBits_t uxCurrentEventBits, co
191191EventBits_t xEventGroupSync ( EventGroupHandle_t xEventGroup , const EventBits_t uxBitsToSet , const EventBits_t uxBitsToWaitFor , TickType_t xTicksToWait )
192192{
193193EventBits_t uxOriginalBitValue , uxReturn ;
194- EventGroup_t * pxEventBits = ( EventGroup_t * ) xEventGroup ;
194+ EventGroup_t * pxEventBits = xEventGroup ;
195195BaseType_t xAlreadyYielded ;
196196BaseType_t xTimeoutOccurred = pdFALSE ;
197197
@@ -310,7 +310,7 @@ BaseType_t xTimeoutOccurred = pdFALSE;
310310
311311EventBits_t xEventGroupWaitBits ( EventGroupHandle_t xEventGroup , const EventBits_t uxBitsToWaitFor , const BaseType_t xClearOnExit , const BaseType_t xWaitForAllBits , TickType_t xTicksToWait )
312312{
313- EventGroup_t * pxEventBits = ( EventGroup_t * ) xEventGroup ;
313+ EventGroup_t * pxEventBits = xEventGroup ;
314314EventBits_t uxReturn , uxControlBits = 0 ;
315315BaseType_t xWaitConditionMet , xAlreadyYielded ;
316316BaseType_t xTimeoutOccurred = pdFALSE ;
@@ -460,7 +460,7 @@ BaseType_t xTimeoutOccurred = pdFALSE;
460460
461461EventBits_t xEventGroupClearBits ( EventGroupHandle_t xEventGroup , const EventBits_t uxBitsToClear )
462462{
463- EventGroup_t * pxEventBits = ( EventGroup_t * ) xEventGroup ;
463+ EventGroup_t * pxEventBits = xEventGroup ;
464464EventBits_t uxReturn ;
465465
466466 /* Check the user is not attempting to clear the bits used by the kernel
@@ -503,7 +503,7 @@ EventBits_t uxReturn;
503503EventBits_t xEventGroupGetBitsFromISR ( EventGroupHandle_t xEventGroup )
504504{
505505UBaseType_t uxSavedInterruptStatus ;
506- EventGroup_t const * const pxEventBits = ( EventGroup_t * ) xEventGroup ;
506+ EventGroup_t const * const pxEventBits = xEventGroup ;
507507EventBits_t uxReturn ;
508508
509509 uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR ();
@@ -522,7 +522,7 @@ ListItem_t *pxListItem, *pxNext;
522522ListItem_t const * pxListEnd ;
523523List_t const * pxList ;
524524EventBits_t uxBitsToClear = 0 , uxBitsWaitedFor , uxControlBits ;
525- EventGroup_t * pxEventBits = ( EventGroup_t * ) xEventGroup ;
525+ EventGroup_t * pxEventBits = xEventGroup ;
526526BaseType_t xMatchFound = pdFALSE ;
527527
528528 /* Check the user is not attempting to set the bits used by the kernel
@@ -612,7 +612,7 @@ BaseType_t xMatchFound = pdFALSE;
612612
613613void vEventGroupDelete ( EventGroupHandle_t xEventGroup )
614614{
615- EventGroup_t * pxEventBits = ( EventGroup_t * ) xEventGroup ;
615+ EventGroup_t * pxEventBits = xEventGroup ;
616616const List_t * pxTasksWaitingForBits = & ( pxEventBits -> xTasksWaitingForBits );
617617
618618 vTaskSuspendAll ();
@@ -723,7 +723,7 @@ BaseType_t xWaitConditionMet = pdFALSE;
723723 UBaseType_t uxEventGroupGetNumber ( void * xEventGroup )
724724 {
725725 UBaseType_t xReturn ;
726- EventGroup_t * pxEventBits = ( EventGroup_t * ) xEventGroup ;
726+ EventGroup_t const * pxEventBits = ( EventGroup_t * ) xEventGroup ; an EventGroup_t , but EventGroupHandle_t is kept opaque outside of this file for data hiding purposes . * /
727727
728728 if ( xEventGroup == NULL )
729729 {
0 commit comments