diff --git a/src/drivers/boards/px4fmu-v4/board_config.h b/src/drivers/boards/px4fmu-v4/board_config.h index 1efea92ddb..2d689f4e13 100644 --- a/src/drivers/boards/px4fmu-v4/board_config.h +++ b/src/drivers/boards/px4fmu-v4/board_config.h @@ -130,6 +130,7 @@ #define PX4_SPIDEV_LIS 7 #define PX4_SPIDEV_BMI 8 #define PX4_SPIDEV_BMA 9 +#define PX4_SPIDEV_ICM_20602 10 /* 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 diff --git a/src/drivers/boards/px4fmu-v4/px4fmu_spi.c b/src/drivers/boards/px4fmu-v4/px4fmu_spi.c index 7bf5637b65..71ec895592 100644 --- a/src/drivers/boards/px4fmu-v4/px4fmu_spi.c +++ b/src/drivers/boards/px4fmu-v4/px4fmu_spi.c @@ -95,6 +95,9 @@ __EXPORT void stm32_spi1select(FAR struct spi_dev_s *dev, enum spi_dev_e devid, switch (devid) { case PX4_SPIDEV_ICM: + + /* intended fallthrough */ + case PX4_SPIDEV_ICM_20602: /* Making sure the other peripherals are not selected */ px4_arch_gpiowrite(GPIO_SPI_CS_BMI160, 1); px4_arch_gpiowrite(GPIO_SPI_CS_MPU9250, 1);