1import os
2from building import *
3
4cwd = GetCurrentDir()
5
6# add the general drivers.
7src = Glob('board.c')
8src += Glob('CubeMX_Config/Src/stm32h7xx_hal_msp.c')
9
10path = [cwd]
11path += [cwd + '/CubeMX_Config/Inc']
12
13# STM32H743xx || STM32H750xx || STM32F753xx
14# You can select chips from the list above
15CPPDEFINES = ['STM32H743xx']
16
17group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
18list = os.listdir(cwd)
19for item in list:
20    if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
21        group = group + SConscript(os.path.join(item, 'SConscript'))
22
23Return('group')
24