forked from xuos/xiuos
add 'TB600B_TVOC10' sensor of tvoc to sensor framework
This commit is contained in:
43
APP_Framework/Framework/sensor/tvoc/Kconfig
Normal file
43
APP_Framework/Framework/sensor/tvoc/Kconfig
Normal file
@@ -0,0 +1,43 @@
|
||||
|
||||
config SENSOR_TB600B_TVOC10
|
||||
bool "Using TB600B TVOC10"
|
||||
default n
|
||||
|
||||
if SENSOR_TB600B_TVOC10
|
||||
config SENSOR_DEVICE_TB600B_TVOC10
|
||||
string "tb600b tvoc10 sensor name"
|
||||
default "tb600b_tvoc10_1"
|
||||
|
||||
config SENSOR_QUANTITY_TB600B_TVOC
|
||||
string "tb600b tvoc10 quantity name"
|
||||
default "tvoc_1"
|
||||
|
||||
if ADD_XIUOS_FETURES
|
||||
config SENSOR_TB600B_TVOC10_DRIVER_EXTUART
|
||||
bool "Using extra uart to support tb600b tvoc10"
|
||||
default y
|
||||
|
||||
config SENSOR_DEVICE_TB600B_TVOC10_DEV
|
||||
string "tb600b tvoc10 device uart path"
|
||||
default "/dev/uart2_dev2"
|
||||
depends on !SENSOR_TB600B_TVOC10_DRIVER_EXTUART
|
||||
|
||||
if SENSOR_TB600B_TVOC10_DRIVER_EXTUART
|
||||
config SENSOR_DEVICE_TB600B_TVOC10_DEV
|
||||
string "tb600b tvoc10 device extra uart path"
|
||||
default "/dev/extuart_dev6"
|
||||
|
||||
config SENSOR_DEVICE_TB600B_TVOC10_DEV_EXT_PORT
|
||||
int "if TB600B_TVOC10 device using extuart, choose port"
|
||||
default "6"
|
||||
endif
|
||||
endif
|
||||
|
||||
if ADD_NUTTX_FETURES
|
||||
|
||||
endif
|
||||
|
||||
if ADD_RTTHREAD_FETURES
|
||||
|
||||
endif
|
||||
endif
|
||||
Reference in New Issue
Block a user