[DeviceDrivers] Add CPU time

This commit is contained in:
Bernard Xiong
2017-12-24 00:06:29 +08:00
parent ef922c3088
commit 7c4417855e
6 changed files with 217 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
from building import *
cwd = GetCurrentDir()
CPPPATH = [cwd + '/../include']
src = Split('''
cputime.c
''')
if GetDepend('RT_USING_CPUTIME_CORTEXM'):
src += ['cputime_cortexm.c']
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_CPUTIME'], CPPPATH = CPPPATH)
Return('group')