mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
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:
parent
0b084ded88
commit
e0d118e349
1 changed files with 4 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue