2013-01-08 22:40:58 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = []
|
|
|
|
|
|
|
|
rtc = ['rtc.c']
|
|
|
|
|
|
|
|
rtc_alarm = ['alarm.c']
|
|
|
|
|
2018-02-16 12:46:29 +08:00
|
|
|
soft_rtc = ['soft_rtc.c']
|
|
|
|
|
2013-01-08 22:40:58 +08:00
|
|
|
CPPPATH = [cwd + '/../include']
|
|
|
|
group = []
|
|
|
|
|
|
|
|
if GetDepend(['RT_USING_RTC']):
|
|
|
|
src = src + rtc
|
|
|
|
if GetDepend(['RT_USING_ALARM']):
|
|
|
|
src = src + rtc_alarm
|
2018-02-16 12:46:29 +08:00
|
|
|
if GetDepend(['RT_USING_SOFT_RTC']):
|
|
|
|
src = src + soft_rtc
|
2013-01-08 22:40:58 +08:00
|
|
|
|
|
|
|
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_RTC'], CPPPATH = CPPPATH)
|
|
|
|
|
2012-10-28 23:30:54 +08:00
|
|
|
Return('group')
|