mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-26 10:47:22 +08:00
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驱动。
67 lines
1.4 KiB
Python
67 lines
1.4 KiB
Python
Import('RTT_ROOT')
|
|
Import('rtconfig')
|
|
from building import *
|
|
|
|
cwd = os.path.join(str(Dir('#')), 'drivers')
|
|
|
|
# add the general drivers.
|
|
src = Split("""
|
|
board.c
|
|
drv_uart.c
|
|
drv_cache.c
|
|
""")
|
|
|
|
CPPPATH = [cwd]
|
|
CPPDEFINES = []
|
|
|
|
# add sdram driver code
|
|
if GetDepend('RT_USING_SDRAM'):
|
|
src = src + ['drv_sdram.c']
|
|
|
|
# add pin driver code
|
|
if GetDepend('RT_USING_PIN'):
|
|
src += ['drv_pin.c']
|
|
|
|
# add rtc driver code
|
|
if GetDepend('RT_USING_RTC_HP'):
|
|
src = src + ['drv_rtc.c']
|
|
|
|
# add spibus driver code
|
|
if GetDepend('RT_USING_SPI'):
|
|
src += ['drv_spi_bus.c']
|
|
|
|
# add spi flash driver code
|
|
if GetDepend('RT_USING_SPI_FLASH'):
|
|
src += ['drv_spi_flash.c']
|
|
|
|
# add i2cbus driver code
|
|
if GetDepend('RT_USING_I2C'):
|
|
src += ['drv_i2c.c']
|
|
|
|
# add lcd driver code
|
|
if GetDepend('RT_USING_LCD'):
|
|
src += ['drv_lcd.c']
|
|
|
|
# add sdio driver code
|
|
if GetDepend('RT_USING_SDIO'):
|
|
src += ['drv_sdio.c']
|
|
|
|
if GetDepend('BOARD_RT1050_EVK'):
|
|
src += ['hyper_flash_boot.c']
|
|
|
|
if GetDepend('RT_USING_LWIP'):
|
|
src += ['drv_eth.c', 'fsl_phy.c']
|
|
CPPDEFINES += ['FSL_FEATURE_PHYKSZ8081_USE_RMII50M_MODE']
|
|
|
|
if GetDepend('RT_USING_USB_DEVICE'):
|
|
src += Glob('usb/phy/*.c')
|
|
CPPDEFINES += ['ENDIANNESS']
|
|
|
|
if GetDepend('RT_USING_USB_DEVICE'):
|
|
src += ['drv_usbd.c']
|
|
src += Glob('usb/device/*.c')
|
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
|
|
|
|
Return('group')
|