[components/drivers]update hwtimer (#8565)

This commit is contained in:
zms123456
2024-02-29 22:27:38 +08:00
committed by GitHub
parent 97c5edf947
commit 6b5058ba5c
8 changed files with 503 additions and 14 deletions

View File

@@ -1,8 +1,18 @@
from building import *
cwd = GetCurrentDir()
src = Glob('*.c')
group = []
if not GetDepend(['RT_USING_HWTIMER']):
Return('group')
cwd = GetCurrentDir()
CPPPATH = [cwd + '/../include']
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_HWTIMER'], CPPPATH = CPPPATH)
src = ['hwtimer.c']
if GetDepend(['RT_HWTIMER_ARM_ARCH']):
src += ['hwtimer-arm_arch.c']
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
Return('group')