Getting Started with FreeRTOS: Detailed Queue Usage Examples

Getting Started with FreeRTOS: Detailed Queue Usage Examples

Introduction In the previous article, we explained the concept of queues and the related API functions. In this article, we will start learning how to use queues. 1. Basic Usage of Queues This example will create three tasks, two of which send data to the queue, and the other reads data from the queue. void … Read more

Understanding Inter-Task Communication in RTOS

Understanding Inter-Task Communication in RTOS

Follow+Star PublicAccount, don’t miss out on exciting content Author | strongerHuang WeChat Official Account | strongerHuang I came across an interesting question: why do RTOS tasks not use global variables for inter-task communication when bare-metal code uses global variables? Those who have a deep understanding of RTOS principles, or have read RTOS source code should … Read more

Why Not Use Global Variables for Inter-task Communication in RTOS?

Why Not Use Global Variables for Inter-task Communication in RTOS?

Follow+Star Public Account Number, don’t miss wonderful content Author | strongerHuang WeChat Public Account | strongerHuang Students who have a deep understanding of RTOS principles or have read RTOS source code should know: RTOS implements inter-task communication usually by a series of pointers. The “effective data” of inter-task communication is actually implemented by pointers pointing … Read more