blob: 2a5f41e09b614ca2d3d4412bacd911f653a41c0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
from building import *
cwd = GetCurrentDir()
# add general drivers
src = Split('''
board.c
mm32f3277g8p_msp.c
''')
if GetDepend(['BSP_USING_USER_KEY']):
src += Glob("ports/user_key.c")
path = [cwd]
path += [cwd + '/ports']
# You can select chips from the list above
CPPDEFINES = ['MM32F3277G']
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
Return('group')
|