forked from xuos/xiuos
parent
310282628f
commit
244fcb9e5d
|
@ -0,0 +1,18 @@
|
||||||
|
import os
|
||||||
|
Import('RTT_ROOT')
|
||||||
|
from building import *
|
||||||
|
SOURCES = []
|
||||||
|
SOURCES = ['adapter_4g.c'] + SOURCES
|
||||||
|
objs = []
|
||||||
|
cwd = GetCurrentDir()
|
||||||
|
path = [cwd]
|
||||||
|
group = DefineGroup('4g', 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')
|
|
@ -3,19 +3,13 @@ config ADAPTER_4G_EC200T
|
||||||
default "ec200t"
|
default "ec200t"
|
||||||
|
|
||||||
if ADD_XIZI_FETURES
|
if ADD_XIZI_FETURES
|
||||||
config ADAPTER_EC200T_USING_PWRKEY
|
config ADAPTER_EC200T_PWRKEY
|
||||||
bool "EC200T using PWRKEY pin number"
|
int "EC200T PWRKEY pin number"
|
||||||
default n
|
default "97"
|
||||||
|
|
||||||
if ADAPTER_EC200T_USING_PWRKEY
|
config ADAPTER_EC200T_PIN_DRIVER
|
||||||
config ADAPTER_EC200T_PWRKEY
|
string "EC200T device pin driver path"
|
||||||
int "EC200T PWRKEY pin number"
|
default "/dev/pin_dev"
|
||||||
default "97"
|
|
||||||
|
|
||||||
config ADAPTER_EC200T_PIN_DRIVER
|
|
||||||
string "EC200T device pin driver path"
|
|
||||||
default "/dev/pin_dev"
|
|
||||||
endif
|
|
||||||
|
|
||||||
config ADAPTER_EC200T_DRIVER_EXTUART
|
config ADAPTER_EC200T_DRIVER_EXTUART
|
||||||
bool "Using extra uart to support 4G"
|
bool "Using extra uart to support 4G"
|
||||||
|
@ -45,5 +39,13 @@ if ADD_NUTTX_FETURES
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if ADD_RTTHREAD_FETURES
|
if ADD_RTTHREAD_FETURES
|
||||||
|
config ADAPTER_EC200T_DRIVER
|
||||||
|
string "EC200T device uart driver path"
|
||||||
|
default "/dev/uart2"
|
||||||
|
config ADAPTER_EC200T_PIN_DRIVER
|
||||||
|
string "EC200T device pin driver path"
|
||||||
|
default "/dev/pin"
|
||||||
|
config ADAPTER_EC200T_PWRKEY
|
||||||
|
int "EC200T PWRKEY pin number"
|
||||||
|
default "97"
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
from building import *
|
||||||
|
import os
|
||||||
|
|
||||||
|
cwd = GetCurrentDir()
|
||||||
|
src = []
|
||||||
|
if GetDepend(['ADAPTER_EC200T']):
|
||||||
|
src += ['ec200t.c']
|
||||||
|
group = DefineGroup('connection 4g ec200t', src, depend = [], CPPPATH = [cwd])
|
||||||
|
|
||||||
|
Return('group')
|
Loading…
Reference in New Issue