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

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

commit 09323f83f0dfc00f24f1a0badeb92af7acd30812
Author: Bowen Wang <[email protected]>
AuthorDate: Mon Nov 2 22:46:51 2026 +0800

    include/sys/boardctl.h: add BOARDIOC_SOFTRESETCAUSE_MAX
    
    Mark the end of enum boardioc_softreset_subreason_e, so that a driver
    can use the values above it for its own states without colliding with
    a reset subreason.
    
    Signed-off-by: Bowen Wang <[email protected]>
---
 include/sys/boardctl.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/sys/boardctl.h b/include/sys/boardctl.h
index ede5c91c3cf..f1aace579bb 100644
--- a/include/sys/boardctl.h
+++ b/include/sys/boardctl.h
@@ -429,7 +429,8 @@ enum boardioc_softreset_subreason_e
   BOARDIOC_SOFTRESETCAUSE_RESTORE_FACTORY,
   BOARDIOC_SOFTRESETCAUSE_RESTORE_FACTORY_INQUIRY,
   BOARDIOC_SOFTRESETCAUSE_THERMAL,
-  BOARDIOC_SOFTRESETCAUSE_POWEROFF
+  BOARDIOC_SOFTRESETCAUSE_POWEROFF,
+  BOARDIOC_SOFTRESETCAUSE_MAX
 };
 
 struct boardioc_reset_cause_s

Reply via email to