sensors: Move SCU-specific bmi160 sensor into spresense board

Move SCU-specific bmi160 sensor into spresense board layer.
This commit is contained in:
SPRESENSE
2023-08-25 17:06:00 +08:00
committed by Xiang Xiao
parent 795dcee521
commit ffcea1da4f
3 changed files with 80 additions and 22 deletions
+2 -22
View File
@@ -131,30 +131,10 @@ extern "C"
*
****************************************************************************/
#ifndef CONFIG_SENSORS_BMI160_SCU
# ifdef CONFIG_SENSORS_BMI160_I2C
#ifdef CONFIG_SENSORS_BMI160_I2C
int bmi160_register(FAR const char *devpath, FAR struct i2c_master_s *dev);
# else /* CONFIG_BMI160_SPI */
#else /* CONFIG_BMI160_SPI */
int bmi160_register(FAR const char *devpath, FAR struct spi_dev_s *dev);
# endif
#else /* CONFIG_SENSORS_BMI160_SCU */
# ifdef CONFIG_SENSORS_BMI160_I2C
int bmi160_init(FAR struct i2c_master_s *dev, int port);
int bmi160gyro_register(FAR const char *devpath, int minor,
FAR struct i2c_master_s *dev, int port);
int bmi160accel_register(FAR const char *devpath, int minor,
FAR struct i2c_master_s *dev, int port);
# else /* CONFIG_SENSORS_BMI160_SPI */
int bmi160_init(FAR struct spi_dev_s *dev);
int bmi160gyro_register(FAR const char *devpath, int minor,
FAR struct spi_dev_s *dev);
int bmi160accel_register(FAR const char *devpath, int minor,
FAR struct spi_dev_s *dev);
# endif
#endif
#undef EXTERN