From 59818094c5f7b67b8296c414d57eeb56d1daa3b9 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Thu, 21 Jul 2022 22:45:23 +0200 Subject: [PATCH] update lv_conf_temaple.h --- lv_conf_template.h | 104 +++++----- scripts/code-format.cfg | 1 + src/lv_conf_internal.h | 442 ++++++++++++++++++++-------------------- 3 files changed, 275 insertions(+), 272 deletions(-) diff --git a/lv_conf_template.h b/lv_conf_template.h index 29bdf268f..48e109556 100644 --- a/lv_conf_template.h +++ b/lv_conf_template.h @@ -47,6 +47,9 @@ #endif #endif /*LV_USE_BUILTIN_MALLOC*/ +/*Enable lv_memcpy_builtin, lv_memset_builtin, lv_strlen_builtin, lv_strncpy_builtin*/ +#define LV_USE_BUILTIN_MEMCPY 1 + /*Enable and configure the built-in (v)snprintf */ #define LV_USE_BUILTIN_SNPRINTF 1 #if LV_USE_BUILTIN_SNPRINTF @@ -434,11 +437,13 @@ #define LV_USE_ARABIC_PERSIAN_CHARS 0 /*================== - * WIDGET USAGE + * WIDGETS *================*/ /*Documentation of the widgets: https://docs.lvgl.io/latest/en/html/widgets/index.html*/ +#define LV_USE_ANIMIMG 1 + #define LV_USE_ARC 1 #define LV_USE_BAR 1 @@ -447,47 +452,6 @@ #define LV_USE_BTNMATRIX 1 -#define LV_USE_CANVAS 1 - -#define LV_USE_CHECKBOX 1 - -#define LV_USE_DROPDOWN 1 /*Requires: lv_label*/ - -#define LV_USE_IMG 1 /*Requires: lv_label*/ - -#define LV_USE_LABEL 1 -#if LV_USE_LABEL - #define LV_LABEL_TEXT_SELECTION 1 /*Enable selecting text of the label*/ - #define LV_LABEL_LONG_TXT_HINT 1 /*Store some extra info in labels to speed up drawing of very long texts*/ -#endif - -#define LV_USE_LINE 1 - -#define LV_USE_ROLLER 1 /*Requires: lv_label*/ -#if LV_USE_ROLLER - #define LV_ROLLER_INF_PAGES 7 /*Number of extra "pages" when the roller is infinite*/ -#endif - -#define LV_USE_SLIDER 1 /*Requires: lv_bar*/ - -#define LV_USE_SWITCH 1 - -#define LV_USE_TEXTAREA 1 /*Requires: lv_label*/ -#if LV_USE_TEXTAREA != 0 - #define LV_TEXTAREA_DEF_PWD_SHOW_TIME 1500 /*ms*/ -#endif - -#define LV_USE_TABLE 1 - -/*================== - * EXTRA COMPONENTS - *==================*/ - -/*----------- - * Widgets - *----------*/ -#define LV_USE_ANIMIMG 1 - #define LV_USE_CALENDAR 1 #if LV_USE_CALENDAR #define LV_CALENDAR_WEEK_STARTS_MONDAY 0 @@ -502,16 +466,32 @@ #define LV_USE_CALENDAR_HEADER_DROPDOWN 1 #endif /*LV_USE_CALENDAR*/ +#define LV_USE_CANVAS 1 + #define LV_USE_CHART 1 +#define LV_USE_CHECKBOX 1 + #define LV_USE_COLORWHEEL 1 +#define LV_USE_DROPDOWN 1 /*Requires: lv_label*/ + +#define LV_USE_IMG 1 /*Requires: lv_label*/ + #define LV_USE_IMGBTN 1 #define LV_USE_KEYBOARD 1 +#define LV_USE_LABEL 1 +#if LV_USE_LABEL + #define LV_LABEL_TEXT_SELECTION 1 /*Enable selecting text of the label*/ + #define LV_LABEL_LONG_TXT_HINT 1 /*Store some extra info in labels to speed up drawing of very long texts*/ +#endif + #define LV_USE_LED 1 +#define LV_USE_LINE 1 + #define LV_USE_LIST 1 #define LV_USE_MENU 1 @@ -520,6 +500,13 @@ #define LV_USE_MSGBOX 1 +#define LV_USE_ROLLER 1 /*Requires: lv_label*/ +#if LV_USE_ROLLER + #define LV_ROLLER_INF_PAGES 7 /*Number of extra "pages" when the roller is infinite*/ +#endif + +#define LV_USE_SLIDER 1 /*Requires: lv_bar*/ + #define LV_USE_SPAN 1 #if LV_USE_SPAN /*A line text can contain maximum num of span descriptor */ @@ -530,15 +517,24 @@ #define LV_USE_SPINNER 1 +#define LV_USE_SWITCH 1 + +#define LV_USE_TEXTAREA 1 /*Requires: lv_label*/ +#if LV_USE_TEXTAREA != 0 + #define LV_TEXTAREA_DEF_PWD_SHOW_TIME 1500 /*ms*/ +#endif + +#define LV_USE_TABLE 1 + #define LV_USE_TABVIEW 1 #define LV_USE_TILEVIEW 1 #define LV_USE_WIN 1 -/*----------- - * Themes - *----------*/ +/*================== + * THEMES + *==================*/ /*A simple, impressive and very complete theme*/ #define LV_USE_THEME_DEFAULT 1 @@ -560,9 +556,9 @@ /*A theme designed for monochrome displays*/ #define LV_USE_THEME_MONO 1 -/*----------- - * Layouts - *----------*/ +/*================== + * LAYOUTS + *==================*/ /*A layout similar to Flexbox in CSS.*/ #define LV_USE_FLEX 1 @@ -570,9 +566,9 @@ /*A layout similar to Grid in CSS.*/ #define LV_USE_GRID 1 -/*--------------------- - * 3rd party libraries - *--------------------*/ +/*==================== + * 3RD PARTS LIBRARIES + *====================*/ /*File system interfaces for common APIs */ @@ -651,9 +647,9 @@ #define LV_FFMPEG_DUMP_FORMAT 0 #endif -/*----------- - * Others - *----------*/ +/*================== + * OTHERS + *==================*/ /*1: Enable API to take snapshot for object*/ #define LV_USE_SNAPSHOT 0 diff --git a/scripts/code-format.cfg b/scripts/code-format.cfg index 90fc0eb47..719eef298 100644 --- a/scripts/code-format.cfg +++ b/scripts/code-format.cfg @@ -26,6 +26,7 @@ --ignore-exclude-errors-x --exclude=assets --exclude=test_fonts +--exclude=../src/lv_conf_internal.h --exclude=../src/core/lv_obj_style_gen.c --exclude=../src/core/lv_obj_style_gen.h --exclude=../src/extra/libs/gif/gifdec.c diff --git a/src/lv_conf_internal.h b/src/lv_conf_internal.h index a17ca4189..c774ef7b3 100644 --- a/src/lv_conf_internal.h +++ b/src/lv_conf_internal.h @@ -131,6 +131,19 @@ #endif #endif /*LV_USE_BUILTIN_MALLOC*/ +/*Enable lv_memcpy_builtin, lv_memset_builtin, lv_strlen_builtin, lv_strncpy_builtin*/ +#ifndef LV_USE_BUILTIN_MEMCPY + #ifdef _LV_KCONFIG_PRESENT + #ifdef CONFIG_LV_USE_BUILTIN_MEMCPY + #define LV_USE_BUILTIN_MEMCPY CONFIG_LV_USE_BUILTIN_MEMCPY + #else + #define LV_USE_BUILTIN_MEMCPY 0 + #endif + #else + #define LV_USE_BUILTIN_MEMCPY 1 + #endif +#endif + /*Enable and configure the built-in (v)snprintf */ #ifndef LV_USE_BUILTIN_SNPRINTF #ifdef _LV_KCONFIG_PRESENT @@ -296,7 +309,7 @@ #if LV_USE_DRAW_SW /*Enable complex draw engine. - *Required to draw shadow, gradient, rounded corners, circles, arc, skew lines, image transformations or any masks*/ + *Required to draw shadow, gradient, rounded corners, circles, arc, skew lines, image transformations or any masks*/ #ifndef LV_DRAW_SW_COMPLEX #ifdef _LV_KCONFIG_PRESENT #ifdef CONFIG_LV_DRAW_SW_COMPLEX @@ -310,9 +323,9 @@ #endif /* If a widget has `style_opa < 255` (not `bg_opa`, `text_opa` etc) or not NORMAL blend mode - * it is buffered into a "simple" layer before rendering. The widget can be buffered in smaller chunks. - * "Transformed layers" (if `transform_angle/zoom` are set) use larger buffers - * and can't be drawn in chunks. */ + * it is buffered into a "simple" layer before rendering. The widget can be buffered in smaller chunks. + * "Transformed layers" (if `transform_angle/zoom` are set) use larger buffers + * and can't be drawn in chunks. */ /*The target buffer size for simple layer chunks.*/ #ifndef LV_DRAW_SW_LAYER_SIMPLE_BUF_SIZE @@ -356,10 +369,10 @@ #endif /*Default gradient buffer size. - *When LVGL calculates the gradient "maps" it can save them into a cache to avoid calculating them again. - *LV_DRAW_SW_GRADIENT_CACHE_DEF_SIZE sets the size of this cache in bytes. - *If the cache is too small the map will be allocated only while it's required for the drawing. - *0 mean no caching.*/ + *When LVGL calculates the gradient "maps" it can save them into a cache to avoid calculating them again. + *LV_DRAW_SW_GRADIENT_CACHE_DEF_SIZE sets the size of this cache in bytes. + *If the cache is too small the map will be allocated only while it's required for the drawing. + *0 mean no caching.*/ #ifndef LV_DRAW_SW_GRADIENT_CACHE_DEF_SIZE #ifdef CONFIG_LV_DRAW_SW_GRADIENT_CACHE_DEF_SIZE #define LV_DRAW_SW_GRADIENT_CACHE_DEF_SIZE CONFIG_LV_DRAW_SW_GRADIENT_CACHE_DEF_SIZE @@ -369,8 +382,8 @@ #endif /*Allow dithering the gradients (to achieve visual smooth color gradients on limited color depth display) - *LV_DRAW_SW_GRADIENT_DITHER implies allocating one or two more lines of the object's rendering surface - *The increase in memory consumption is (32 bits * object width) plus 24 bits * object width if using error diffusion */ + *LV_DRAW_SW_GRADIENT_DITHER implies allocating one or two more lines of the object's rendering surface + *The increase in memory consumption is (32 bits * object width) plus 24 bits * object width if using error diffusion */ #ifndef LV_DRAW_SW_GRADIENT_DITHER #ifdef CONFIG_LV_DRAW_SW_GRADIENT_DITHER #define LV_DRAW_SW_GRADIENT_DITHER CONFIG_LV_DRAW_SW_GRADIENT_DITHER @@ -380,8 +393,8 @@ #endif #if LV_DRAW_SW_GRADIENT_DITHER /*Add support for error diffusion dithering. - *Error diffusion dithering gets a much better visual result, but implies more CPU consumption and memory when drawing. - *The increase in memory consumption is (24 bits * object's width)*/ + *Error diffusion dithering gets a much better visual result, but implies more CPU consumption and memory when drawing. + *The increase in memory consumption is (24 bits * object's width)*/ #ifndef LV_DRAW_SW_GRADIENT_DITHER_ERROR_DIFFUSION #ifdef CONFIG_LV_DRAW_SW_GRADIENT_DITHER_ERROR_DIFFUSION #define LV_DRAW_SW_GRADIENT_DITHER_ERROR_DIFFUSION CONFIG_LV_DRAW_SW_GRADIENT_DITHER_ERROR_DIFFUSION @@ -1322,11 +1335,23 @@ #endif /*================== - * WIDGET USAGE + * WIDGETS *================*/ /*Documentation of the widgets: https://docs.lvgl.io/latest/en/html/widgets/index.html*/ +#ifndef LV_USE_ANIMIMG + #ifdef _LV_KCONFIG_PRESENT + #ifdef CONFIG_LV_USE_ANIMIMG + #define LV_USE_ANIMIMG CONFIG_LV_USE_ANIMIMG + #else + #define LV_USE_ANIMIMG 0 + #endif + #else + #define LV_USE_ANIMIMG 1 + #endif +#endif + #ifndef LV_USE_ARC #ifdef _LV_KCONFIG_PRESENT #ifdef CONFIG_LV_USE_ARC @@ -1375,199 +1400,6 @@ #endif #endif -#ifndef LV_USE_CANVAS - #ifdef _LV_KCONFIG_PRESENT - #ifdef CONFIG_LV_USE_CANVAS - #define LV_USE_CANVAS CONFIG_LV_USE_CANVAS - #else - #define LV_USE_CANVAS 0 - #endif - #else - #define LV_USE_CANVAS 1 - #endif -#endif - -#ifndef LV_USE_CHECKBOX - #ifdef _LV_KCONFIG_PRESENT - #ifdef CONFIG_LV_USE_CHECKBOX - #define LV_USE_CHECKBOX CONFIG_LV_USE_CHECKBOX - #else - #define LV_USE_CHECKBOX 0 - #endif - #else - #define LV_USE_CHECKBOX 1 - #endif -#endif - -#ifndef LV_USE_DROPDOWN - #ifdef _LV_KCONFIG_PRESENT - #ifdef CONFIG_LV_USE_DROPDOWN - #define LV_USE_DROPDOWN CONFIG_LV_USE_DROPDOWN - #else - #define LV_USE_DROPDOWN 0 - #endif - #else - #define LV_USE_DROPDOWN 1 /*Requires: lv_label*/ - #endif -#endif - -#ifndef LV_USE_IMG - #ifdef _LV_KCONFIG_PRESENT - #ifdef CONFIG_LV_USE_IMG - #define LV_USE_IMG CONFIG_LV_USE_IMG - #else - #define LV_USE_IMG 0 - #endif - #else - #define LV_USE_IMG 1 /*Requires: lv_label*/ - #endif -#endif - -#ifndef LV_USE_LABEL - #ifdef _LV_KCONFIG_PRESENT - #ifdef CONFIG_LV_USE_LABEL - #define LV_USE_LABEL CONFIG_LV_USE_LABEL - #else - #define LV_USE_LABEL 0 - #endif - #else - #define LV_USE_LABEL 1 - #endif -#endif -#if LV_USE_LABEL - #ifndef LV_LABEL_TEXT_SELECTION - #ifdef _LV_KCONFIG_PRESENT - #ifdef CONFIG_LV_LABEL_TEXT_SELECTION - #define LV_LABEL_TEXT_SELECTION CONFIG_LV_LABEL_TEXT_SELECTION - #else - #define LV_LABEL_TEXT_SELECTION 0 - #endif - #else - #define LV_LABEL_TEXT_SELECTION 1 /*Enable selecting text of the label*/ - #endif - #endif - #ifndef LV_LABEL_LONG_TXT_HINT - #ifdef _LV_KCONFIG_PRESENT - #ifdef CONFIG_LV_LABEL_LONG_TXT_HINT - #define LV_LABEL_LONG_TXT_HINT CONFIG_LV_LABEL_LONG_TXT_HINT - #else - #define LV_LABEL_LONG_TXT_HINT 0 - #endif - #else - #define LV_LABEL_LONG_TXT_HINT 1 /*Store some extra info in labels to speed up drawing of very long texts*/ - #endif - #endif -#endif - -#ifndef LV_USE_LINE - #ifdef _LV_KCONFIG_PRESENT - #ifdef CONFIG_LV_USE_LINE - #define LV_USE_LINE CONFIG_LV_USE_LINE - #else - #define LV_USE_LINE 0 - #endif - #else - #define LV_USE_LINE 1 - #endif -#endif - -#ifndef LV_USE_ROLLER - #ifdef _LV_KCONFIG_PRESENT - #ifdef CONFIG_LV_USE_ROLLER - #define LV_USE_ROLLER CONFIG_LV_USE_ROLLER - #else - #define LV_USE_ROLLER 0 - #endif - #else - #define LV_USE_ROLLER 1 /*Requires: lv_label*/ - #endif -#endif -#if LV_USE_ROLLER - #ifndef LV_ROLLER_INF_PAGES - #ifdef CONFIG_LV_ROLLER_INF_PAGES - #define LV_ROLLER_INF_PAGES CONFIG_LV_ROLLER_INF_PAGES - #else - #define LV_ROLLER_INF_PAGES 7 /*Number of extra "pages" when the roller is infinite*/ - #endif - #endif -#endif - -#ifndef LV_USE_SLIDER - #ifdef _LV_KCONFIG_PRESENT - #ifdef CONFIG_LV_USE_SLIDER - #define LV_USE_SLIDER CONFIG_LV_USE_SLIDER - #else - #define LV_USE_SLIDER 0 - #endif - #else - #define LV_USE_SLIDER 1 /*Requires: lv_bar*/ - #endif -#endif - -#ifndef LV_USE_SWITCH - #ifdef _LV_KCONFIG_PRESENT - #ifdef CONFIG_LV_USE_SWITCH - #define LV_USE_SWITCH CONFIG_LV_USE_SWITCH - #else - #define LV_USE_SWITCH 0 - #endif - #else - #define LV_USE_SWITCH 1 - #endif -#endif - -#ifndef LV_USE_TEXTAREA - #ifdef _LV_KCONFIG_PRESENT - #ifdef CONFIG_LV_USE_TEXTAREA - #define LV_USE_TEXTAREA CONFIG_LV_USE_TEXTAREA - #else - #define LV_USE_TEXTAREA 0 - #endif - #else - #define LV_USE_TEXTAREA 1 /*Requires: lv_label*/ - #endif -#endif -#if LV_USE_TEXTAREA != 0 - #ifndef LV_TEXTAREA_DEF_PWD_SHOW_TIME - #ifdef CONFIG_LV_TEXTAREA_DEF_PWD_SHOW_TIME - #define LV_TEXTAREA_DEF_PWD_SHOW_TIME CONFIG_LV_TEXTAREA_DEF_PWD_SHOW_TIME - #else - #define LV_TEXTAREA_DEF_PWD_SHOW_TIME 1500 /*ms*/ - #endif - #endif -#endif - -#ifndef LV_USE_TABLE - #ifdef _LV_KCONFIG_PRESENT - #ifdef CONFIG_LV_USE_TABLE - #define LV_USE_TABLE CONFIG_LV_USE_TABLE - #else - #define LV_USE_TABLE 0 - #endif - #else - #define LV_USE_TABLE 1 - #endif -#endif - -/*================== - * EXTRA COMPONENTS - *==================*/ - -/*----------- - * Widgets - *----------*/ -#ifndef LV_USE_ANIMIMG - #ifdef _LV_KCONFIG_PRESENT - #ifdef CONFIG_LV_USE_ANIMIMG - #define LV_USE_ANIMIMG CONFIG_LV_USE_ANIMIMG - #else - #define LV_USE_ANIMIMG 0 - #endif - #else - #define LV_USE_ANIMIMG 1 - #endif -#endif - #ifndef LV_USE_CALENDAR #ifdef _LV_KCONFIG_PRESENT #ifdef CONFIG_LV_USE_CALENDAR @@ -1636,6 +1468,18 @@ #endif #endif /*LV_USE_CALENDAR*/ +#ifndef LV_USE_CANVAS + #ifdef _LV_KCONFIG_PRESENT + #ifdef CONFIG_LV_USE_CANVAS + #define LV_USE_CANVAS CONFIG_LV_USE_CANVAS + #else + #define LV_USE_CANVAS 0 + #endif + #else + #define LV_USE_CANVAS 1 + #endif +#endif + #ifndef LV_USE_CHART #ifdef _LV_KCONFIG_PRESENT #ifdef CONFIG_LV_USE_CHART @@ -1648,6 +1492,18 @@ #endif #endif +#ifndef LV_USE_CHECKBOX + #ifdef _LV_KCONFIG_PRESENT + #ifdef CONFIG_LV_USE_CHECKBOX + #define LV_USE_CHECKBOX CONFIG_LV_USE_CHECKBOX + #else + #define LV_USE_CHECKBOX 0 + #endif + #else + #define LV_USE_CHECKBOX 1 + #endif +#endif + #ifndef LV_USE_COLORWHEEL #ifdef _LV_KCONFIG_PRESENT #ifdef CONFIG_LV_USE_COLORWHEEL @@ -1660,6 +1516,30 @@ #endif #endif +#ifndef LV_USE_DROPDOWN + #ifdef _LV_KCONFIG_PRESENT + #ifdef CONFIG_LV_USE_DROPDOWN + #define LV_USE_DROPDOWN CONFIG_LV_USE_DROPDOWN + #else + #define LV_USE_DROPDOWN 0 + #endif + #else + #define LV_USE_DROPDOWN 1 /*Requires: lv_label*/ + #endif +#endif + +#ifndef LV_USE_IMG + #ifdef _LV_KCONFIG_PRESENT + #ifdef CONFIG_LV_USE_IMG + #define LV_USE_IMG CONFIG_LV_USE_IMG + #else + #define LV_USE_IMG 0 + #endif + #else + #define LV_USE_IMG 1 /*Requires: lv_label*/ + #endif +#endif + #ifndef LV_USE_IMGBTN #ifdef _LV_KCONFIG_PRESENT #ifdef CONFIG_LV_USE_IMGBTN @@ -1684,6 +1564,42 @@ #endif #endif +#ifndef LV_USE_LABEL + #ifdef _LV_KCONFIG_PRESENT + #ifdef CONFIG_LV_USE_LABEL + #define LV_USE_LABEL CONFIG_LV_USE_LABEL + #else + #define LV_USE_LABEL 0 + #endif + #else + #define LV_USE_LABEL 1 + #endif +#endif +#if LV_USE_LABEL + #ifndef LV_LABEL_TEXT_SELECTION + #ifdef _LV_KCONFIG_PRESENT + #ifdef CONFIG_LV_LABEL_TEXT_SELECTION + #define LV_LABEL_TEXT_SELECTION CONFIG_LV_LABEL_TEXT_SELECTION + #else + #define LV_LABEL_TEXT_SELECTION 0 + #endif + #else + #define LV_LABEL_TEXT_SELECTION 1 /*Enable selecting text of the label*/ + #endif + #endif + #ifndef LV_LABEL_LONG_TXT_HINT + #ifdef _LV_KCONFIG_PRESENT + #ifdef CONFIG_LV_LABEL_LONG_TXT_HINT + #define LV_LABEL_LONG_TXT_HINT CONFIG_LV_LABEL_LONG_TXT_HINT + #else + #define LV_LABEL_LONG_TXT_HINT 0 + #endif + #else + #define LV_LABEL_LONG_TXT_HINT 1 /*Store some extra info in labels to speed up drawing of very long texts*/ + #endif + #endif +#endif + #ifndef LV_USE_LED #ifdef _LV_KCONFIG_PRESENT #ifdef CONFIG_LV_USE_LED @@ -1696,6 +1612,18 @@ #endif #endif +#ifndef LV_USE_LINE + #ifdef _LV_KCONFIG_PRESENT + #ifdef CONFIG_LV_USE_LINE + #define LV_USE_LINE CONFIG_LV_USE_LINE + #else + #define LV_USE_LINE 0 + #endif + #else + #define LV_USE_LINE 1 + #endif +#endif + #ifndef LV_USE_LIST #ifdef _LV_KCONFIG_PRESENT #ifdef CONFIG_LV_USE_LIST @@ -1744,6 +1672,39 @@ #endif #endif +#ifndef LV_USE_ROLLER + #ifdef _LV_KCONFIG_PRESENT + #ifdef CONFIG_LV_USE_ROLLER + #define LV_USE_ROLLER CONFIG_LV_USE_ROLLER + #else + #define LV_USE_ROLLER 0 + #endif + #else + #define LV_USE_ROLLER 1 /*Requires: lv_label*/ + #endif +#endif +#if LV_USE_ROLLER + #ifndef LV_ROLLER_INF_PAGES + #ifdef CONFIG_LV_ROLLER_INF_PAGES + #define LV_ROLLER_INF_PAGES CONFIG_LV_ROLLER_INF_PAGES + #else + #define LV_ROLLER_INF_PAGES 7 /*Number of extra "pages" when the roller is infinite*/ + #endif + #endif +#endif + +#ifndef LV_USE_SLIDER + #ifdef _LV_KCONFIG_PRESENT + #ifdef CONFIG_LV_USE_SLIDER + #define LV_USE_SLIDER CONFIG_LV_USE_SLIDER + #else + #define LV_USE_SLIDER 0 + #endif + #else + #define LV_USE_SLIDER 1 /*Requires: lv_bar*/ + #endif +#endif + #ifndef LV_USE_SPAN #ifdef _LV_KCONFIG_PRESENT #ifdef CONFIG_LV_USE_SPAN @@ -1790,6 +1751,51 @@ #endif #endif +#ifndef LV_USE_SWITCH + #ifdef _LV_KCONFIG_PRESENT + #ifdef CONFIG_LV_USE_SWITCH + #define LV_USE_SWITCH CONFIG_LV_USE_SWITCH + #else + #define LV_USE_SWITCH 0 + #endif + #else + #define LV_USE_SWITCH 1 + #endif +#endif + +#ifndef LV_USE_TEXTAREA + #ifdef _LV_KCONFIG_PRESENT + #ifdef CONFIG_LV_USE_TEXTAREA + #define LV_USE_TEXTAREA CONFIG_LV_USE_TEXTAREA + #else + #define LV_USE_TEXTAREA 0 + #endif + #else + #define LV_USE_TEXTAREA 1 /*Requires: lv_label*/ + #endif +#endif +#if LV_USE_TEXTAREA != 0 + #ifndef LV_TEXTAREA_DEF_PWD_SHOW_TIME + #ifdef CONFIG_LV_TEXTAREA_DEF_PWD_SHOW_TIME + #define LV_TEXTAREA_DEF_PWD_SHOW_TIME CONFIG_LV_TEXTAREA_DEF_PWD_SHOW_TIME + #else + #define LV_TEXTAREA_DEF_PWD_SHOW_TIME 1500 /*ms*/ + #endif + #endif +#endif + +#ifndef LV_USE_TABLE + #ifdef _LV_KCONFIG_PRESENT + #ifdef CONFIG_LV_USE_TABLE + #define LV_USE_TABLE CONFIG_LV_USE_TABLE + #else + #define LV_USE_TABLE 0 + #endif + #else + #define LV_USE_TABLE 1 + #endif +#endif + #ifndef LV_USE_TABVIEW #ifdef _LV_KCONFIG_PRESENT #ifdef CONFIG_LV_USE_TABVIEW @@ -1826,9 +1832,9 @@ #endif #endif -/*----------- - * Themes - *----------*/ +/*================== + * THEMES + *==================*/ /*A simple, impressive and very complete theme*/ #ifndef LV_USE_THEME_DEFAULT @@ -1902,9 +1908,9 @@ #endif #endif -/*----------- - * Layouts - *----------*/ +/*================== + * LAYOUTS + *==================*/ /*A layout similar to Flexbox in CSS.*/ #ifndef LV_USE_FLEX @@ -1932,9 +1938,9 @@ #endif #endif -/*--------------------- - * 3rd party libraries - *--------------------*/ +/*==================== + * 3RD PARTS LIBRARIES + *====================*/ /*File system interfaces for common APIs */ @@ -2181,9 +2187,9 @@ #endif #endif -/*----------- - * Others - *----------*/ +/*================== + * OTHERS + *==================*/ /*1: Enable API to take snapshot for object*/ #ifndef LV_USE_SNAPSHOT