diff --git a/peripherals/sensors/Kconfig b/peripherals/sensors/Kconfig index 26a6e59e7c..e049fd0f82 100755 --- a/peripherals/sensors/Kconfig +++ b/peripherals/sensors/Kconfig @@ -67,5 +67,6 @@ source "$PKGS_DIR/packages/peripherals/sensors/cw2015/Kconfig" source "$PKGS_DIR/packages/peripherals/sensors/icm20608/Kconfig" source "$PKGS_DIR/packages/peripherals/sensors/PAJ7620/Kconfig" source "$PKGS_DIR/packages/peripherals/sensors/sths34pf80/Kconfig" +source "$PKGS_DIR/packages/peripherals/sensors/p3t1755/Kconfig" endmenu diff --git a/peripherals/sensors/p3t1755/Kconfig b/peripherals/sensors/p3t1755/Kconfig new file mode 100644 index 0000000000..278e0d692c --- /dev/null +++ b/peripherals/sensors/p3t1755/Kconfig @@ -0,0 +1,40 @@ +# Kconfig file for package p3t1755 +menuconfig PKG_USING_P3T1755 + bool "p3t1755: a p3t1755 package for rt-thread." + default n + select RT_USING_I2C + help + A temperature detection chip from nxp, driven through the SENSOR frame. + +if PKG_USING_P3T1755 + config P3T1755_I2C_BUS_NAME + string "The name of the I2C bus used by P3T1755" + default "i2c0" + + config PKG_P3T1755_USING_SENSOR_V2 + bool "Enable sensor divce framework" + depends on RT_VER_NUM >= 0x50001 + select RT_USING_SENSOR + select RT_USING_SENSOR_V2 + default n + + config PKG_P3T1755_PATH + string + default "/packages/peripherals/sensors/p3t1755" + + choice + prompt "Version" + default PKG_USING_P3T1755_LATEST_VERSION + help + Select the package version + + config PKG_USING_P3T1755_LATEST_VERSION + bool "latest" + endchoice + + config PKG_P3T1755_VER + string + default "latest" if PKG_USING_P3T1755_LATEST_VERSION + +endif + diff --git a/peripherals/sensors/p3t1755/package.json b/peripherals/sensors/p3t1755/package.json new file mode 100644 index 0000000000..b9f8c44b74 --- /dev/null +++ b/peripherals/sensors/p3t1755/package.json @@ -0,0 +1,28 @@ +{ + "name": "p3t1755", + "description": "Temperature to digital converter p3t1755 driver library", + "description_zh": "温度到数字转换器 p3t1755 的驱动库", + "enable": "PKG_USING_P3T1755", + "keywords": [ + "p3t1755", + "sensor" + ], + "category": "peripherals/sensors", + "author": { + "name": "CYFS", + "email": "2805686936@qq.com", + "github": "https://github.com/CYFS3" + }, + "license": "Apache-2.0", + "repository": "https://github.com/CYFS3/p3t1755", + "icon": "https://www.rt-thread.org/qa/template/fxiaomi/style/image/logo.png", + "homepage": "https://github.com/CYFS3/p3t1755#readme", + "site": [ + { + "version": "latest", + "URL": "https://github.com/CYFS3/p3t1755.git", + "filename": "p3t1755.zip", + "VER_SHA": "master" + } + ] +} \ No newline at end of file