ST ISM330DLC IMU driver

This commit is contained in:
Daniel Agar
2019-10-14 20:09:39 -04:00
parent eb560e8a0f
commit 1a395fb6d9
24 changed files with 1675 additions and 91 deletions

View File

@@ -32,8 +32,8 @@ px4_add_board(
imu/adis16477
imu/adis16497
imu/bmi088
# TBD imu/ism330dlc - needs bus selection
imu/mpu6000
imu/st/ism330dlc
irlock
lights/blinkm
lights/rgbled

View File

@@ -335,9 +335,7 @@ __EXPORT void board_spi_reset(int mask_ms)
stm32_configgpio(GPIO_SPI2_SCK_OFF);
stm32_configgpio(GPIO_SPI2_MISO_OFF);
stm32_configgpio(GPIO_SPI2_MOSI_OFF);
#if BOARD_USE_DRDY
stm32_configgpio(GPIO_DRDY_OFF_SPI2_DRDY1_ISM330);
#endif
/* set the sensor rail off */
stm32_gpiowrite(GPIO_VDD_3V3_SENSORS2_EN, 0);
}
@@ -412,9 +410,7 @@ __EXPORT void board_spi_reset(int mask_ms)
stm32_configgpio(GPIO_SPI2_SCK);
stm32_configgpio(GPIO_SPI2_MISO);
stm32_configgpio(GPIO_SPI2_MOSI);
#if BOARD_USE_DRDY
stm32_configgpio(GPIO_SPI2_DRDY1_ISM330);
#endif
}
if (mask & 4) {