mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 06:53:33 +08:00
Add the 20602 start command for the AUAV x2.1 to the ROMFS rc.sensors file
This commit is contained in:
committed by
Lorenz Meier
parent
36e2bc8ae7
commit
e4afce8b1b
@@ -94,13 +94,13 @@ __EXPORT void stm32_spi1select(FAR struct spi_dev_s *dev, enum spi_dev_e devid,
|
||||
|
||||
switch (devid) {
|
||||
|
||||
/* intended fallthrough */
|
||||
/* intended fallthrough */
|
||||
case PX4_SPIDEV_ICM_20602:
|
||||
|
||||
/* intended fallthrough */
|
||||
case PX4_SPIDEV_ICM_20608:
|
||||
/* Making sure the other peripherals are not selected */
|
||||
px4_arch_gpiowrite(GPIO_SPI_CS_ICM_2060X, !selected);
|
||||
/* intended fallthrough */
|
||||
case PX4_SPIDEV_ICM_20608:
|
||||
/* Making sure the other peripherals are not selected */
|
||||
px4_arch_gpiowrite(GPIO_SPI_CS_ICM_2060X, !selected);
|
||||
px4_arch_gpiowrite(GPIO_SPI_CS_BARO, 1);
|
||||
px4_arch_gpiowrite(GPIO_SPI_CS_MPU, 1);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user