mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
ST ISM330DLC IMU driver
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user