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
27
28
29
30
|
Import('RTT_ROOT')
Import('rtconfig')
from building import *
import os
cwd = GetCurrentDir()
parent = os.path.dirname(cwd)
src = ['drv_exti.c']
if GetDepend(['BSP_USING_GPIO']):
src += ['drv_gpio.c']
path = [
cwd,
parent,
os.path.join(parent, 'config'),
os.path.join(RTT_ROOT, 'components', 'drivers', 'pin'),
]
group = []
group += DefineGroup('STM32 DM Drivers', src,
depend = ['RT_USING_DM'],
CPPPATH = path)
if rtconfig.PLATFORM == 'armclang':
group += DefineGroup('STM32 DM FDT', ['builtin_fdt_ac6.c'],
depend = ['RT_USING_BUILTIN_FDT'], CPPPATH = [cwd])
Return('group')
|