From fca7b106f1cbdd8a21d6b3c972d23e14c37a5eda Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Mon, 26 Apr 2021 12:20:57 +0200 Subject: [PATCH] feat(lv_conf) export LV_DPI_DEF in lv_conf_internal.h --- scripts/lv_conf_checker.py | 15 ++++++++++----- src/lv_conf_internal.h | 15 ++++++++++----- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/scripts/lv_conf_checker.py b/scripts/lv_conf_checker.py index d7cdaa2a4..db080dd94 100755 --- a/scripts/lv_conf_checker.py +++ b/scripts/lv_conf_checker.py @@ -59,6 +59,10 @@ fout.write( # endif #endif + +/*---------------------------------- + * Start parsing lv_conf_template.h + -----------------------------------*/ ''' ) @@ -106,14 +110,15 @@ for i in fin.read().splitlines(): fout.write( ''' +/*---------------------------------- + * End of parsing lv_conf_template.h + -----------------------------------*/ + +LV_EXPORT_CONST_INT(LV_DPI_DEF); + /*If running without lv_conf.h add typdesf with default value*/ #if defined(LV_CONF_SKIP) - -# if LV_USE_USER_DATA - typedef void * lv_obj_user_data_t; -# endif - # if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) /*Disable warnings for Visual Studio*/ # define _CRT_SECURE_NO_WARNINGS # endif diff --git a/src/lv_conf_internal.h b/src/lv_conf_internal.h index b06911ff6..39747d4af 100644 --- a/src/lv_conf_internal.h +++ b/src/lv_conf_internal.h @@ -42,6 +42,10 @@ # endif #endif + +/*---------------------------------- + * Start parsing lv_conf_template.h + -----------------------------------*/ /*clang-format off*/ #include @@ -1468,14 +1472,15 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/ +/*---------------------------------- + * End of parsing lv_conf_template.h + -----------------------------------*/ + +LV_EXPORT_CONST_INT(LV_DPI_DEF); + /*If running without lv_conf.h add typdesf with default value*/ #if defined(LV_CONF_SKIP) - -# if LV_USE_USER_DATA - typedef void * lv_obj_user_data_t; -# endif - # if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) /*Disable warnings for Visual Studio*/ # define _CRT_SECURE_NO_WARNINGS # endif