forked from xuos/xiuos
repair ch438 driver
This commit is contained in:
@@ -43,7 +43,24 @@ config SENSOR_ZG09
|
||||
endif
|
||||
|
||||
if ADD_RTTHREAD_FETURES
|
||||
config SENSOR_ZG09_DRIVER_EXTUART
|
||||
bool "Using extra uart to support zg09"
|
||||
default y
|
||||
|
||||
config SENSOR_DEVICE_ZG09_DEV
|
||||
string "zg09 device uart path"
|
||||
default "/dev/uart2_dev2"
|
||||
depends on !SENSOR_ZG09_DRIVER_EXTUART
|
||||
|
||||
if SENSOR_ZG09_DRIVER_EXTUART
|
||||
config SENSOR_DEVICE_ZG09_DEV
|
||||
string "zg09 device extra uart path"
|
||||
default "/dev/extuart_dev4"
|
||||
|
||||
config SENSOR_DEVICE_ZG09_DEV_EXT_PORT
|
||||
int "if ZG09 device using extuart, choose port"
|
||||
default "4"
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
10
APP_Framework/Framework/sensor/co2/zg09/SConscript
Normal file
10
APP_Framework/Framework/sensor/co2/zg09/SConscript
Normal file
@@ -0,0 +1,10 @@
|
||||
from building import *
|
||||
import os
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
src = []
|
||||
if GetDepend(['SENSOR_ZG09']):
|
||||
src += ['zg09.c']
|
||||
group = DefineGroup('sensor co2 zg09', src, depend = [], CPPPATH = [cwd])
|
||||
|
||||
Return('group')
|
||||
Reference in New Issue
Block a user