forked from xuos/xiuos
connection/nbiot/ nb verify
1.SConscript is ok 2.modify Kconfig
This commit is contained in:
@@ -0,0 +1,18 @@
|
|||||||
|
import os
|
||||||
|
Import('RTT_ROOT')
|
||||||
|
from building import *
|
||||||
|
SOURCES = []
|
||||||
|
SOURCES = ['adapter_nbiot.c'] + SOURCES
|
||||||
|
objs = []
|
||||||
|
cwd = GetCurrentDir()
|
||||||
|
path = [cwd]
|
||||||
|
group = DefineGroup('nb', SOURCES, depend = [], CPPPATH = [cwd])
|
||||||
|
objs = objs + group
|
||||||
|
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')
|
||||||
@@ -36,5 +36,13 @@ if ADD_NUTTX_FETURES
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
if ADD_RTTHREAD_FETURES
|
if ADD_RTTHREAD_FETURES
|
||||||
|
config ADAPTER_BC28_DRIVER
|
||||||
|
string "BC28 device uart driver path"
|
||||||
|
default "/dev/uart2"
|
||||||
|
config ADAPTER_BC28_PIN_DRIVER
|
||||||
|
string "BC28 device pin driver path"
|
||||||
|
default "/dev/pin"
|
||||||
|
config ADAPTER_BC28_RESETPIN
|
||||||
|
string "BC28 RESET pin number"
|
||||||
|
default "100"
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
from building import *
|
||||||
|
import os
|
||||||
|
|
||||||
|
cwd = GetCurrentDir()
|
||||||
|
src = []
|
||||||
|
if GetDepend(['ADAPTER_BC28']):
|
||||||
|
src += ['bc28.c']
|
||||||
|
group = DefineGroup('connection nb bc28', src, depend = [], CPPPATH = [cwd])
|
||||||
|
|
||||||
|
Return('group')
|
||||||
Reference in New Issue
Block a user