FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
event_groups.c File Reference

Data Structures

struct  EventGroup_t
 

Macros

#define MPU_WRAPPERS_INCLUDED_FROM_API_FILE
 
#define eventCLEAR_EVENTS_ON_EXIT_BIT
 
#define eventUNBLOCKED_DUE_TO_BIT_SET
 
#define eventWAIT_FOR_ALL_BITS
 
#define eventEVENT_BITS_CONTROL_BYTES
 

Functions

static BaseType_t prvTestWaitCondition (const EventBits_t uxCurrentEventBits, const EventBits_t uxBitsToWaitFor, const BaseType_t xWaitForAllBits) PRIVILEGED_FUNCTION
 
EventBits_t xEventGroupSync (EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet, const EventBits_t uxBitsToWaitFor, TickType_t xTicksToWait)
 
EventBits_t xEventGroupWaitBits (EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToWaitFor, const BaseType_t xClearOnExit, const BaseType_t xWaitForAllBits, TickType_t xTicksToWait)
 
EventBits_t xEventGroupClearBits (EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToClear)
 
EventBits_t xEventGroupGetBitsFromISR (EventGroupHandle_t xEventGroup)
 
EventBits_t xEventGroupSetBits (EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet)
 
void vEventGroupDelete (EventGroupHandle_t xEventGroup)
 
void vEventGroupSetBitsCallback (void *pvEventGroup, const uint32_t ulBitsToSet)
 
void vEventGroupClearBitsCallback (void *pvEventGroup, const uint32_t ulBitsToClear)
 

Macro Definition Documentation

#define eventCLEAR_EVENTS_ON_EXIT_BIT
#define eventEVENT_BITS_CONTROL_BYTES
#define eventUNBLOCKED_DUE_TO_BIT_SET
#define eventWAIT_FOR_ALL_BITS
#define MPU_WRAPPERS_INCLUDED_FROM_API_FILE

Function Documentation

static BaseType_t prvTestWaitCondition ( const EventBits_t  uxCurrentEventBits,
const EventBits_t  uxBitsToWaitFor,
const BaseType_t  xWaitForAllBits 
)
static

References mtCOVERAGE_TEST_MARKER, pdFALSE, and pdTRUE.

Referenced by xEventGroupWaitBits().

void vEventGroupClearBitsCallback ( void *  pvEventGroup,
const uint32_t  ulBitsToClear 
)
void vEventGroupDelete ( EventGroupHandle_t  xEventGroup)

event_groups.h

       void xEventGroupDelete( EventGroupHandle_t xEventGroup );

Delete an event group that was previously created by a call to xEventGroupCreate(). Tasks that are blocked on the event group will be unblocked and obtain 0 as the event group's value.

Parameters
xEventGroupThe event group being deleted.

References configASSERT, eventUNBLOCKED_DUE_TO_BIT_SET, listCURRENT_LIST_LENGTH, mtCOVERAGE_TEST_MARKER, pdFALSE, traceEVENT_GROUP_DELETE, vPortFree, vTaskRemoveFromUnorderedEventList(), vTaskSuspendAll(), List_t::xListEnd, xTaskResumeAll(), and EventGroup_t::xTasksWaitingForBits.

Referenced by MPU_vEventGroupDelete().

void vEventGroupSetBitsCallback ( void *  pvEventGroup,
const uint32_t  ulBitsToSet 
)

References xEventGroupSetBits().