boards/esp32c3-legacy: Add missing include to esp32c3_boot.c

`up_perf_init` defined in `nuttx/arch.h`, if CONFIG_ARCH_PERF_EVENTS enabled the compiler will raise a error:
```
board/esp32c3_boot.c:55:3: error: implicit declaration of function 'up_perf_init' [-Wimplicit-function-declaration]
   55 |   up_perf_init(NULL);
      |   ^~~~~~~~~~~~
board/esp32c3_boot.c:55:16: error: 'NULL' undeclared (first use in this function)
   55 |   up_perf_init(NULL);
      |                ^~~~
board/esp32c3_boot.c:28:1: note: 'NULL' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
   27 | #include <nuttx/board.h>
  +++ |+#include <stddef.h>
   28 |
board/esp32c3_boot.c:55:16: note: each undeclared identifier is reported only once for each function it appears in
   55 |   up_perf_init(NULL);
      |                ^~~~
make[1]: *** [/home/huang/Work/nx/nuttx/boards/Board.mk:83: esp32c3_boot.o] Error 1
```
This commit is contained in:
Huang Qi 2024-11-11 16:42:58 +08:00 committed by Xiang Xiao
parent 56c920ce5d
commit 52b0df1ce6
2 changed files with 3 additions and 0 deletions

View file

@ -23,6 +23,7 @@
****************************************************************************/
#include <nuttx/config.h>
#include <nuttx/arch.h>
#include <nuttx/board.h>
/****************************************************************************

View file

@ -23,6 +23,8 @@
****************************************************************************/
#include <nuttx/config.h>
#include <nuttx/arch.h>
#include <nuttx/board.h>
/****************************************************************************
* Pre-processor Definitions