Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lvgl: Add logging settings to syscfg #3079

Merged
merged 1 commit into from
Sep 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions hw/drivers/display/lvgl/default/lv_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
*-----------*/

/*Enable the log module*/
#define LV_USE_LOG 0
#define LV_USE_LOG MYNEWT_VAL(LV_USE_LOG)
#if LV_USE_LOG

/*How important log should be added:
Expand All @@ -223,11 +223,11 @@
*LV_LOG_LEVEL_ERROR Only critical issue, when the system may fail
*LV_LOG_LEVEL_USER Only logs added by the user
*LV_LOG_LEVEL_NONE Do not log anything*/
#define LV_LOG_LEVEL LV_LOG_LEVEL_WARN
#define LV_LOG_LEVEL MYNEWT_VAL(LV_LOG_LEVEL)

/*1: Print the log with 'printf';
*0: User need to register a callback with `lv_log_register_print_cb()`*/
#define LV_LOG_PRINTF 0
#define LV_LOG_PRINTF MYNEWT_VAL(LV_LOG_PRINTF)

/*Enable/disable LV_LOG_TRACE in modules that produces a huge number of logs*/
#define LV_LOG_TRACE_MEM 1
Expand Down
19 changes: 19 additions & 0 deletions hw/drivers/display/lvgl/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,25 @@ syscfg.defs:
description: Add LVGL demos to build.
value: 1

LV_USE_LOG:
description: >
Enable LVGL logging
value: 0
LV_LOG_LEVEL:
description: >
LVGL log level on of:
- LV_LOG_LEVEL_TRACE A lot of logs to give detailed information
- LV_LOG_LEVEL_INFO Log important events
- LV_LOG_LEVEL_WARN Log if something unwanted happened but didn't cause a problem
- LV_LOG_LEVEL_ERROR Only critical issue, when the system may fail
- LV_LOG_LEVEL_USER Only logs added by the user
- LV_LOG_LEVEL_NONE Do not log anything
value: LV_LOG_LEVEL_WARN
LV_LOG_PRINTF:
description: >
Use printf for writing logs.
value: 1

LV_FONT_DEFAULT:
description: Set default LVGL font.
value: 'lv_font_montserrat_14'
Expand Down