mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-02-07 14:22:50 +00:00
* [dd][rtc] set the RTC alarm thread stack size default. Signed-off-by: GuEe-GUI <2991707448@qq.com> * [dm][rtc] make Kconfig import for DM Signed-off-by: GuEe-GUI <2991707448@qq.com> * [dm][rtc] support DM API for RTC 1. rtc_dev_set_name for RTC device init the name auto. 2. rtc_wkalarm_to_timestamp and rtc_timestamp_to_wkalarm for rt_rtc_wkalarm/time_t convert. Signed-off-by: GuEe-GUI <2991707448@qq.com> * [dm][rtc] add new drivers 1. Dallas/Maxim DS1302 2. Dallas/Maxim DS1307/37/38/39/40, ST M41T11 3. Goldfish Real Time Clock 4. Haoyu Microelectronics HYM8563 5. NXP PCF8523 6. Philips PCF8563/Epson RTC8564 7. ARM PL031 8. Epson RX8010SJ Signed-off-by: GuEe-GUI <2991707448@qq.com> --------- Signed-off-by: GuEe-GUI <2991707448@qq.com>
46 lines
982 B
Python
46 lines
982 B
Python
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
src = []
|
|
|
|
CPPPATH = [cwd + '/../include']
|
|
group = []
|
|
|
|
if GetDepend(['RT_USING_RTC']):
|
|
src = src + ['dev_rtc.c']
|
|
if GetDepend(['RT_USING_ALARM']):
|
|
src = src + ['dev_alarm.c']
|
|
if GetDepend(['RT_USING_SOFT_RTC']):
|
|
src = src + ['dev_soft_rtc.c']
|
|
|
|
if GetDepend(['RT_USING_DM']):
|
|
src += ['rtc_dm.c']
|
|
|
|
if GetDepend(['RT_RTC_DS1302']):
|
|
src += ['rtc-ds1302.c']
|
|
|
|
if GetDepend(['RT_RTC_DS1307']):
|
|
src += ['rtc-ds1307.c']
|
|
|
|
if GetDepend(['RT_RTC_GOLDFISH']):
|
|
src += ['rtc-goldfish.c']
|
|
|
|
if GetDepend(['RT_RTC_HYM8563']):
|
|
src += ['rtc-hym8563.c']
|
|
|
|
if GetDepend(['RT_RTC_PCF8523']):
|
|
src += ['rtc-pcf8523.c']
|
|
|
|
if GetDepend(['RT_RTC_PCF8563']):
|
|
src += ['rtc-pcf8563.c']
|
|
|
|
if GetDepend(['RT_RTC_PL031']):
|
|
src += ['rtc-pl031.c']
|
|
|
|
if GetDepend(['RT_RTC_RX8010']):
|
|
src += ['rtc-rx8010.c']
|
|
|
|
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_RTC'], CPPPATH = CPPPATH)
|
|
|
|
Return('group')
|