Skip to content

Commit 4c38be0

Browse files
CYFS3Rbb666
authored andcommitted
add nxp p3t1755
1 parent d3b2934 commit 4c38be0

File tree

3 files changed

+69
-0
lines changed

3 files changed

+69
-0
lines changed

peripherals/sensors/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,6 @@ source "$PKGS_DIR/packages/peripherals/sensors/cw2015/Kconfig"
6767
source "$PKGS_DIR/packages/peripherals/sensors/icm20608/Kconfig"
6868
source "$PKGS_DIR/packages/peripherals/sensors/PAJ7620/Kconfig"
6969
source "$PKGS_DIR/packages/peripherals/sensors/sths34pf80/Kconfig"
70+
source "$PKGS_DIR/packages/peripherals/sensors/p3t1755/Kconfig"
7071

7172
endmenu
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Kconfig file for package p3t1755
2+
menuconfig PKG_USING_P3T1755
3+
bool "p3t1755: a p3t1755 package for rt-thread."
4+
default n
5+
select RT_USING_I2C
6+
help
7+
A temperature detection chip from nxp, driven through the SENSOR frame.
8+
9+
if PKG_USING_P3T1755
10+
config P3T1755_I2C_BUS_NAME
11+
string "The name of the I2C bus used by P3T1755"
12+
default "i2c0"
13+
14+
config PKG_P3T1755_USING_SENSOR_V2
15+
bool "Enable sensor divce framework"
16+
depends on RT_VER_NUM >= 0x50001
17+
select RT_USING_SENSOR
18+
select RT_USING_SENSOR_V2
19+
default n
20+
21+
config PKG_P3T1755_PATH
22+
string
23+
default "/packages/peripherals/sensors/p3t1755"
24+
25+
choice
26+
prompt "Version"
27+
default PKG_USING_P3T1755_LATEST_VERSION
28+
help
29+
Select the package version
30+
31+
config PKG_USING_P3T1755_LATEST_VERSION
32+
bool "latest"
33+
endchoice
34+
35+
config PKG_P3T1755_VER
36+
string
37+
default "latest" if PKG_USING_P3T1755_LATEST_VERSION
38+
39+
endif
40+
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "p3t1755",
3+
"description": "Temperature to digital converter p3t1755 driver library",
4+
"description_zh": "温度到数字转换器 p3t1755 的驱动库",
5+
"enable": "PKG_USING_P3T1755",
6+
"keywords": [
7+
"p3t1755",
8+
"sensor"
9+
],
10+
"category": "peripherals/sensors",
11+
"author": {
12+
"name": "CYFS",
13+
"email": "[email protected]",
14+
"github": "https://github.com/CYFS3"
15+
},
16+
"license": "Apache-2.0",
17+
"repository": "https://github.com/CYFS3/p3t1755",
18+
"icon": "https://www.rt-thread.org/qa/template/fxiaomi/style/image/logo.png",
19+
"homepage": "https://github.com/CYFS3/p3t1755#readme",
20+
"site": [
21+
{
22+
"version": "latest",
23+
"URL": "https://github.com/CYFS3/p3t1755.git",
24+
"filename": "p3t1755.zip",
25+
"VER_SHA": "master"
26+
}
27+
]
28+
}

0 commit comments

Comments
 (0)