Skip to content

Commit

Permalink
fix(nuttx):fix compilation error when opening profiler
Browse files Browse the repository at this point in the history
  • Loading branch information
IAMMX committed Jan 24, 2024
1 parent 5c9a0cc commit 8f5fdc9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/drivers/nuttx/lv_nuttx_profiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include "lv_nuttx_profiler.h"
#include "../../../lvgl.h"

#if LV_USE_NUTTX

#if LV_USE_PROFILER && LV_USE_PROFILER_BUILTIN

#include <nuttx/arch.h>
Expand Down Expand Up @@ -94,3 +96,5 @@ static void flush_cb(const char * buf)
}

#endif

#endif /* LV_USE_NUTTX */
4 changes: 4 additions & 0 deletions src/drivers/nuttx/lv_nuttx_profiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ extern "C" {
* INCLUDES
*********************/

#if LV_USE_NUTTX

/*********************
* DEFINES
*********************/
Expand All @@ -32,6 +34,8 @@ void lv_nuttx_profiler_init(void);
* MACROS
**********************/

#endif /* LV_USE_NUTTX */

#ifdef __cplusplus
} /*extern "C"*/
#endif
Expand Down

0 comments on commit 8f5fdc9

Please sign in to comment.