2019-06-12 15:01:12 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
|
|
|
|
# add the general drivers.
|
|
|
|
src = Split("""
|
|
|
|
board.c
|
|
|
|
MCUX_Config/clock_config.c
|
|
|
|
MCUX_Config/pin_mux.c
|
|
|
|
""")
|
|
|
|
|
|
|
|
CPPPATH = [cwd,cwd + '/MCUX_Config',cwd + '/ports']
|
|
|
|
CPPDEFINES = ['CPU_MIMXRT1052DVL6B', 'SKIP_SYSCLK_INIT', 'EVK_MCIMXRM', 'FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL=1','XIP_EXTERNAL_FLASH=1']
|
|
|
|
|
2019-09-19 10:11:57 +08:00
|
|
|
if GetDepend(['PHY_USING_KSZ8081']):
|
|
|
|
src += Glob('ports/phyksz8081/fsl_phy.c')
|
|
|
|
CPPPATH += [cwd + '/ports/phyksz8081']
|
|
|
|
|
2019-06-12 15:01:12 +08:00
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
|
|
|
|
|
|
|
|
Return('group')
|