mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-10-20 13:55:26 +08:00
add alarm
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2373 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -1,8 +1,20 @@
|
||||
from building import *
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
src = Glob('*.c')
|
||||
cwd = GetCurrentDir()
|
||||
src = []
|
||||
|
||||
rtc = ['rtc.c']
|
||||
|
||||
rtc_alarm = ['alarm.c']
|
||||
|
||||
CPPPATH = [cwd + '/../include']
|
||||
group = []
|
||||
|
||||
if GetDepend(['RT_USING_RTC']):
|
||||
src = src + rtc
|
||||
if GetDepend(['RT_USING_ALARM']):
|
||||
src = src + rtc_alarm
|
||||
|
||||
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_RTC'], CPPPATH = CPPPATH)
|
||||
|
||||
Return('group')
|
||||
Return('group')
|
Reference in New Issue
Block a user