forked from Archive/PX4-Autopilot
aerofc: Reboot after crash
This commit is contained in:
parent
c866e745cd
commit
523688e43c
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue