1Import('RTT_ROOT')
2Import('rtconfig')
3from building import *
4
5cwd = GetCurrentDir()
6
7# add the general drivers.
8src = Split("""
9""")
10
11if GetDepend(['RT_USING_PIN']):
12    src += ['drv_gpio.c']
13
14if GetDepend(['RT_USING_SERIAL']):
15        src += ['drv_usart.c']
16
17path =  [cwd]
18
19group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
20
21Return('group')
22