Required modifications to the BoschSensortec/BMI270-Sensor-API library

This commit is contained in:
Bruce Luckcuck 2020-03-08 18:58:16 -04:00
parent 447cbac988
commit 7f03b42ac0
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,13 @@
This library is used to support the Bosch BMI270 gyro sensor (see drivers/accgyro/accgyro_spi_bmi270.c).
Library download location:
https://github.com/BoschSensortec/BMI270-Sensor-API
The only file that is compiled as part of Betaflight is bmi270.c. This file contains the device microcode that must be uploaded during initialization.
When upgrading this library the bmi270.h header must have the following code block added:
// Betaflight modifications begin
#define BMI270_CONFIG_SIZE 8192
extern const uint8_t bmi270_config_file[BMI270_CONFIG_SIZE];
// Betaflight modifications end

View File

@ -130,3 +130,8 @@ int8_t bmi270_init(struct bmi2_dev *dev);
#endif /* End of CPP guard */
#endif /* BMI270_H_ */
// Betaflight modifications begin
#define BMI270_CONFIG_SIZE 8192
extern const uint8_t bmi270_config_file[BMI270_CONFIG_SIZE];
// Betaflight modifications end