This is an automated email from the ASF dual-hosted git repository.
pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new b2c8b5f674 board: define boardioc_softreset_subreason_e in
CONFIG_BOARDCTL_RESET
b2c8b5f674 is described below
commit b2c8b5f674f7110bf0dd50e31262a71a3633d426
Author: Xiang Xiao <[email protected]>
AuthorDate: Tue Apr 4 16:45:56 2023 +0800
board: define boardioc_softreset_subreason_e in CONFIG_BOARDCTL_RESET
so user could pass boardioc_softreset_subreason_e to board_reset too
Signed-off-by: Xiang Xiao <[email protected]>
---
include/sys/boardctl.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/sys/boardctl.h b/include/sys/boardctl.h
index 7801e6c6a2..90e5431edd 100644
--- a/include/sys/boardctl.h
+++ b/include/sys/boardctl.h
@@ -410,7 +410,7 @@ struct boardioc_boot_info_s
};
#endif
-#ifdef CONFIG_BOARDCTL_RESET_CAUSE
+#if defined(CONFIG_BOARDCTL_RESET) || defined(CONFIG_BOARDCTL_RESET_CAUSE)
/* Describes the reason of last reset */
enum boardioc_reset_cause_e