FreeRTOS – Event Groups Explained

FreeRTOS - Event Groups Explained

This article introduces <span>FreeRTOS</span> another synchronization mechanism for multitasking – Event Groups (<span>Event Group</span>). Unlike semaphores, event groups can achieve one-to-many and many-to-many synchronization. API Introduction API Function xEventGroupCreate( void ) Dynamically creates an event group and returns the handle of the newly created event group. configSUPPORT_DYNAMIC_ALLOCATION must be set to 1 in FreeRTOSConfig.h, or … Read more

Learning FreeRTOS: Event Groups

Learning FreeRTOS: Event Groups

Scan to FollowLearn Embedded Together, learn and grow together This is a series of introductory articles on FreeRTOS. While organizing my own knowledge, I hope to help beginners quickly get started and master the basic principles and usage of FreeRTOS. Quick Start with FreeRTOS – Exploring the System FreeRTOS Official Chinese Website is Now Live … Read more

Using Events in Embedded Development with MCU

Using Events in Embedded Development with MCU

It is assumed that everyone has learned about inter-task communication. If you haven’t, don’t worry; you can check out the previous content. In the context of inter-task communication, we are generally waiting for an event to occur. But what if we need to wait for multiple events? Surely, none of you here are without a … Read more

Detailed Explanation of FreeRTOS Task Management and Communication Mechanisms

Detailed Explanation of FreeRTOS Task Management and Communication Mechanisms

1 Task Creation and Management Task Creation Use <span>xTaskCreate()</span> to create a task: BaseType_t xTaskCreate( TaskFunction_t pxTaskCode, // Task function (entry) const char * const pcName, // Task name (for debugging) configSTACK_DEPTH_TYPE usStackDepth, // Stack size (in words) void * const pvParameters, // Task parameters UBaseType_t uxPriority, // Priority (0~configMAX_PRIORITIES-1) TaskHandle_t * const pxCreatedTask // … Read more