feat(rtthread): add cpu usage support (#6310)

This commit is contained in:
Rbb666
2024-06-01 10:39:37 +08:00
committed by GitHub
parent 607ac06044
commit 4ab68c5dc1
3 changed files with 23 additions and 1 deletions

View File

@@ -30,6 +30,14 @@
#define LV_USE_STDLIB_SPRINTF LV_STDLIB_RTTHREAD
#endif
/*=========================
CPU usage
*=========================*/
#ifdef PKG_USING_CPU_USAGE
#define LV_SYSMON_GET_IDLE lv_timer_os_get_idle
#endif /* PKG_USING_CPU_USAGE */
/*=================
* OPERATING SYSTEM
*=================*/