4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-22 21:47:21 +08:00
xiaoxiaolisunny b9902b2fac
添加RTC设备驱动 (#5914)
* 添加RTC设备驱动
2022-05-10 13:54:15 +08:00

25 lines
391 B
Python

from building import *
cwd = GetCurrentDir()
# add the general drivers.
src = Split('''
drv_irq.c
''')
if GetDepend(['RT_USING_PIN']):
src += ['drv_gpio.c']
if GetDepend(['RT_USING_SERIAL']):
src += ['drv_usart.c']
if GetDepend('BSP_USING_RTC'):
src += ['drv_rtc.c']
CPPPATH = [cwd]
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
Return('group')