2019-06-17 18:04:50 +08:00
|
|
|
Import('RTT_ROOT')
|
|
|
|
Import('rtconfig')
|
|
|
|
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']
|
|
|
|
|
2020-09-29 15:19:25 +08:00
|
|
|
CPPDEFINES = ['CPU_MIMXRT1064DVL6A', 'SKIP_SYSCLK_INIT', 'EVK_MCIMXRM', 'FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL=1','XIP_EXTERNAL_FLASH=1', 'XIP_BOOT_HEADER_ENABLE=1', 'XIP_BOOT_HEADER_DCD_ENABLE=1']
|
|
|
|
|
2022-04-20 09:56:04 +08:00
|
|
|
if rtconfig.PLATFORM in ['armcc', 'armclang']:
|
2019-07-05 15:03:08 +08:00
|
|
|
CPPDEFINES.append('__FPU_PRESENT=1')
|
|
|
|
|
2019-06-17 18:04:50 +08:00
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
|
|
|
|
|
|
|
|
Return('group')
|