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
1 change: 1 addition & 0 deletions peripherals/sensors/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
40 changes: 40 additions & 0 deletions peripherals/sensors/p3t1755/Kconfig
Original file line number Diff line number Diff line change
@@ -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

28 changes: 28 additions & 0 deletions peripherals/sensors/p3t1755/package.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]",
"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"
}
]
}
Loading