feat(osal): add lv_os_get_idle_percent for linux (#7632)

Co-authored-by: Liam <30486941+liamHowatt@users.noreply.github.com>
This commit is contained in:
André Costa
2025-02-14 04:49:19 +01:00
committed by GitHub
parent 09d0d10e28
commit cef1649ea7
14 changed files with 295 additions and 13 deletions

View File

@@ -969,7 +969,7 @@
#define LV_USE_SYSMON 0
#if LV_USE_SYSMON
/** Get the idle percentage. E.g. uint32_t my_get_idle(void); */
#define LV_SYSMON_GET_IDLE lv_timer_get_idle
#define LV_SYSMON_GET_IDLE lv_os_get_idle_percent
/** 1: Show CPU usage and FPS count.
* - Requires `LV_USE_SYSMON = 1` */