This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new e0d118e34 examples/powerled: Fix board initialization compilation
e0d118e34 is described below

commit e0d118e3491ac294e8e936f17d701d6abd95bf0f
Author: Matteo Golin <[email protected]>
AuthorDate: Tue Feb 24 14:54:05 2026 -0500

    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 <[email protected]>
---
 examples/powerled/powerled_main.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/examples/powerled/powerled_main.c 
b/examples/powerled/powerled_main.c
index c0b3cd29d..4478d2ee7 100644
--- a/examples/powerled/powerled_main.c
+++ b/examples/powerled/powerled_main.c
@@ -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>

Reply via email to