px4fmu-v4 uses MPU6000 driver for ICM-20609-G

This commit is contained in:
David Sidrane
2015-11-28 09:13:15 +01:00
committed by Lorenz Meier
parent 46c63da8be
commit 6df5aab064
4 changed files with 5 additions and 3 deletions
@@ -127,6 +127,7 @@ __BEGIN_DECLS
#define PX4_SPIDEV_BARO 3
#define PX4_SPIDEV_MPU 4
#define PX4_SPIDEV_HMC 5
#define PX4_SPIDEV_ICM 6
/* I2C busses */
#define PX4_I2C_BUS_EXPANSION 1
+1 -1
View File
@@ -101,7 +101,7 @@ __EXPORT void stm32_spi1select(FAR struct spi_dev_s *dev, enum spi_dev_e devid,
/* SPI select is active low, so write !selected to select the device */
switch (devid) {
case PX4_SPIDEV_GYRO:
case PX4_SPIDEV_ICM:
/* Making sure the other peripherals are not selected */
stm32_gpiowrite(GPIO_SPI_CS_MPU9250, 1);
stm32_gpiowrite(GPIO_SPI_CS_HMC5983, 1);