graphics/lvgl: Add config to enable LVGL Performance Monitor

This commit is contained in:
Gustavo Henrique Nihei 2021-04-07 11:52:45 -03:00 committed by Alan Carvalho de Assis
parent cbce79ddb3
commit ad5fff4b0b
2 changed files with 12 additions and 2 deletions

View File

@ -28,6 +28,12 @@ config LV_USE_USER_DATA
---help---
Add a `user_data` to drivers and objects
config LV_USE_PERF_MONITOR
bool "Show CPU usage and FPS count"
default n
---help---
Show CPU usage and FPS count in the right bottom corner
menu "Graphics settings"
config LV_HOR_RES

View File

@ -1,5 +1,5 @@
/****************************************************************************
* apps/graphics/littlevgl/lv_conf.h
* apps/graphics/lvgl/lv_conf.h
*
* Copyright (C) 2018 Gregory Nutt. All rights reserved.
* Author: Gábor Kiss-Vámosi <kisvegabor@gmail.com>
@ -330,7 +330,11 @@ typedef void * lv_fs_drv_user_data_t;
/* 1: Show CPU usage and FPS count in the right bottom corner */
#define LV_USE_PERF_MONITOR 0
#ifdef CONFIG_LV_USE_PERF_MONITOR
#define LV_USE_PERF_MONITOR CONFIG_LV_USE_PERF_MONITOR
#else
#define LV_USE_PERF_MONITOR 0
#endif
/* 1: Use the functions and types from the older API if possible */