mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-21 21:55:34 +08:00
boards: CUAV Nora/X7Pro ICM20649 on SPI6 bus will be replaced by ICM20689
This commit is contained in:
@@ -16,7 +16,10 @@ bmi088 -s -b 4 -G -R 2 start
|
||||
ms5611 -s -b 4 start
|
||||
|
||||
# SPI6
|
||||
icm20649 -s -b 6 -R 2 start
|
||||
if ! icm20649 -s -b 6 -R 2 start
|
||||
then
|
||||
icm20689 -s -b 6 -R 2 start
|
||||
fi
|
||||
ms5611 -s -b 6 start
|
||||
|
||||
# External compass on GPS1/I2C1: standard CUAV GPS/compass puck (with lights, safety button, and buzzer)
|
||||
|
||||
@@ -55,6 +55,7 @@ constexpr px4_spi_bus_t px4_spi_buses[SPI_BUS_MAX_BUS_ITEMS] = {
|
||||
}),
|
||||
initSPIBus(SPI::Bus::SPI6, {
|
||||
initSPIDevice(DRV_IMU_DEVTYPE_ICM20649, SPI::CS{GPIO::PortI, GPIO::Pin12}, SPI::DRDY{GPIO::PortH, GPIO::Pin5}),
|
||||
initSPIDevice(DRV_IMU_DEVTYPE_ICM20689, SPI::CS{GPIO::PortE, GPIO::Pin15}, SPI::DRDY{GPIO::PortH, GPIO::Pin5}),
|
||||
initSPIDevice(DRV_BARO_DEVTYPE_MS5611, SPI::CS{GPIO::PortI, GPIO::Pin8}),
|
||||
}),
|
||||
};
|
||||
|
||||
@@ -19,7 +19,10 @@ bmi088 -s -b 4 -G -R 2 start
|
||||
ms5611 -s -b 4 start
|
||||
|
||||
# SPI6
|
||||
icm20649 -s -b 6 -R 2 start
|
||||
if ! icm20649 -s -b 6 -R 2 start
|
||||
then
|
||||
icm20689 -s -b 6 -R 2 start
|
||||
fi
|
||||
ms5611 -s -b 6 start
|
||||
|
||||
# External compass on GPS1/I2C1: standard CUAV GPS/compass puck (with lights, safety button, and buzzer)
|
||||
|
||||
@@ -56,6 +56,7 @@ constexpr px4_spi_bus_t px4_spi_buses[SPI_BUS_MAX_BUS_ITEMS] = {
|
||||
}),
|
||||
initSPIBus(SPI::Bus::SPI6, {
|
||||
initSPIDevice(DRV_IMU_DEVTYPE_ICM20649, SPI::CS{GPIO::PortI, GPIO::Pin12}, SPI::DRDY{GPIO::PortH, GPIO::Pin5}),
|
||||
initSPIDevice(DRV_IMU_DEVTYPE_ICM20689, SPI::CS{GPIO::PortE, GPIO::Pin15}, SPI::DRDY{GPIO::PortH, GPIO::Pin5}),
|
||||
initSPIDevice(DRV_BARO_DEVTYPE_MS5611, SPI::CS{GPIO::PortI, GPIO::Pin8}),
|
||||
}),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user