diff --git a/docs/intro/index.md b/docs/intro/index.md index 40d01d4c4..195ab3711 100644 --- a/docs/intro/index.md +++ b/docs/intro/index.md @@ -158,7 +158,7 @@ See the [Porting](/porting/display) section to learn more. ### My display driver is not called. What have I missed? Be sure you are calling `lv_tick_inc(x)` in an interrupt and `lv_timer_handler()` in your main `while(1)`. -Learn more in the [Tick](/porting/tick) and [Task handler](/porting/task-handler) sections. +Learn more in the [Tick](/porting/tick) and [Timer handler](/porting/timer-handler) sections. ### Why is the display driver called only once? Only the upper part of the display is refreshed. Be sure you are calling `lv_disp_flush_ready(drv)` at the end of your "*display flush callback*". diff --git a/docs/overview/timer.md b/docs/overview/timer.md index 10115970e..9088940ce 100644 --- a/docs/overview/timer.md +++ b/docs/overview/timer.md @@ -5,7 +5,7 @@ # Timers LVGL has a built-in timer system. You can register a function to have it be called periodically. The timers are handled and called in `lv_timer_handler()`, which needs to be called every few milliseconds. -See [Porting](/porting/task-handler) for more information. +See [Porting](/porting/timer-handler) for more information. Timers are non-preemptive, which means a timer cannot interrupt another timer. Therefore, you can call any LVGL related function in a timer. diff --git a/docs/porting/index.md b/docs/porting/index.md index 26b9cc710..f118532a5 100644 --- a/docs/porting/index.md +++ b/docs/porting/index.md @@ -14,7 +14,7 @@ display indev tick - task-handler + timer-handler sleep os log diff --git a/docs/porting/project.md b/docs/porting/project.md index ed5794a9d..e62bcb48e 100644 --- a/docs/porting/project.md +++ b/docs/porting/project.md @@ -67,4 +67,4 @@ To use the graphics library you have to initialize it and setup required compone 2. Initialize your drivers. 3. Register the display and input devices drivers in LVGL. Learn more about [Display](/porting/display) and [Input device](/porting/indev) registration. 4. Call `lv_tick_inc(x)` every `x` milliseconds in an interrupt to report the elapsed time to LVGL. [Learn more](/porting/tick). -5. Call `lv_timer_handler()` every few milliseconds to handle LVGL related tasks. [Learn more](/porting/task-handler). +5. Call `lv_timer_handler()` every few milliseconds to handle LVGL related tasks. [Learn more](/porting/timer-handler). diff --git a/docs/porting/task-handler.md b/docs/porting/timer-handler.md similarity index 93% rename from docs/porting/task-handler.md rename to docs/porting/timer-handler.md index e1bfa8624..7240dd42e 100644 --- a/docs/porting/task-handler.md +++ b/docs/porting/timer-handler.md @@ -1,8 +1,8 @@ ```eval_rst .. include:: /header.rst -:github_url: |github_link_base|/porting/task-handler.md +:github_url: |github_link_base|/porting/timer-handler.md ``` -# Task Handler +# Timer 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