From 25a6a4564023a34e57d4d57101606e538f46d303 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Wed, 6 Nov 2019 13:13:35 -0800 Subject: [PATCH] px4:cannode-v1 BSP Updated to NuttX 8.1+ --- boards/px4/cannode-v1/nuttx-config/Kconfig | 6 ++++++ boards/px4/cannode-v1/nuttx-config/drivers/Kconfig | 0 boards/px4/cannode-v1/nuttx-config/nsh/defconfig | 11 ++++++++++- 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 boards/px4/cannode-v1/nuttx-config/drivers/Kconfig diff --git a/boards/px4/cannode-v1/nuttx-config/Kconfig b/boards/px4/cannode-v1/nuttx-config/Kconfig index 10ff1f1640..15d72135b3 100644 --- a/boards/px4/cannode-v1/nuttx-config/Kconfig +++ b/boards/px4/cannode-v1/nuttx-config/Kconfig @@ -20,3 +20,9 @@ config BOARD_USE_PROBES Select to use GPIO provides GPIO D0-D2,A0-A3 to provide timing signals from selected drivers. endif + +# 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/px4/cannode-v1/nuttx-config/drivers/Kconfig b/boards/px4/cannode-v1/nuttx-config/drivers/Kconfig new file mode 100644 index 0000000000..e69de29bb2 diff --git a/boards/px4/cannode-v1/nuttx-config/nsh/defconfig b/boards/px4/cannode-v1/nuttx-config/nsh/defconfig index 0ecec24940..bef61e3469 100644 --- a/boards/px4/cannode-v1/nuttx-config/nsh/defconfig +++ b/boards/px4/cannode-v1/nuttx-config/nsh/defconfig @@ -1,9 +1,19 @@ +# +# This file is autogenerated: PLEASE DO NOT EDIT IT. +# +# You can use "make menuconfig" to make any modifications to the installed .config file. +# You can then do "make savedefconfig" to generate a new defconfig file that includes your +# modifications. +# # CONFIG_DEV_NULL is not set # CONFIG_DISABLE_OS_API is not set # CONFIG_DISABLE_PSEUDOFS_OPERATIONS 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="stm32" CONFIG_ARCH_CHIP_STM32=y CONFIG_ARCH_CHIP_STM32F103RB=y CONFIG_ARCH_INTERRUPTSTACK=360 @@ -14,7 +24,6 @@ CONFIG_BOARDCTL_RESET=y CONFIG_BOARD_CUSTOM_BUTTONS=y CONFIG_BOARD_CUSTOM_IRQBUTTONS=y CONFIG_BOARD_CUSTOM_LEDS=y -CONFIG_BOARD_INITIALIZE=y CONFIG_BOARD_LOOPSPERMSEC=5483 CONFIG_BUILTIN=y CONFIG_BUILTIN_PROXY_STACKSIZE=392