mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 13:13:34 +08:00
fmu-v5: add PX4_I2C_BUS_EXPANSION1 and 2 to all drivers that check all the busses
This commit is contained in:
committed by
Lorenz Meier
parent
01afeed967
commit
7a760ee501
@@ -1275,13 +1275,10 @@ struct ist8310_bus_option {
|
||||
} bus_options[] = {
|
||||
{ IST8310_BUS_I2C_EXTERNAL, "/dev/ist8310_ext", PX4_I2C_BUS_EXPANSION, NULL },
|
||||
#ifdef PX4_I2C_BUS_EXPANSION1
|
||||
{ IST8310_BUS_I2C_EXTERNAL1, "/dev/ist8311_int", PX4_I2C_BUS_EXPANSION1, NULL },
|
||||
{ IST8310_BUS_I2C_EXTERNAL1, "/dev/ist8311_ext1", PX4_I2C_BUS_EXPANSION1, NULL },
|
||||
#endif
|
||||
#ifdef PX4_I2C_BUS_EXPANSION2
|
||||
{ IST8310_BUS_I2C_EXTERNAL2, "/dev/ist8312_int", PX4_I2C_BUS_EXPANSION2, NULL },
|
||||
#endif
|
||||
#ifdef PX4_I2C_BUS_EXPANSION3
|
||||
{ IST8310_BUS_I2C_EXTERNAL3, "/dev/ist8313_int", PX4_I2C_BUS_EXPANSION3, NULL },
|
||||
{ IST8310_BUS_I2C_EXTERNAL2, "/dev/ist8312_ext2", PX4_I2C_BUS_EXPANSION2, NULL },
|
||||
#endif
|
||||
#ifdef PX4_I2C_BUS_ONBOARD
|
||||
{ IST8310_BUS_I2C_INTERNAL, "/dev/ist8310_int", PX4_I2C_BUS_ONBOARD, NULL },
|
||||
|
||||
@@ -54,6 +54,12 @@ struct lis3mdl_bus_option {
|
||||
#ifdef PX4_I2C_BUS_EXPANSION
|
||||
{ LIS3MDL_BUS_I2C_EXTERNAL, "/dev/lis3mdl_ext", &LIS3MDL_I2C_interface, PX4_I2C_BUS_EXPANSION, NULL },
|
||||
#endif /* PX4_I2C_BUS_EXPANSION */
|
||||
#ifdef PX4_I2C_BUS_EXPANSION1
|
||||
{ LIS3MDL_BUS_I2C_EXTERNAL, "/dev/lis3mdl_ext1", &LIS3MDL_I2C_interface, PX4_I2C_BUS_EXPANSION1, NULL },
|
||||
#endif /* PX4_I2C_BUS_EXPANSION1 */
|
||||
#ifdef PX4_I2C_BUS_EXPANSION2
|
||||
{ LIS3MDL_BUS_I2C_EXTERNAL, "/dev/lis3mdl_ext2", &LIS3MDL_I2C_interface, PX4_I2C_BUS_EXPANSION2, NULL },
|
||||
#endif /* PX4_I2C_BUS_EXPANSION2 */
|
||||
#ifdef PX4_I2C_BUS_ONBOARD
|
||||
{ LIS3MDL_BUS_I2C_INTERNAL, "/dev/lis3mdl_int", &LIS3MDL_I2C_interface, PX4_I2C_BUS_ONBOARD, NULL },
|
||||
#endif /* PX4_I2C_BUS_ONBOARD */
|
||||
|
||||
Reference in New Issue
Block a user