f9e58990ef
修复以下问题: 1. 修复当配置BSP为野火开发板时, 编译无法通过问题.。 2. 修复ft5406驱动挂载i2c总线到i2c1 bus。 3. 修复spibus时钟分频数错误,并修复所有spi bus都关闭时编译警告。 更新代码: 1. 移除rtgui相关初始化代码.。 2. 导出lcd相关配置参数:HSW/HFP/HBP/VSW/VFP/VBP/Backlight pin/Reset pin/width pixel/height pixel。 3. 当配置BSP为野火板子时, 默认添加sdio驱动。
31 lines
918 B
Python
31 lines
918 B
Python
# RT-Thread building script for component
|
|
|
|
Import('rtconfig')
|
|
Import('RTT_ROOT')
|
|
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
src = Glob('drivers/*.c')
|
|
|
|
if GetDepend('BOARD_RT1050_FIRE'):
|
|
SrcRemove(src, r'drivers\fsl_enet.c')
|
|
|
|
SrcRemove(src, 'drivers/dataqueue.c')
|
|
src += Glob('common/chip/*.c')
|
|
src += [cwd + '/system_MIMXRT1052.c']
|
|
|
|
CPPPATH = [ cwd, cwd + '/drivers', cwd + '/utilities', cwd + '/CMSIS/Include']
|
|
CPPDEFINES = ['CPU_MIMXRT1052DVL6A', 'SKIP_SYSCLK_INIT', 'EVK_MCIMXRM', 'FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL=1']
|
|
|
|
# add for startup script
|
|
if rtconfig.CROSS_TOOL == 'gcc':
|
|
src += [cwd + '/gcc/startup_MIMXRT1052.S']
|
|
elif rtconfig.CROSS_TOOL == 'keil':
|
|
src += [cwd + '/arm/startup_MIMXRT1052.s']
|
|
elif rtconfig.CROSS_TOOL == 'iar':
|
|
src += [cwd + '/iar/startup_MIMXRT1052.s']
|
|
|
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
|
|
|
|
Return('group')
|