From 29d6c95ec48235f2373fb6d2eb0429aa2e647074 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Fri, 13 May 2016 13:41:36 +0200 Subject: [PATCH] FMUv4: Build all Bosch drivers so they get built at least for one target --- cmake/configs/nuttx_px4fmu-v4_default.cmake | 3 +++ src/drivers/boards/px4fmu-v4/board_config.h | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cmake/configs/nuttx_px4fmu-v4_default.cmake b/cmake/configs/nuttx_px4fmu-v4_default.cmake index 7c54edf15c..eb4713eb50 100644 --- a/cmake/configs/nuttx_px4fmu-v4_default.cmake +++ b/cmake/configs/nuttx_px4fmu-v4_default.cmake @@ -45,6 +45,9 @@ set(config_module_list drivers/bst drivers/snapdragon_rc_pwm drivers/lis3mdl + drivers/bmp280 + drivers/bma180 + drivers/bmi160 # # System commands diff --git a/src/drivers/boards/px4fmu-v4/board_config.h b/src/drivers/boards/px4fmu-v4/board_config.h index c1e214f7d3..a375609318 100644 --- a/src/drivers/boards/px4fmu-v4/board_config.h +++ b/src/drivers/boards/px4fmu-v4/board_config.h @@ -126,11 +126,13 @@ __BEGIN_DECLS /* Use these in place of the spi_dev_e enumeration to select a specific SPI device on SPI1 */ #define PX4_SPIDEV_GYRO 1 -#define PX4_SPIDEV_ACCEL_MAG 2 +#define PX4_SPIDEV_ACCEL_MAG 2 #define PX4_SPIDEV_MPU 4 #define PX4_SPIDEV_HMC 5 #define PX4_SPIDEV_ICM 6 #define PX4_SPIDEV_LIS 7 +#define PX4_SPIDEV_BMI 8 +#define PX4_SPIDEV_BMA 9 /* onboard MS5611 and FRAM are both on bus SPI2 * spi_dev_e:SPIDEV_FLASH has the value 2 and is used in the NuttX ramtron driver