其他分享
首页 > 其他分享> > (freeRTOS)EventGroup的使用

(freeRTOS)EventGroup的使用

作者:互联网

(freeRTOS)EventGroup的使用

xEventGroupCreate
EventGroupHandle_t xEventGroupCreate( void )
Create a new event group.
创建一个事件组

xEventGroupCreateStatic

EventGroupHandle_t xEventGroupCreateStatic( StaticEventGroup_t /*pxEventGroupBuffer )

创建一个静态事件组
要创建静态事件组,必须在FreeRTOS上面将 configSUPPORT_STATIC_ALLOCATION 设置为1,才能开启静态事件创建功能

xEventGroupWaitBits

EventBits_t xEventGroupWaitBits(EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToWaitFor, const BaseType_t xClearOnExit, const BaseType_t xWaitForAllBits, TickType_t xTicksToWait)

xEventGroupClearBits
EventBits_t xEventGroupClearBits(EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToClear)

xEventGroupClearBitsFromISR
xEventGroupClearBitsFromISR(xEventGroup, uxBitsToClear)

xEventGroupSetBits
EventBits_t xEventGroupSetBits(EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet)

xEventGroupSetBitsFromISR
xEventGroupSetBitsFromISR(xEventGroup, uxBitsToSet, pxHigherPriorityTaskWoken)

xEventGroupSync
EventBits_t xEventGroupSync(EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet,
const EventBits_t uxBitsToWaitFor, TickType_t xTicksToWait)

xEventGroupGetBitsFromISR
EventBits_t xEventGroupGetBitsFromISR(EventGroupHandle_t xEventGroup)

vEventGroupDelete
void vEventGroupDelete(EventGroupHandle_t xEventGroup)

标签:uxBitsToSet,const,freeRTOS,创建,EventBits,EventGroupHandle,EventGroup,使用,xEventGro
来源: https://www.cnblogs.com/yuyulab/p/15678058.html