1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-02-04 07:13:00 +08:00

chore: enable LV_USE_SYSMON automatically and LV_USE_OBSERVER unconditionally

This commit is contained in:
Gabor Kiss-Vamosi 2023-11-28 15:02:33 +01:00
parent 0b22070d64
commit d24b6d54f2
2 changed files with 9 additions and 5 deletions

View File

@ -686,7 +686,7 @@
#define LV_USE_SNAPSHOT 0 #define LV_USE_SNAPSHOT 0
/*1: Enable system monitor component*/ /*1: Enable system monitor component*/
#define LV_USE_SYSMON 0 #define LV_USE_SYSMON (LV_USE_MEM_MONITOR | LV_USE_PERF_MONITOR)
/*1: Enable the runtime performance profiler*/ /*1: Enable the runtime performance profiler*/
#define LV_USE_PROFILER 0 #define LV_USE_PROFILER 0
@ -734,7 +734,7 @@
#endif #endif
/*1: Enable an observer pattern implementation*/ /*1: Enable an observer pattern implementation*/
#define LV_USE_OBSERVER 0 #define LV_USE_OBSERVER 1
/*1: Enable Pinyin input method*/ /*1: Enable Pinyin input method*/
/*Requires: lv_keyboard*/ /*Requires: lv_keyboard*/

View File

@ -2237,10 +2237,14 @@
/*1: Enable system monitor component*/ /*1: Enable system monitor component*/
#ifndef LV_USE_SYSMON #ifndef LV_USE_SYSMON
#ifdef CONFIG_LV_USE_SYSMON #ifdef _LV_KCONFIG_PRESENT
#define LV_USE_SYSMON CONFIG_LV_USE_SYSMON #ifdef CONFIG_LV_USE_SYSMON
#define LV_USE_SYSMON CONFIG_LV_USE_SYSMON
#else
#define LV_USE_SYSMON 0
#endif
#else #else
#define LV_USE_SYSMON 0 #define LV_USE_SYSMON 1
#endif #endif
#endif #endif