boards/Kconfig: set BOARD_ASSERT_RESET_VALUE default value to be 1

The board code should separate the reset reason, so it had better
make "BOARD_ASSERT_RESET_VALUE" not be equal to "EXIT_SUCCESS".
This commit is contained in:
Dong Heng
2021-11-12 18:44:19 +08:00
committed by Gustavo Henrique Nihei
parent 92eedd93a7
commit 779a29fea5
2 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -3369,7 +3369,7 @@ config BOARD_RESET_ON_ASSERT
config BOARD_ASSERT_RESET_VALUE config BOARD_ASSERT_RESET_VALUE
int "Board reset argument" int "Board reset argument"
default 0 default 1
depends on BOARDCTL_RESET depends on BOARDCTL_RESET
---help--- ---help---
Parameter that will be passed to board_reset() by when an Parameter that will be passed to board_reset() by when an
@@ -30,6 +30,8 @@
#include <nuttx/arch.h> #include <nuttx/arch.h>
#include <nuttx/board.h> #include <nuttx/board.h>
#include "esp32c3_systemreset.h"
#ifdef CONFIG_BOARDCTL_RESET #ifdef CONFIG_BOARDCTL_RESET
/**************************************************************************** /****************************************************************************
@@ -58,7 +60,6 @@
int board_reset(int status) int board_reset(int status)
{ {
#ifdef CONFIG_BOARD_ASSERT_RESET_VALUE
syslog(LOG_INFO, "reboot status=%d\n", status); syslog(LOG_INFO, "reboot status=%d\n", status);
switch (status) switch (status)
@@ -71,9 +72,6 @@ int board_reset(int status)
default: default:
break; break;
} }
#else
up_shutdown_handler();
#endif
up_systemreset(); up_systemreset();