lv_conf_checker: Update lv_conf_checker so it is ESP-IDF aware. (#1864)
* lv_conf_checker: Update lv_conf_checker so it is ESP-IDF aware. Include ESP-IDF headers and lv_conf_kconfig.h when using the ESP-IDF framework. Also remove the CONFIG_LV_CONF_SKIP as it is not generated by the Kconfig file. * lv_conf_checker: Always include lv_conf_kconfig.h. Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
This commit is contained in:
@@ -27,11 +27,18 @@ fout.write(
|
|||||||
#define LV_CONF_INTERNAL_H
|
#define LV_CONF_INTERNAL_H
|
||||||
/* clang-format off */
|
/* clang-format off */
|
||||||
|
|
||||||
/*Handle special Kconfig options*/
|
|
||||||
#include "lv_conf_kconfig.h"
|
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
/* Add ESP-IDF related includes */
|
||||||
|
#if defined (ESP_PLATFORM)
|
||||||
|
# include "sdkconfig.h"
|
||||||
|
# include "esp_attr.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Handle special Kconfig options */
|
||||||
|
#include "lv_conf_kconfig.h"
|
||||||
|
|
||||||
|
/* If "lv_conf.h" is available from here try to use it later.*/
|
||||||
#if defined __has_include
|
#if defined __has_include
|
||||||
# if __has_include("lv_conf.h")
|
# if __has_include("lv_conf.h")
|
||||||
# ifndef LV_CONF_INCLUDE_SIMPLE
|
# ifndef LV_CONF_INCLUDE_SIMPLE
|
||||||
@@ -41,7 +48,7 @@ fout.write(
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*If lv_conf.h is not skipped include it*/
|
/*If lv_conf.h is not skipped include it*/
|
||||||
#if !defined(LV_CONF_SKIP) && !defined(CONFIG_LV_CONF_SKIP)
|
#if !defined(LV_CONF_SKIP)
|
||||||
# if defined(LV_CONF_PATH) /*If there is a path defined for lv_conf.h use it*/
|
# if defined(LV_CONF_PATH) /*If there is a path defined for lv_conf.h use it*/
|
||||||
# define __LV_TO_STR_AUX(x) #x
|
# define __LV_TO_STR_AUX(x) #x
|
||||||
# define __LV_TO_STR(x) __LV_TO_STR_AUX(x)
|
# define __LV_TO_STR(x) __LV_TO_STR_AUX(x)
|
||||||
@@ -105,7 +112,7 @@ fout.write(
|
|||||||
'''
|
'''
|
||||||
|
|
||||||
/*If running without lv_conf.h add typdesf with default value*/
|
/*If running without lv_conf.h add typdesf with default value*/
|
||||||
#if defined(LV_CONF_SKIP) || defined(CONFIG_LV_CONF_SKIP)
|
#if defined(LV_CONF_SKIP)
|
||||||
|
|
||||||
/* Type of coordinates. Should be `int16_t` (or `int32_t` for extreme cases) */
|
/* Type of coordinates. Should be `int16_t` (or `int32_t` for extreme cases) */
|
||||||
typedef int16_t lv_coord_t;
|
typedef int16_t lv_coord_t;
|
||||||
|
|||||||
Reference in New Issue
Block a user