2015-09-02 22:00:24 +08:00
|
|
|
from building import *
|
|
|
|
|
2024-02-29 22:27:38 +08:00
|
|
|
group = []
|
|
|
|
|
|
|
|
if not GetDepend(['RT_USING_HWTIMER']):
|
|
|
|
Return('group')
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
2015-09-02 22:00:24 +08:00
|
|
|
CPPPATH = [cwd + '/../include']
|
2024-02-29 22:27:38 +08:00
|
|
|
|
|
|
|
src = ['hwtimer.c']
|
|
|
|
|
|
|
|
if GetDepend(['RT_HWTIMER_ARM_ARCH']):
|
|
|
|
src += ['hwtimer-arm_arch.c']
|
|
|
|
|
|
|
|
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
|
2015-09-02 22:00:24 +08:00
|
|
|
|
|
|
|
Return('group')
|