mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 06:23:34 +08:00
i2c spi buses: enforce drivers to set default SPI/I2C bus frequency
Not a lot of drivers use the global default, which is somewhat arbitrary.
This commit is contained in:
@@ -128,6 +128,7 @@ mpu6000_main(int argc, char *argv[])
|
||||
using ThisDriver = MPU6000;
|
||||
BusCLIArguments cli{true, true};
|
||||
cli.type = MPU_DEVICE_TYPE_MPU6000;
|
||||
cli.default_i2c_frequency = 400000;
|
||||
cli.default_spi_frequency = 1000 * 1000; // low speed bus frequency
|
||||
|
||||
while ((ch = cli.getopt(argc, argv, "T:R:")) != EOF) {
|
||||
|
||||
Reference in New Issue
Block a user