mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 11:53:35 +08:00
mRo Control Zero F7 initial board support
This commit is contained in:
@@ -59,7 +59,7 @@ enum ICM20948_BUS {
|
||||
ICM20948_BUS_ALL = 0,
|
||||
ICM20948_BUS_I2C_INTERNAL,
|
||||
ICM20948_BUS_I2C_EXTERNAL,
|
||||
// ICM20948_BUS_SPI_INTERNAL,
|
||||
ICM20948_BUS_SPI_INTERNAL,
|
||||
// ICM20948_BUS_SPI_INTERNAL2,
|
||||
ICM20948_BUS_SPI_EXTERNAL
|
||||
};
|
||||
@@ -83,11 +83,16 @@ struct icm20948_bus_option {
|
||||
uint32_t address;
|
||||
ICM20948 *dev;
|
||||
} bus_options[] = {
|
||||
|
||||
#if defined(PX4_SPIDEV_ICM_20948) && defined(PX4_SPI_BUS_1)
|
||||
{ ICM20948_BUS_SPI_INTERNAL, ICM_DEVICE_PATH_EXT, &ICM20948_SPI_interface, true, PX4_SPI_BUS_1, PX4_SPIDEV_ICM_20948, nullptr },
|
||||
#endif
|
||||
|
||||
#if defined (USE_I2C)
|
||||
|
||||
# if defined(PX4_I2C_BUS_EXPANSION)
|
||||
{ ICM20948_BUS_I2C_EXTERNAL, ICM_DEVICE_PATH_EXT, &ICM20948_I2C_interface, false, PX4_I2C_BUS_EXPANSION, PX4_I2C_EXT_ICM20948_1, nullptr },
|
||||
#endif
|
||||
# endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -78,6 +78,9 @@ struct mpu6000_bus_option {
|
||||
#if defined(PX4_SPIDEV_ICM_20602) && defined(PX4_SPI_BUS_SENSORS1)
|
||||
{ MPU6000_BUS_SPI_INTERNAL1, MPU_DEVICE_TYPE_ICM20602, ICM20602_DEVICE_PATH, &MPU6000_SPI_interface, PX4_SPI_BUS_SENSORS1, false, NULL },
|
||||
#endif
|
||||
#if defined(PX4_SPIDEV_ICM_20602) && defined(PX4_SPI_BUS_1)
|
||||
{ MPU6000_BUS_SPI_INTERNAL1, MPU_DEVICE_TYPE_ICM20602, ICM20602_DEVICE_PATH, &MPU6000_SPI_interface, PX4_SPI_BUS_1, false, NULL },
|
||||
#endif
|
||||
#ifdef PX4_SPIDEV_ICM_20608
|
||||
{ MPU6000_BUS_SPI_INTERNAL1, MPU_DEVICE_TYPE_ICM20608, ICM20608_DEVICE_PATH, &MPU6000_SPI_interface, PX4_SPI_BUS_SENSORS, false, NULL },
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user