lv_conf_checker.py: add auto incude of lv_conf.h if available

This commit is contained in:
Gabor Kiss-Vamosi
2020-10-26 12:40:05 +01:00
parent b44ddb5b64
commit c19a4ad568
2 changed files with 19 additions and 4 deletions

View File

@@ -32,6 +32,14 @@ fout.write(
#include <stdint.h>
#if defined __has_include
# if __has_include("lv_conf.h")
# ifndef LV_CONF_INCLUDE_SIMPLE
# define LV_CONF_INCLUDE_SIMPLE
# endif
# endif
#endif
/*If lv_conf.h is not skipped include it*/
#if !defined(LV_CONF_SKIP) && !defined(CONFIG_LV_CONF_SKIP)
# if defined(LV_CONF_PATH) /*If there is a path defined for lv_conf.h use it*/