forked from xuos/xiuos
49 lines
2.0 KiB
Plaintext
49 lines
2.0 KiB
Plaintext
|
|
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_XIZI_FEATURES
|
|
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_FEATURES
|
|
config SENSOR_DEVICE_TB600B_TVOC10_DEV
|
|
string "tb600b tvoc10 device uart path"
|
|
default "/dev/ttyS1"
|
|
---help---
|
|
If USART1 is selected, then fill in /dev/ttyS1 here.
|
|
|
|
endif
|
|
|
|
if ADD_RTTHREAD_FEATURES
|
|
|
|
endif
|
|
endif
|