blob: 272b8c5df565025de6a0a51c4311daa7891ed8dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
from building import *
cwd = GetCurrentDir()
# add general drivers
src = Split('''
board.c
CubeMX_Config/Src/stm32l4xx_hal_msp.c
''')
if GetDepend(['BSP_USING_SPI_LCD']):
src += Glob('ports/drv_spi_lcd.c')
if GetDepend(['BSP_USING_SDCARD']):
src += Glob('ports/sdcard_port.c')
if GetDepend(['BSP_USING_ON_CHIP_FLASH']):
src += Glob('mnt.c')
path = [cwd]
path += [cwd + '/CubeMX_Config/Inc']
path += [cwd + '/ports']
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
Return('group')
|