aerofc: Reboot after crash

This commit is contained in:
José Roberto de Souza 2017-01-23 12:57:43 -08:00 committed by Lorenz Meier
parent c866e745cd
commit 523688e43c
2 changed files with 8 additions and 1 deletions

View File

@ -631,7 +631,8 @@ CONFIG_ARCH_BOARD="aerofc-v1"
#
# Board-Specific Options
#
# CONFIG_BOARD_CRASHDUMP is not set
CONFIG_BOARD_CRASHDUMP=y
CONFIG_BOARD_RESET_ON_CRASH=y
CONFIG_LIB_BOARDCTL=y
# CONFIG_BOARDCTL_RESET is not set
# CONFIG_BOARDCTL_UNIQUEID is not set

View File

@ -366,3 +366,9 @@ __EXPORT int board_app_initialize(uintptr_t arg)
return OK;
}
__EXPORT void board_crashdump(uintptr_t currentsp, FAR void *tcb, FAR const uint8_t *filename, int lineno)
{
#if defined(CONFIG_BOARD_RESET_ON_CRASH)
px4_systemreset(false);
#endif
}