2019-10-24 17:56:09 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
|
|
|
|
# add the general drivers.
|
|
|
|
src = Split("""
|
|
|
|
board.c
|
|
|
|
MCUX_Config/board/clock_config.c
|
|
|
|
MCUX_Config/board/pin_mux.c
|
|
|
|
""")
|
|
|
|
|
2023-05-09 09:51:58 +08:00
|
|
|
if GetDepend(['PKG_USING_RW007']):
|
|
|
|
src += ['ports/rw007_port.c']
|
|
|
|
|
|
|
|
CPPPATH = [cwd, cwd + '/MCUX_Config/board']
|
2023-05-28 06:48:08 +08:00
|
|
|
CPPDEFINES = ['DEBUG', 'CPU_LPC55S69JBD100_cm33_core0']
|
2019-10-24 17:56:09 +08:00
|
|
|
|
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
|
|
|
|
|
|
|
|
Return('group')
|