(freeRTOS)EventGroup的使用

2021/12/12 6:17:14

本文主要是介绍(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)



这篇关于(freeRTOS)EventGroup的使用的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程