1import os
2import rtconfig
3from building import *
4
5Import('SDK_LIB')
6
7cwd = GetCurrentDir()
8
9# add general drivers
10src = Split('''
11board.c
12''')
13
14path =  [cwd]
15
16startup_path_prefix = SDK_LIB
17
18if rtconfig.PLATFORM in ['gcc']:
19    src += [startup_path_prefix + '/FM/FM33xx/Source/Templates/gcc/startup_fm33lc0xx.s']
20elif rtconfig.PLATFORM in ['armcc', 'armclang']:
21    src += [startup_path_prefix + '/FM/FM33xx/Source/Templates/ARM/startup_fm33lc0xx.s']
22elif rtconfig.PLATFORM in ['iccarm']:
23    src += [startup_path_prefix + '/FM/FM33xx/Source/Templates/iar/startup_fm33lc0xx.s']
24
25# FM33LC0XX
26# You can select chips from the list above
27CPPDEFINES = ['FM33LC0XX']
28group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
29Return('group')
30