arch/: Add 'BOARD_ASSERT_RESET_VALUE' in config/Kconfig and replace reboot status '0' to 'CONFIG_BOARD_ASSERT_RESET_VALUE'.

This commit is contained in:
Gregory Nutt
2018-11-10 14:06:46 -06:00
parent e6ebbe875a
commit 2b3ec4172d
17 changed files with 42 additions and 32 deletions
+2 -2
View File
@@ -134,7 +134,7 @@ static void xtensa_assert(int errorcode)
for (; ; )
{
#if CONFIG_BOARD_RESET_ON_ASSERT >= 1
board_reset(0);
board_reset(CONFIG_BOARD_ASSERT_RESET_VALUE);
#endif
#ifdef CONFIG_ARCH_LEDS
board_autoled_on(LED_PANIC);
@@ -149,7 +149,7 @@ static void xtensa_assert(int errorcode)
/* Assertions in other contexts only cause the thread to exit */
#if CONFIG_BOARD_RESET_ON_ASSERT >= 2
board_reset(0);
board_reset(CONFIG_BOARD_ASSERT_RESET_VALUE);
#endif
exit(errorcode);
}