mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-05 06:03:02 +08:00
px4fmu-v5:Removed a SPI 5 reeady signal from board_spi_reset
board_spi_reset is used to reset the internal SPI bus. therefore GPIO_SPI5_DRDY7_EXTERNAL1 should not have been minipulated, as it is on SPI5
This commit is contained in:
@@ -483,7 +483,6 @@ __EXPORT void board_spi_reset(int ms)
|
|||||||
stm32_configgpio(GPIO_DRDY_OFF_SPI1_DRDY4_ICM20602);
|
stm32_configgpio(GPIO_DRDY_OFF_SPI1_DRDY4_ICM20602);
|
||||||
stm32_configgpio(GPIO_DRDY_OFF_SPI1_DRDY5_BMI055_GYRO);
|
stm32_configgpio(GPIO_DRDY_OFF_SPI1_DRDY5_BMI055_GYRO);
|
||||||
stm32_configgpio(GPIO_DRDY_OFF_SPI1_DRDY6_BMI055_ACC);
|
stm32_configgpio(GPIO_DRDY_OFF_SPI1_DRDY6_BMI055_ACC);
|
||||||
stm32_configgpio(GPIO_DRDY_OFF_SPI5_DRDY7_EXTERNAL1);
|
|
||||||
#endif
|
#endif
|
||||||
/* set the sensor rail off */
|
/* set the sensor rail off */
|
||||||
stm32_gpiowrite(GPIO_VDD_3V3_SENSORS_EN, 0);
|
stm32_gpiowrite(GPIO_VDD_3V3_SENSORS_EN, 0);
|
||||||
@@ -518,7 +517,6 @@ __EXPORT void board_spi_reset(int ms)
|
|||||||
stm32_configgpio(GPIO_SPI1_DRDY4_ICM20602);
|
stm32_configgpio(GPIO_SPI1_DRDY4_ICM20602);
|
||||||
stm32_configgpio(GPIO_SPI1_DRDY5_BMI055_GYRO);
|
stm32_configgpio(GPIO_SPI1_DRDY5_BMI055_GYRO);
|
||||||
stm32_configgpio(GPIO_SPI1_DRDY6_BMI055_ACC);
|
stm32_configgpio(GPIO_SPI1_DRDY6_BMI055_ACC);
|
||||||
stm32_configgpio(GPIO_SPI5_DRDY7_EXTERNAL1);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user