[components][rtc] Add RTC framework V2.0 to simplify RTC registration process

This commit is contained in:
iysheng
2021-07-05 11:34:11 +08:00
parent 2fda55d898
commit a2a7f3c2d9
7 changed files with 175 additions and 8 deletions

View File

@@ -13,7 +13,7 @@ CPPPATH = [cwd + '/../include']
group = []
if GetDepend(['RT_USING_RTC']):
src = src + rtc
src = src + ['rtc.c', 'rtc_core.c']
if GetDepend(['RT_USING_ALARM']):
src = src + rtc_alarm
if GetDepend(['RT_USING_SOFT_RTC']):
@@ -21,4 +21,4 @@ if GetDepend(['RT_USING_RTC']):
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_RTC'], CPPPATH = CPPPATH)
Return('group')
Return('group')