examples/powerled: Fix board initialization compilation

When NSH_ARCHINIT is not enabled, initialization is to be performed by
boardctl(BOARDIOC_INIT). However, the boardctl header is not included so
this causes compilation to fail. This commit corrects that issue.

Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
This commit is contained in:
Matteo Golin 2026-02-24 14:54:05 -05:00 committed by Xiang Xiao
parent 0b084ded88
commit e0d118e349

View file

@ -38,6 +38,10 @@
#include <debug.h>
#include <sys/ioctl.h>
#ifndef CONFIG_NSH_ARCHINIT
#include <sys/boardctl.h>
#endif
#include <nuttx/fs/fs.h>
#include <nuttx/power/powerled.h>