2013-01-08 22:40:58 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
2023-01-09 10:14:23 +08:00
|
|
|
src = []
|
2013-01-08 22:40:58 +08:00
|
|
|
|
|
|
|
CPPPATH = [cwd + '/../include']
|
|
|
|
group = []
|
|
|
|
|
|
|
|
if GetDepend(['RT_USING_RTC']):
|
2024-08-24 06:15:09 +08:00
|
|
|
src = src + ['dev_rtc.c']
|
2023-01-09 10:14:23 +08:00
|
|
|
if GetDepend(['RT_USING_ALARM']):
|
2024-08-24 06:15:09 +08:00
|
|
|
src = src + ['dev_alarm.c']
|
2023-01-09 10:14:23 +08:00
|
|
|
if GetDepend(['RT_USING_SOFT_RTC']):
|
2024-08-24 06:15:09 +08:00
|
|
|
src = src + ['dev_soft_rtc.c']
|
2013-01-08 22:40:58 +08:00
|
|
|
|
|
|
|
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_RTC'], CPPPATH = CPPPATH)
|
|
|
|
|
2023-01-09 10:14:23 +08:00
|
|
|
Return('group')
|