This example shows how to use the queue to transmit data from one task to another task.

這個範例說明如何使用佇列將資料從一個任務傳到另一個任務。

We will introduce some queue related functions which used in this example:

我們將介紹一些跟佇列相關的函數:

* QueueCreate() -->Create the queue 創建佇列
* xQueueSend() -->Send data to the queue 傳送資料到佇列中
* xQueueReceive() -->Receive data from the queue 從資料中獲取佇列
* taskYIELD() -->Switch to another task 轉換到其他任務
* uxQueueMessagesWaiting()--> find how many data in the queue 發現佇列中有多少資料數

Media 影音:

 

Other articles related to FreeRTOS:

其他與FreeRTOS相關的文章:

1. [Arduino]Install FreeRTOS in Arduino/在Arduino中安裝FreeRTOS

2. [FreeRTOS][Arduino]Create FreeRTOS task in Arduino with VS Code/使用VS code在Arduino中創建任務

3 [FreeRTOS]Use vTaskDelay to implement tasks running in different priorities/使用延時函數實現不同優先順序的任務執行

文章標籤
全站熱搜
創作者介紹
創作者 fishark 的頭像
fishark

魚的方舟圖形語言的世界 - LabVIEW & Arduino & Python工作室 - 新網站https://labview-tech.blogspot.com/

fishark 發表在 痞客邦 留言(0) 人氣(91)