diff --git a/src/drivers/nuttx/lv_nuttx_profiler.c b/src/drivers/nuttx/lv_nuttx_profiler.c index e48fb1d0dd..6825b23035 100644 --- a/src/drivers/nuttx/lv_nuttx_profiler.c +++ b/src/drivers/nuttx/lv_nuttx_profiler.c @@ -8,10 +8,12 @@ *********************/ #include "lv_nuttx_profiler.h" -#include "../../../lvgl.h" #if LV_USE_NUTTX && LV_USE_PROFILER && LV_USE_PROFILER_BUILTIN +#include "../../misc/lv_profiler_builtin_private.h" +#include "../../misc/lv_log.h" +#include "../../stdlib/lv_sprintf.h" #include #include #include diff --git a/src/drivers/nuttx/lv_nuttx_profiler.h b/src/drivers/nuttx/lv_nuttx_profiler.h index 01f97589eb..248279bcba 100644 --- a/src/drivers/nuttx/lv_nuttx_profiler.h +++ b/src/drivers/nuttx/lv_nuttx_profiler.h @@ -14,6 +14,10 @@ extern "C" { * INCLUDES *********************/ +#include "../../lv_conf_internal.h" + +#if LV_USE_NUTTX && LV_USE_PROFILER && LV_USE_PROFILER_BUILTIN + /********************* * DEFINES *********************/ @@ -34,6 +38,8 @@ void lv_nuttx_profiler_deinit(void); * MACROS **********************/ +#endif /*LV_USE_NUTTX && LV_USE_PROFILER && LV_USE_PROFILER_BUILTIN*/ + #ifdef __cplusplus } /*extern "C"*/ #endif