2015-01-19 14:18:16 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = []
|
|
|
|
CPPPATH = [cwd + '/../include']
|
|
|
|
group = []
|
|
|
|
|
|
|
|
if GetDepend(['RT_USING_PIN']):
|
|
|
|
src = src + ['pin.c']
|
|
|
|
|
2018-06-07 21:23:22 +08:00
|
|
|
if GetDepend(['RT_USING_PWM']):
|
|
|
|
src = src + ['_pwm.c']
|
|
|
|
|
2015-01-19 14:18:16 +08:00
|
|
|
if len(src):
|
|
|
|
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
Return('group')
|