diff --git a/peripherals/sensors/Kconfig b/peripherals/sensors/Kconfig index a5d45330c4..025ec6bdb7 100755 --- a/peripherals/sensors/Kconfig +++ b/peripherals/sensors/Kconfig @@ -74,5 +74,5 @@ source "$PKGS_DIR/packages/peripherals/sensors/p3t1755/Kconfig" source "$PKGS_DIR/packages/peripherals/sensors/qmi8658/Kconfig" source "$PKGS_DIR/packages/peripherals/sensors/icm20948/Kconfig" source "$PKGS_DIR/packages/peripherals/sensors/scd4x/Kconfig" - +source "$PKGS_DIR/packages/peripherals/sensors/bmi270/Kconfig" endmenu diff --git a/peripherals/sensors/bmi270/Kconfig b/peripherals/sensors/bmi270/Kconfig new file mode 100644 index 0000000000..fcb74e26f7 --- /dev/null +++ b/peripherals/sensors/bmi270/Kconfig @@ -0,0 +1,49 @@ +# Kconfig file for package bmi270 +menuconfig PKG_USING_BMI270 + bool "BMI270: 6-axis IMU driver with Mahony AHRS fusion" + select RT_USING_I2C + default n + +if PKG_USING_BMI270 + + config PKG_BMI270_PATH + string + default "/packages/peripherals/sensors/bmi270" + + config PKG_BMI270_USING_SENSOR_FRAMEWORK + bool "Register as RT-Thread sensor device (/dev/acce_bmi)" + select RT_USING_SENSOR + default n + + config PKG_BMI270_I2C_BUS_NAME + string "I2C bus name" + default "i2c2" + + config PKG_BMI270_DEVICE_ADDR + hex "I2C device address (SDO=GND: 0x68, SDO=VDDIO: 0x69)" + default 0x69 + + config PKG_USING_BMI270_SAMPLE + bool "Enable sample application (MSH command: bmi270_sample)" + select RT_USING_FINSH + default n + + choice + prompt "Version" + help + Select the package version + + config PKG_USING_BMI270_LATEST_VERSION + bool "latest" + + config PKG_USING_BMI270_V100 + bool "v1.0.0" + endchoice + + config PKG_BMI270_VER + string + default "latest" if PKG_USING_BMI270_LATEST_VERSION + default "v1.0.0" if PKG_USING_BMI270_V100 + +endif + diff --git a/peripherals/sensors/bmi270/package.json b/peripherals/sensors/bmi270/package.json new file mode 100644 index 0000000000..8a9bc7585e --- /dev/null +++ b/peripherals/sensors/bmi270/package.json @@ -0,0 +1,32 @@ +{ + "name": "bmi270", + "description": "BMI270 6-axis IMU driver with Mahony AHRS fusion for RT-Thread", + "description_zh": "BMI270 六轴 IMU 驱动,内置 Mahony 互补滤波姿态解算,实测记录全部初始化陷阱", + "enable": "PKG_USING_BMI270", + "keywords": [ + "bmi270", "imu", "ahrs", "mahony", "sensor" + ], + "category": "peripherals/sensors", + "author": { + "name": "su-jinx", + "email": "mr_sj@qq.com" + }, + "license": "Apache-2.0", + "repository": "https://gitee.com/su-jinx/rt-bmi270", + "icon": "", + "homepage": "https://gitee.com/su-jinx/rt-bmi270#readme", + "site": [ + { + "version": "v1.0.0", + "URL": "https://gitee.com/su-jinx/rt-bmi270.git", + "filename": "rt-bmi270-1.0.0.zip", + "VER_SHA": "9a57f31032ad0755d99c6cbf77ff407fae539f2b" + }, + { + "version": "latest", + "URL": "https://gitee.com/su-jinx/rt-bmi270.git", + "filename": "rt-bmi270.zip", + "VER_SHA": "main" + } + ] +}