From 4dc5dc87b5d82d2044a7ae3c36c37cff90e371a3 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 5 Nov 2016 20:43:08 +1100 Subject: [PATCH] HAL_PX4: added ICM20608 to SPI table --- libraries/AP_HAL_PX4/SPIDevice.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_HAL_PX4/SPIDevice.cpp b/libraries/AP_HAL_PX4/SPIDevice.cpp index 3bf6626ee2..86640cfc67 100644 --- a/libraries/AP_HAL_PX4/SPIDevice.cpp +++ b/libraries/AP_HAL_PX4/SPIDevice.cpp @@ -38,6 +38,9 @@ SPIDesc SPIDeviceManager::device_table[] = { #if defined(PX4_SPIDEV_EXT_BARO) SPIDesc("ms5611_ext", PX4_SPI_BUS_EXT, (spi_dev_e)PX4_SPIDEV_EXT_BARO, SPIDEV_MODE3, 20*MHZ, 20*MHZ), #endif +#if defined(PX4_SPIDEV_ICM) + SPIDesc("icm20608", PX4_SPI_BUS_SENSORS, (spi_dev_e)PX4_SPIDEV_ICM, SPIDEV_MODE3, 20*MHZ, 20*MHZ), +#endif #if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_PX4_V4 SPIDesc("ms5611_int", PX4_SPI_BUS_BARO, (spi_dev_e)PX4_SPIDEV_BARO, SPIDEV_MODE3, 20*MHZ, 20*MHZ), #endif