feat(lvgl): adapt LVGL for opencoreC with SSE2 SIMD blit, hardware tick, and desktop toast IPC

This commit is contained in:
RarDog
2026-09-02 21:44:55 +03:00
parent 74bfa45eea
commit e9d9b8e365
8 changed files with 196 additions and 23 deletions
+3 -6
View File
@@ -85,13 +85,10 @@
/*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()`)*/
#define LV_TICK_CUSTOM 0
#define LV_TICK_CUSTOM 1
#if LV_TICK_CUSTOM
#define LV_TICK_CUSTOM_INCLUDE "Arduino.h" /*Header for the system time function*/
#define LV_TICK_CUSTOM_SYS_TIME_EXPR (millis()) /*Expression evaluating to current system time in ms*/
/*If using lvgl as ESP32 component*/
// #define LV_TICK_CUSTOM_INCLUDE "esp_timer.h"
// #define LV_TICK_CUSTOM_SYS_TIME_EXPR ((esp_timer_get_time() / 1000LL))
#define LV_TICK_CUSTOM_INCLUDE "lv_kernel_tick.h" /*Header for the system time function*/
#define LV_TICK_CUSTOM_SYS_TIME_EXPR (custom_tick_get()) /*Expression evaluating to current system time in ms*/
#endif /*LV_TICK_CUSTOM*/
/*Default Dot Per Inch. Used to initialize default sizes such as widgets sized, style paddings.
+16
View File
@@ -0,0 +1,16 @@
#ifndef LV_KERNEL_TICK_H
#define LV_KERNEL_TICK_H
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
uint32_t custom_tick_get(void);
#ifdef __cplusplus
}
#endif
#endif // LV_KERNEL_TICK_H