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