Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
启明云端(wireless-tag)
Lv Port Esp32
提交
6ddf8469
L
Lv Port Esp32
项目概览
启明云端(wireless-tag)
/
Lv Port Esp32
通知
17
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
Lv Port Esp32
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
6ddf8469
编写于
6月 19, 2020
作者:
A
an-erd
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Moved LV_USE_LOG and log level to Kconfig
上级
5da571fc
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
53 addition
and
1 deletion
+53
-1
components/lvgl/Kconfig
components/lvgl/Kconfig
+33
-0
components/lvgl/lv_conf.h
components/lvgl/lv_conf.h
+20
-1
未找到文件。
components/lvgl/Kconfig
浏览文件 @
6ddf8469
...
...
@@ -578,4 +578,37 @@ menu "LVGL configuration"
default n
endmenu
menu "Log Settings"
config LVGL_USE_LOG
bool "Enable the log module"
default n
choice LVGL_LOG_LEVEL
bool "Default log verbosity" if LVGL_USE_LOG
default LVGL_LOG_LEVEL_INFO
help
Specify how important log should be added.
config LVGL_LOG_LEVEL_TRACE
bool "Trace - Detailed information"
config LVGL_LOG_LEVEL_INFO
bool "Info - Log important events"
config LVGL_LOG_LEVEL_WARN
bool "Warn - Log if something unwanted happened"
config LVGL_LOG_LEVEL_ERROR
bool "Error - Only critical issues"
config LVGL_LOG_LEVEL_NONE
bool "None - Do not log anything"
endchoice
config LVGL_LOG_PRINTF
bool "Print the log with 'printf'" if LVGL_USE_LOG
default y
help
Use printf for log output.
If not set the user needs to register a callback with `lv_log_register_print_cb`.
endmenu
endmenu
components/lvgl/lv_conf.h
浏览文件 @
6ddf8469
...
...
@@ -308,7 +308,12 @@ typedef void * lv_indev_drv_user_data_t; /*Type of user data in the i
*===============*/
/*1: Enable the log module*/
#define LV_USE_LOG 0
#if defined CONFIG_LVGL_USE_LOG
# define LV_USE_LOG 1
#else
# define LV_USE_LOG 0
#endif
#if LV_USE_LOG
/* How important log should be added:
* LV_LOG_LEVEL_TRACE A lot of logs to give detailed information
...
...
@@ -317,11 +322,25 @@ typedef void * lv_indev_drv_user_data_t; /*Type of user data in the i
* LV_LOG_LEVEL_ERROR Only critical issue, when the system may fail
* LV_LOG_LEVEL_NONE Do not log anything
*/
#if defined CONFIG_LVGL_LOG_LEVEL_TRACE
# define LV_LOG_LEVEL LV_LOG_LEVEL_TRACE
#elif defined CONFIG_LVGL_LOG_LEVEL_INFO
# define LV_LOG_LEVEL LV_LOG_LEVEL_INFO
#elif defined CONFIG_LVGL_LOG_LEVEL_WARN
# define LV_LOG_LEVEL LV_LOG_LEVEL_WARN
#elif defined CONFIG_LVGL_LOG_LEVEL_ERROR
# define LV_LOG_LEVEL LV_LOG_LEVEL_ERROR
#elif defined CONFIG_LVGL_LOG_LEVEL_NONE
# define LV_LOG_LEVEL LV_LOG_LEVEL_NONE
#endif
/* 1: Print the log with 'printf';
* 0: user need to register a callback with `lv_log_register_print_cb`*/
#if defined CONFIG_LVGL_LOG_PRINTF
# define LV_LOG_PRINTF 1
#else
# define LV_LOG_PRINTF 0
#endif
#endif
/*LV_USE_LOG*/
/*=================
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录