mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 18:53:33 +08:00
aerofc-v1 use board common reset interface
This commit is contained in:
committed by
Lorenz Meier
parent
c2c8962765
commit
a89a51cb9b
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user