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