(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)

上一篇:python简单的socket编程,实现服务器和客户端进行聊天


下一篇:FreeRtos的软件定时器的使用