2019-04-09 14:10:27 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
|
|
|
|
# add general drivers
|
|
|
|
src = Split('''
|
|
|
|
board.c
|
|
|
|
CubeMX_Config/Src/stm32l4xx_hal_msp.c
|
|
|
|
''')
|
|
|
|
|
2019-04-24 09:35:06 +08:00
|
|
|
if GetDepend(['BSP_USING_DSI']):
|
|
|
|
src += Glob('ports/drv_lcd_dsi.c')
|
|
|
|
|
|
|
|
if GetDepend(['BSP_USING_SRAM']):
|
|
|
|
src += Glob('ports/drv_sram.c')
|
|
|
|
|
|
|
|
if GetDepend(['BSP_USING_TOUCH']):
|
2023-01-09 10:14:23 +08:00
|
|
|
src += Glob('ports/drv_touch.c')
|
|
|
|
src += Glob('ports/drv_touch_ft.c')
|
2019-04-24 09:35:06 +08:00
|
|
|
|
2019-04-09 14:10:27 +08:00
|
|
|
path = [cwd]
|
|
|
|
path += [cwd + '/CubeMX_Config/Inc']
|
2019-04-24 09:35:06 +08:00
|
|
|
path += [cwd + '/ports/include']
|
2019-04-09 14:10:27 +08:00
|
|
|
|
|
|
|
CPPDEFINES = ['STM32L4R9xx']
|
2024-05-06 13:09:15 +08:00
|
|
|
|
2019-04-09 14:10:27 +08:00
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
|
|
|
|
|
|
|
Return('group')
|
|
|
|
|