diff --git a/lib/main/BoschSensortec/BMI270-Sensor-API/betaflight_info.txt b/lib/main/BoschSensortec/BMI270-Sensor-API/betaflight_info.txt new file mode 100644 index 000000000..b2cf88929 --- /dev/null +++ b/lib/main/BoschSensortec/BMI270-Sensor-API/betaflight_info.txt @@ -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 diff --git a/lib/main/BoschSensortec/BMI270-Sensor-API/bmi270.h b/lib/main/BoschSensortec/BMI270-Sensor-API/bmi270.h index 7179ac8ed..e8b87ed0a 100644 --- a/lib/main/BoschSensortec/BMI270-Sensor-API/bmi270.h +++ b/lib/main/BoschSensortec/BMI270-Sensor-API/bmi270.h @@ -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