Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion peripherals/sensors/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
49 changes: 49 additions & 0 deletions peripherals/sensors/bmi270/Kconfig
Original file line number Diff line number Diff line change
@@ -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

32 changes: 32 additions & 0 deletions peripherals/sensors/bmi270/package.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}