mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
AP_HAL_Linux: inline I2C bus options for minlure
We don't need all the comments in the array declaration and we can inline its declaration in the function call. This makes it easier to copy it to other places.
This commit is contained in:
parent
91246ad8af
commit
3315f46800
@ -54,13 +54,11 @@ static I2CDriver i2cDriver2(2);
|
||||
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BBBMINI
|
||||
static I2CDriver i2cDriver0(2);
|
||||
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_MINLURE
|
||||
static const std::vector<const char *> i2c_devpaths({
|
||||
static I2CDriver i2cDriver0({
|
||||
/* UEFI with lpss set to ACPI */
|
||||
"platform/80860F41:05",
|
||||
/* UEFI with lpss set to PCI */
|
||||
"pci0000:00/0000:00:18.6",
|
||||
});
|
||||
static I2CDriver i2cDriver0(i2c_devpaths);
|
||||
"pci0000:00/0000:00:18.6" });
|
||||
/* One additional emulated bus */
|
||||
static I2CDriver i2cDriver1(10);
|
||||
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_QFLIGHT
|
||||
|
Loading…
Reference in New Issue
Block a user