發表文章

目前顯示的是有「rtos」標籤的文章

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

圖片
This example explain what are tick, tick ISR, task states (Running, Ready, Blocked, and Suspended) and how to use two task delay functions (vTaskDelay and vTaskDelayUntil) to elimanate starving state while two tasks are called with different priorities . 這個範例說明什麼是時脈、時脈中斷服務、任務狀態(執行、就緒、阻塞與掛起),以及如何使用任務延時的函數(相對延時vTaskDelay與 絕對延時vTaskDelayUntil)去消除呼叫兩個不同優先順序的任務時產生的餓死狀態。 Hardware: Arduino Mega2560 Software: VS Code

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

圖片
  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. 建立兩個任務,有不同的優先順序。只有優先順序高的任務會被執行。(會有"餓死"的狀況發生。)

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

圖片
This video shows how to install FreeRTOS library in Arduino IDE.  這影片說明如何在Arduino IDE中安裝FreeRTOS的程式庫。