1from building import * 2 3cwd = GetCurrentDir() 4CPPPATH = [cwd + '/../include'] 5src = Split(''' 6cputime.c 7cputimer.c 8''') 9 10if GetDepend('RT_USING_CPUTIME_CORTEXM'): 11 src += ['cputime_cortexm.c'] 12 13if GetDepend('RT_USING_CPUTIME_RISCV'): 14 src += ['cputime_riscv.c'] 15 16group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_CPUTIME'], CPPPATH = CPPPATH) 17 18Return('group') 19