2022-05-19 14:06:35 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
|
|
|
|
# add the general drivers.
|
|
|
|
src = Split("""
|
|
|
|
board.c
|
|
|
|
dcd.c
|
|
|
|
MCUX_Config/clock_config.c
|
|
|
|
MCUX_Config/pin_mux.c
|
|
|
|
""")
|
|
|
|
|
|
|
|
CPPPATH = [cwd,cwd + '/MCUX_Config',cwd + '/ports']
|
2023-06-21 22:04:34 +08:00
|
|
|
CPPDEFINES = ['CPU_MIMXRT1176DVMAA_cm7', 'XIP_BOOT_HEADER_ENABLE=1', 'XIP_BOOT_HEADER_DCD_ENABLE=1', 'FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL=1','XIP_EXTERNAL_FLASH=1','ARM_MATH_CM7','USE_SDRAM']
|
2022-05-19 14:06:35 +08:00
|
|
|
|
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
|
|
|
|
|
|
|
|
Return('group')
|