1Import('RTT_ROOT') 2Import('rtconfig') 3from building import * 4 5cwd = GetCurrentDir() 6 7# add the general drivers. 8src = [] 9 10if GetDepend(['BSP_USING_GPIO']): 11 src += ['drv_gpio.c'] 12 13if GetDepend(['BSP_USING_UART']): 14 src += ['drv_sci.c'] 15 16if GetDepend(['BSP_USING_PWM']): 17 src += ['drv_pwm.c'] 18 19if GetDepend(['BSP_USING_SPI']): 20 src += ['drv_spi.c'] 21 22if GetDepend(['BSP_USING_ADC']): 23 src += Glob('drv_adc.c') 24 25# src += ['drv_common.c'] 26 27path = [cwd] 28path += [cwd + '/config'] 29 30group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path) 31 32Return('group') 33