You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/07/21 12:49:01 UTC
[incubator-nuttx] branch master updated: boardctl:add reset subreason restore factory
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/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 2b65b46946 boardctl:add reset subreason restore factory
2b65b46946 is described below
commit 2b65b469469edf9687023567c48fec4d15019247
Author: anjiahao <an...@xiaomi.com>
AuthorDate: Tue Jun 21 12:39:14 2022 +0800
boardctl:add reset subreason restore factory
Signed-off-by: anjiahao <an...@xiaomi.com>
---
include/sys/boardctl.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/sys/boardctl.h b/include/sys/boardctl.h
index 14e1526d67..b79584f969 100644
--- a/include/sys/boardctl.h
+++ b/include/sys/boardctl.h
@@ -432,7 +432,9 @@ enum boardioc_softreset_subreason_e
{
BOARDIOC_SOFTRESETCAUSE_USER_REBOOT = 0,
BOARDIOC_SOFTRESETCAUSE_PANIC,
- BOARDIOC_SOFTRESETCAUSE_ASSERT
+ BOARDIOC_SOFTRESETCAUSE_ASSERT,
+ BOARDIOC_SOFTRESETCAUSE_ENTER_RECOVERY,
+ BOARDIOC_SOFTRESETCAUSE_RESTORE_FACTORY
};
struct boardioc_reset_cause_s