forked from xuos/xiuos
app_match_rt-thread/sx1278/ sx1278
1.Kconfig is ok. 2.gcc is ok.
This commit is contained in:
parent
c6e7a6d446
commit
b605bb5bc1
|
@ -0,0 +1,38 @@
|
||||||
|
|
||||||
|
menuconfig DRV_USING_SX1278
|
||||||
|
bool "sx1278 driver"
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
note:
|
||||||
|
lora connection
|
||||||
|
|
||||||
|
if DRV_USING_SX1278
|
||||||
|
config SX1278_SPI_DEVICE_NAME
|
||||||
|
string "SX1278 Lora Device Spi Name"
|
||||||
|
default "spi20"
|
||||||
|
config SX1278_DEVICE_NAME
|
||||||
|
string "SX1278 Lora Device Name"
|
||||||
|
default "spi2_lora"
|
||||||
|
config SX1278_DEVICE_RST_PIN
|
||||||
|
int
|
||||||
|
default 1
|
||||||
|
config SX1278_DEVICE_DIO0_PIN
|
||||||
|
int
|
||||||
|
default 1
|
||||||
|
config SX1278_DEVICE_DIO1_PIN
|
||||||
|
int
|
||||||
|
default 1
|
||||||
|
config SX1278_DEVICE_DIO2_PIN
|
||||||
|
int
|
||||||
|
default 1
|
||||||
|
config SX1278_DEVICE_DIO3_PIN
|
||||||
|
int
|
||||||
|
default 1
|
||||||
|
config SX1278_DEVICE_DIO4_PIN
|
||||||
|
int
|
||||||
|
default 1
|
||||||
|
config SX1278_DEVICE_DIO5_PIN
|
||||||
|
int
|
||||||
|
default 1
|
||||||
|
endif
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
Import('RTT_ROOT')
|
||||||
|
from building import *
|
||||||
|
|
||||||
|
cwd = GetCurrentDir()
|
||||||
|
objs = SConscript(os.path.join(cwd, 'sx1278_source', 'SConscript'))
|
||||||
|
|
||||||
|
Return('objs')
|
|
@ -0,0 +1,19 @@
|
||||||
|
import os
|
||||||
|
from building import *
|
||||||
|
Import('RTT_ROOT')
|
||||||
|
Import('rtconfig')
|
||||||
|
cwd = GetCurrentDir()
|
||||||
|
DEPENDS = ["DRV_USING_SX1278"]
|
||||||
|
|
||||||
|
SOURCES = []
|
||||||
|
if GetDepend(['DRV_USING_SX1278']):
|
||||||
|
SOURCES += ['drv_sx1278.c']
|
||||||
|
SOURCES += Glob('src/radio/sx1276*.c')
|
||||||
|
SOURCES += Glob('src/radio/radio.c')
|
||||||
|
SOURCES += Glob('port/*.c')
|
||||||
|
|
||||||
|
path = [cwd + '/inc']
|
||||||
|
path += ['src/radio']
|
||||||
|
objs = DefineGroup('sx1278', src = SOURCES, depend = DEPENDS,CPPPATH = path)
|
||||||
|
|
||||||
|
Return("objs")
|
Loading…
Reference in New Issue