mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
pkg/lvgl: set LVGL thread priority higher than main
Using a lower priority than of the main thread would make the LVGL thread to preempt the main thread, for example, if you do a `xtimer_msleep(200);` on the main thread giving any chance for the LVGL thread to preempt it while working with LVGL on the main thread would make the CPU crash. To reproduce the bug just create various widgets, and fill them with data from a sensor that "waits" for data to be ready. Signed-off-by: Jean Pierre Dudey <me@jeandudey.tech>
This commit is contained in:
parent
c068f13ba2
commit
7092c455f9
@ -19,7 +19,7 @@ LVGL_MEM_SIZE ?= 5U*1024U
|
||||
# Engine settings
|
||||
LVGL_INACTIVITY_PERIOD_MS ?= 5*MS_PER_SEC # 5s
|
||||
LVGL_TASK_HANDLER_DELAY_US ?= 5*US_PER_MS # 5ms
|
||||
LVGL_TASK_THREAD_PRIO ?= THREAD_PRIORITY_MAIN-1
|
||||
LVGL_TASK_THREAD_PRIO ?= THREAD_PRIORITY_MAIN+1
|
||||
|
||||
# Set the CFLAGS variable accordingly
|
||||
CFLAGS += -DLV_COLOR_DEPTH=$(LVGL_COLOR_DEPTH)
|
||||
|
Loading…
Reference in New Issue
Block a user