MCPcopy Create free account
hub / github.com/FreeRTOS/FreeRTOS-Kernel / uxTaskResetEventItemValue

Function uxTaskResetEventItemValue

tasks.c:5624–5635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5622/*-----------------------------------------------------------*/
5623
5624TickType_t uxTaskResetEventItemValue( void )
5625{
5626 TickType_t uxReturn;
5627
5628 uxReturn = listGET_LIST_ITEM_VALUE( &( pxCurrentTCB->xEventListItem ) );
5629
5630 /* Reset the event list item to its normal value - so it can be used with
5631 * queues and semaphores. */
5632 listSET_LIST_ITEM_VALUE( &( pxCurrentTCB->xEventListItem ), ( ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) pxCurrentTCB->uxPriority ) ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
5633
5634 return uxReturn;
5635}
5636/*-----------------------------------------------------------*/
5637
5638#if ( configUSE_MUTEXES == 1 )

Callers 2

xEventGroupSyncFunction · 0.85
xEventGroupWaitBitsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected