From 4d021fcd428ffceab442723feb7074f227a3b0a3 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Wed, 6 Nov 2019 13:13:31 -0800 Subject: [PATCH] modalai:fc-v1 BSP Updated to NuttX 8.1+ --- boards/modalai/fc-v1/nuttx-config/Kconfig | 6 ++++++ boards/modalai/fc-v1/nuttx-config/drivers/Kconfig | 0 boards/modalai/fc-v1/nuttx-config/nsh/defconfig | 4 ++++ boards/modalai/fc-v1/nuttx-config/stackcheck/defconfig | 3 +++ 4 files changed, 13 insertions(+) create mode 100644 boards/modalai/fc-v1/nuttx-config/drivers/Kconfig diff --git a/boards/modalai/fc-v1/nuttx-config/Kconfig b/boards/modalai/fc-v1/nuttx-config/Kconfig index 520c5abadb..cfb361d30a 100644 --- a/boards/modalai/fc-v1/nuttx-config/Kconfig +++ b/boards/modalai/fc-v1/nuttx-config/Kconfig @@ -15,3 +15,9 @@ config BOARD_USE_PROBES ---help--- Select to use GPIO FMU-CH1-8, CAP1 to provide timing signals from selected drivers. + +# Hack to ensure ARCH_MATH_H is kept +config BOARD_HAVE_MATH_H + bool "Provide ARCH math.h (selects ARCH_HAVE_MATH_H)" + default y + select ARCH_HAVE_MATH_H diff --git a/boards/modalai/fc-v1/nuttx-config/drivers/Kconfig b/boards/modalai/fc-v1/nuttx-config/drivers/Kconfig new file mode 100644 index 0000000000..e69de29bb2 diff --git a/boards/modalai/fc-v1/nuttx-config/nsh/defconfig b/boards/modalai/fc-v1/nuttx-config/nsh/defconfig index 4aba94910a..11bc6032cd 100644 --- a/boards/modalai/fc-v1/nuttx-config/nsh/defconfig +++ b/boards/modalai/fc-v1/nuttx-config/nsh/defconfig @@ -22,8 +22,11 @@ # CONFIG_NSH_DISABLE_SEMICOLON is not set # CONFIG_NSH_DISABLE_TIME is not set CONFIG_ARCH="arm" +CONFIG_ARCH_BOARD_CUSTOM=y CONFIG_ARCH_BOARD_CUSTOM_DIR="../nuttx-config" +CONFIG_ARCH_BOARD_CUSTOM_DIR_RELPATH=y CONFIG_ARCH_BOARD_CUSTOM_NAME="px4" +CONFIG_ARCH_CHIP="stm32f7" CONFIG_ARCH_CHIP_STM32F765II=y CONFIG_ARCH_CHIP_STM32F7=y CONFIG_ARCH_INTERRUPTSTACK=512 @@ -176,6 +179,7 @@ CONFIG_STM32F7_I2C4=y CONFIG_STM32F7_I2C_DYNTIMEO=y CONFIG_STM32F7_I2C_DYNTIMEO_STARTSTOP=10 CONFIG_STM32F7_OTGFS=y +CONFIG_STM32F7_PROGMEM=y CONFIG_STM32F7_PWR=y CONFIG_STM32F7_RTC=y CONFIG_STM32F7_RTC_HSECLOCK=y diff --git a/boards/modalai/fc-v1/nuttx-config/stackcheck/defconfig b/boards/modalai/fc-v1/nuttx-config/stackcheck/defconfig index cd828fd1d9..416eabe70a 100644 --- a/boards/modalai/fc-v1/nuttx-config/stackcheck/defconfig +++ b/boards/modalai/fc-v1/nuttx-config/stackcheck/defconfig @@ -15,7 +15,9 @@ # CONFIG_NSH_DISABLE_SEMICOLON is not set # CONFIG_NSH_DISABLE_TIME is not set CONFIG_ARCH="arm" +CONFIG_ARCH_BOARD_CUSTOM=y CONFIG_ARCH_BOARD_CUSTOM_DIR="../nuttx-config" +CONFIG_ARCH_BOARD_CUSTOM_DIR_RELPATH=y CONFIG_ARCH_BOARD_CUSTOM_NAME="px4" CONFIG_ARCH_CHIP_STM32F765II=y CONFIG_ARCH_CHIP_STM32F7=y @@ -169,6 +171,7 @@ CONFIG_STM32F7_I2C4=y CONFIG_STM32F7_I2C_DYNTIMEO=y CONFIG_STM32F7_I2C_DYNTIMEO_STARTSTOP=10 CONFIG_STM32F7_OTGFS=y +CONFIG_STM32F7_PROGMEM=y CONFIG_STM32F7_PWR=y CONFIG_STM32F7_RTC=y CONFIG_STM32F7_RTC_HSECLOCK=y