App:Library:LVGL:docs:Porting:Task Handler

提供: robot-jp wiki
ナビゲーションに移動検索に移動

https://docs.lvgl.io/8.2/porting/task-handler.html


Task Handler

英文 自動翻訳

To handle the tasks of LVGL you need to call lv_timer_handler() periodically in one of the following:

  • while(1) of main() function
  • timer interrupt periodically (lower priority than lv_tick_inc())
  • an OS task periodically

The timing is not critical but it should be about 5 milliseconds to keep the system responsive.

Example:

 while(1) {
   lv_timer_handler();
   my_delay_ms(5);
 } 

To learn more about timers visit the Timer section.

LVGLのタスクを処理するには、次のいずれかの方法で繰り返しlv_timer_handler() を呼び出し続ける必要があります。
  • main()関数のwhile(1)※無限ループで連続呼び出し
  • タイマーによる定期割込(タイマーの割込はlv_tick_inc()より低い優先度にする)
  • 定期的なOSタスク

割込で処理するため、タイミングは重要ではありませんが、システムの応答性を維持するには約5ミリ秒毎の割込にする必要があります。

例:

  while 1  { 
    lv_timer_handler (); 
    my_delay_ms 5 ; 
  } 

タイマーの詳細については、 Timer セクションをご覧ください。

戻る : Previous