close

 This example shows how to create FreeRTOS task, call scheduler and implement task function in Arduin.

這個範例說明如何在Arduino中創建FreeRTOS的任務、呼叫調度器,以及實現任務函數。

1. Only one task in the running state at any one time, the others are in the not running time.

2. Create two print tasks with the same priority.

3. Create two print tasks with different priorities. Only higher priority task is running. (Staved situation happens.)

1. 在任意的時間點只有一個任務能在執行狀態執行,其他的任務都在非執行狀態。

2. 建立兩個任務,有一樣的優先順序。

3. 建立兩個任務,有不同的優先順序。只有優先順序高的任務會被執行。(會有"餓死"的狀況發生。)

arrow
arrow
    文章標籤
    arduino freertos vs code
    全站熱搜

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