connection/lora/sx1278

1.Kconfig is ok.
2.gcc is ok.
This commit is contained in:
yl1185 2022-06-23 15:03:04 +08:00
parent 244fcb9e5d
commit 3bcbcd6499
3 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,19 @@
import os
Import('RTT_ROOT')
from building import *
SOURCES = []
if GetDepend(['CONNECTION_ADAPTER_LORA']):
SOURCES = ['adapter_lora.c'] + SOURCES
objs = []
cwd = GetCurrentDir()
path = [cwd]
group = DefineGroup('lora', 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')

View File

@ -16,5 +16,8 @@ if ADD_NUTTX_FETURES
endif
if ADD_RTTHREAD_FETURES
config ADAPTER_SX1278_DRIVER
string "SX1278 device spi driver path"
default "/dev/sx1278"
endif

View File

@ -0,0 +1,10 @@
from building import *
import os
cwd = GetCurrentDir()
src = []
if GetDepend(['ADAPTER_SX1278']):
src += ['sx1278.c']
group = DefineGroup('connection lora sx1278', src, depend = [], CPPPATH = [cwd])
Return('group')