repair ch438 driver
This commit is contained in:
@@ -43,6 +43,23 @@ config SENSOR_AS830
|
||||
endif
|
||||
|
||||
if ADD_RTTHREAD_FETURES
|
||||
config SENSOR_AS830_DRIVER_EXTUART
|
||||
bool "Using extra uart to support as830"
|
||||
default y
|
||||
|
||||
config SENSOR_DEVICE_AS830_DEV
|
||||
string "as830 device uart path"
|
||||
default "/dev/uart2"
|
||||
depends on !SENSOR_AS830_DRIVER_EXTUART
|
||||
|
||||
if SENSOR_AS830_DRIVER_EXTUART
|
||||
config SENSOR_DEVICE_AS830_DEV
|
||||
string "as830 device extra uart path"
|
||||
default "/dev/extuart_dev1"
|
||||
|
||||
config SENSOR_DEVICE_AS830_DEV_EXT_PORT
|
||||
int "if AS830 device using extuart, choose port"
|
||||
default "1"
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
14
APP_Framework/Framework/sensor/ch4/SConscript
Normal file
14
APP_Framework/Framework/sensor/ch4/SConscript
Normal file
@@ -0,0 +1,14 @@
|
||||
import os
|
||||
Import('RTT_ROOT')
|
||||
from building import *
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
objs = []
|
||||
list = os.listdir(cwd)
|
||||
|
||||
for d in list:
|
||||
path = os.path.join(cwd, d)
|
||||
if os.path.isfile(os.path.join(path, 'SConscript')):
|
||||
objs = objs + SConscript(os.path.join(path, 'SConscript'))
|
||||
|
||||
Return('objs')
|
||||
10
APP_Framework/Framework/sensor/ch4/as830/SConscript
Normal file
10
APP_Framework/Framework/sensor/ch4/as830/SConscript
Normal file
@@ -0,0 +1,10 @@
|
||||
from building import *
|
||||
import os
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
src = []
|
||||
if GetDepend(['SENSOR_AS830']):
|
||||
src += ['as830.c']
|
||||
group = DefineGroup('sensor ch4 as830', src, depend = [], CPPPATH = [cwd])
|
||||
|
||||
Return('group')
|
||||
Reference in New Issue
Block a user