Skip to content

Commit 0e46b7f

Browse files
authored
Create Kconfig
add scd4x Kconfig
1 parent 4886102 commit 0e46b7f

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

peripherals/sensors/scd4x/Kconfig

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Kconfig file for package scd4x
2+
menuconfig PKG_USING_SCD4X
3+
bool "SCD4x: Sensirion CO2, Temperature and Humidity Sensor"
4+
default n
5+
select RT_USING_I2C
6+
7+
if PKG_USING_SCD4X
8+
config PKG_SCD4X_PATH
9+
string
10+
default "/packages/peripherals/sensors/scd4x"
11+
12+
config PKG_SCD4X_I2C_BUS
13+
string "I2C bus name"
14+
default "i2c1"
15+
16+
config PKG_SCD4X_ASC_ENABLE
17+
bool "Enable Automatic Self Calibration (ASC)"
18+
default y
19+
20+
config PKG_USING_SCD4X_SAMPLE
21+
bool "Enable SCD4x sample application"
22+
default n
23+
24+
config PKG_USING_SCD4X_SHELL
25+
bool "Enable SCD4x FinSH shell commands"
26+
default y
27+
28+
choice
29+
prompt "Version"
30+
default PKG_USING_SCD4X_LATEST_VERSION
31+
config PKG_USING_SCD4X_V100
32+
bool "v1.0.0"
33+
config PKG_USING_SCD4X_LATEST_VERSION
34+
bool "latest"
35+
endchoice
36+
37+
config PKG_SCD4X_VER
38+
string
39+
default "v1.0.0" if PKG_USING_SCD4X_V100
40+
default "latest" if PKG_USING_SCD4X_LATEST_VERSION
41+
endif

0 commit comments

Comments
 (0)