diff options
| author | Marek Vasut <marex@denx.de> | 2023-05-09 04:43:50 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-05-09 10:12:44 -0700 |
| commit | 6a2fb1f751307f29cafdd3f35fc8452f93d37d0c (patch) | |
| tree | 134b685bf48f6eca52b951178e869cb7394d259a | |
| parent | 64910673121f4558a898673b72e6f39e60c9a710 (diff) | |
| download | meta-openembedded-6a2fb1f751307f29cafdd3f35fc8452f93d37d0c.tar.gz | |
lvgl: Activate custom tick implementation
Use a custom tick source that tells the elapsed time in milliseconds.
It removes the need to manually update the tick with `lv_tick_inc()`.
This is the behavior which ought to be used for LVGL running on Linux
compared to LVGL running on microcontroller.
Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-graphics/lvgl/lvgl_8.3.7.bb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/lvgl/lvgl_8.3.7.bb b/meta-oe/recipes-graphics/lvgl/lvgl_8.3.7.bb index a82ab3b749..5f3fc44cfe 100644 --- a/meta-oe/recipes-graphics/lvgl/lvgl_8.3.7.bb +++ b/meta-oe/recipes-graphics/lvgl/lvgl_8.3.7.bb | |||
| @@ -28,6 +28,11 @@ do_configure:prepend() { | |||
| 28 | [ -r "${S}/lv_conf.h" ] \ | 28 | [ -r "${S}/lv_conf.h" ] \ |
| 29 | || sed -e 's|#if 0 .*Set it to "1" to enable .*|#if 1 // Enabled|g' \ | 29 | || sed -e 's|#if 0 .*Set it to "1" to enable .*|#if 1 // Enabled|g' \ |
| 30 | -e "s|\(#define LV_MEM_CUSTOM .*\)0|\1${LVGL_CONFIG_LV_MEM_CUSTOM}|g" \ | 30 | -e "s|\(#define LV_MEM_CUSTOM .*\)0|\1${LVGL_CONFIG_LV_MEM_CUSTOM}|g" \ |
| 31 | \ | ||
| 32 | -e "s|\(#define LV_TICK_CUSTOM \).*|\1 1|g" \ | ||
| 33 | -e "s|\(#define LV_TICK_CUSTOM_INCLUDE \).*|\1 <stdint.h>|g" \ | ||
| 34 | -e "s|\(#define LV_TICK_CUSTOM_SYS_TIME_EXPR \).*|extern uint32_t custom_tick_get(void);\n\1 (custom_tick_get())|g" \ | ||
| 35 | \ | ||
| 31 | < "${S}/lv_conf_template.h" > "${S}/lv_conf.h" | 36 | < "${S}/lv_conf_template.h" > "${S}/lv_conf.h" |
| 32 | } | 37 | } |
| 33 | 38 | ||
