Skip to content

Commit 4e5c249

Browse files
committed
[imu, bmi270] Remove the bmi270 config data from wolfHAL
1 parent 58f626b commit 4e5c249

4 files changed

Lines changed: 8 additions & 613 deletions

File tree

boards/peripheral/board.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,4 @@ ifneq ($(filter bmi270,$(PERIPHERALS)),)
3939
CFLAGS += -DPERIPHERAL_BMI270
4040
BOARD_SOURCE += $(_PERIPHERAL_DIR)/sensor/imu/bmi270.c
4141
BOARD_SOURCE += $(WHAL_DIR)/src/sensor/imu/bmi270_sensor.c
42-
BOARD_SOURCE += $(WHAL_DIR)/src/sensor/imu/bmi270_config_data.c
4342
endif

boards/peripheral/sensor/imu/bmi270.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
#include "bmi270.h"
2323
#include <wolfHAL/sensor/imu/bmi270_sensor.h>
24-
#include <wolfHAL/sensor/imu/bmi270_config_data.h>
2524
#include "board.h"
2625

2726
/*
@@ -30,6 +29,14 @@
3029
* - I2C address: 0x68 (SDO low)
3130
* - Standard mode (100 kHz) or Fast mode (400 kHz)
3231
* - Requires 8192-byte config blob upload during init
32+
*
33+
* The config blob is not bundled with wolfHAL. Obtain it from the Bosch
34+
* Sensortec BMI270_SensorAPI repository and provide it from your board.h:
35+
*
36+
* extern const uint8_t whal_bmi270_config_data[];
37+
* #define WHAL_BMI270_CONFIG_DATA_SZ 8192
38+
*
39+
* with a matching definition compiled into your application.
3340
*/
3441

3542
whal_I2c_ComCfg g_bmi270ComCfg = {

0 commit comments

Comments
 (0)