bmi055 added to start-up script

This commit is contained in:
Sergej Scheiermann 2017-02-17 15:54:14 +01:00 committed by Lorenz Meier
parent 7dcdc57412
commit dad5224206
2 changed files with 16 additions and 2 deletions

View File

@ -216,6 +216,21 @@ then
if bmi160 start
then
fi
# Start either ICM2060X or BMI055. They are both connected to the same SPI bus and use the same
# chip select pin. There are different boards with either one of them and the WHO_AM_I register
# will prevent the incorrect driver from a successful initialization.
# Internal SPI bus BMI055_ACC
if bmi055 -A start
then
fi
# Internal SPI bus BMI055_GYR
if bmi055 -G start
then
fi
fi
if ver hwcmp PX4FMU_V1

View File

@ -15,8 +15,7 @@ enum spi_dev_e {
SPIDEV_EXPANDER, /* Select SPI I/O expander device */
SPIDEV_MUX, /* Select SPI multiplexer device */
SPIDEV_AUDIO_DATA, /* Select SPI audio codec device data port */
SPIDEV_AUDIO_CTRL, /* Select SPI audio codec device control port */
SPIDEV_BMI055_GYR /* Select SPI BMI055 Gyroscope */
SPIDEV_AUDIO_CTRL /* Select SPI audio codec device control port */
};
/* Certain SPI devices may required different clocking modes */