From 844f753881bc387d111d38222d36e8e2442ca3b3 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Mon, 23 Jan 2017 12:29:04 -1000 Subject: [PATCH] px4fmu-v5 use board common reset interface --- nuttx-configs/px4fmu-v5/nsh/defconfig | 3 ++- src/drivers/boards/px4fmu-v5/CMakeLists.txt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/nuttx-configs/px4fmu-v5/nsh/defconfig b/nuttx-configs/px4fmu-v5/nsh/defconfig index 7244d0acf0..06c5ea6cf1 100644 --- a/nuttx-configs/px4fmu-v5/nsh/defconfig +++ b/nuttx-configs/px4fmu-v5/nsh/defconfig @@ -444,7 +444,7 @@ CONFIG_ARCH_HAVE_MPU=y # CONFIG_ARCH_NAND_HWECC is not set # CONFIG_ARCH_HAVE_EXTCLK is not set # CONFIG_ARCH_HAVE_POWEROFF is not set -# CONFIG_ARCH_HAVE_RESET is not set +CONFIG_ARCH_HAVE_RESET=y # CONFIG_ARCH_USE_MPU is not set CONFIG_ARCH_IRQPRIO=y CONFIG_ARCH_STACKDUMP=y @@ -507,6 +507,7 @@ CONFIG_BOARD_HAS_PROBES=y CONFIG_BOARD_CRASHDUMP=y CONFIG_BOARD_RESET_ON_CRASH=y CONFIG_LIB_BOARDCTL=y +CONFIG_BOARDCTL_RESET=y # CONFIG_BOARDCTL_UNIQUEID is not set CONFIG_BOARDCTL_USBDEVCTRL=y # CONFIG_BOARDCTL_TSCTEST is not set diff --git a/src/drivers/boards/px4fmu-v5/CMakeLists.txt b/src/drivers/boards/px4fmu-v5/CMakeLists.txt index 7b7de80347..187bf97d1b 100644 --- a/src/drivers/boards/px4fmu-v5/CMakeLists.txt +++ b/src/drivers/boards/px4fmu-v5/CMakeLists.txt @@ -35,6 +35,7 @@ px4_add_module( COMPILE_FLAGS -Os SRCS + ../common/stm32/board_reset.c ../common/board_crashdump.c ../common/board_dma_alloc.c # WIP px4fmu_can.c