aerofc-v1 use board common reset interface

This commit is contained in:
David Sidrane
2017-01-23 12:25:16 -10:00
committed by Lorenz Meier
parent c2c8962765
commit a89a51cb9b
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -634,7 +634,7 @@ CONFIG_ARCH_BOARD="aerofc-v1"
CONFIG_BOARD_CRASHDUMP=y
CONFIG_BOARD_RESET_ON_CRASH=y
CONFIG_LIB_BOARDCTL=y
# CONFIG_BOARDCTL_RESET is not set
CONFIG_BOARDCTL_RESET=y
# CONFIG_BOARDCTL_UNIQUEID is not set
CONFIG_BOARDCTL_USBDEVCTRL=y
# CONFIG_BOARDCTL_TSCTEST is not set
@@ -35,6 +35,7 @@ px4_add_module(
MODULE drivers__boards__aerofc-v1
COMPILE_FLAGS
SRCS
../common/stm32/board_reset.c
aerofc_init.c
aerofc_spi.c
aerofc_usb.c
+1 -1
View File
@@ -369,6 +369,6 @@ __EXPORT int board_app_initialize(uintptr_t arg)
__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);
board_reset(0);
#endif
}