summaryrefslogtreecommitdiff
path: root/bsp/stm32/libraries/templates/stm32l1xx/board/SConscript
blob: a919bc4174b9ad03d4a19f95c4f2a4f2e2d5df0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import os
from building import *

cwd = GetCurrentDir()

# add general drivers
src = Split('''
board.c
CubeMX_Config/Src/stm32L1xx_hal_msp.c
''')

if GetDepend(['BSP_USING_SPI_FLASH']):
    src += Glob('ports/spi_flash_init.c')

path =  [cwd]
path += [cwd + '/CubeMX_Config/Inc']
path += [cwd + '/ports']

group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
Return('group')