add log interface (lv_log) but still there are no log messages added

This commit is contained in:
Gabor Kiss-Vamosi
2018-07-07 08:54:40 +02:00
parent 48375bb780
commit c4eaa1359d
5 changed files with 173 additions and 0 deletions

View File

@@ -86,6 +86,16 @@
#define LV_ATTRIBUTE_TASK_HANDLER /* Define a custom attribute to `lv_task_handler` function */
#define LV_COMPILER_VLA_SUPPORTED 1 /* 1: Variable length array is supported*/
/*Log settings*/
#define USE_LV_LOG 1 /*Enable/disable the log module*/
#if USE_LV_LOG
#define LV_LOG_INFO 0 /*1: Log a lot of runtime information*/
#define LV_LOG_WARN 0 /*1: Log is something unexpected happens but succesfully handled*/
#define LV_LOG_ERROR 1 /*1: Log critical error*/
#define LV_LOG_USER 1 /*1: Log user defined/user level things */
#define LV_LOG_PRINTF 0 /*1: Print the log with 'printf'; 0: user need to register a callback*/
#endif /*USE_LV_LOG*/
/*================
* THEME USAGE
*================*/