mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-02-06 08:52:21 +08:00
29 lines
713 B
Python
29 lines
713 B
Python
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
src = []
|
|
inc = [cwd + '/inc']
|
|
|
|
if GetDepend(['RT_USING_CLOCK_TIME']):
|
|
# Core clock_time device implementation
|
|
src += ['src/clock_time.c']
|
|
|
|
# High-resolution timer support
|
|
if GetDepend(['RT_USING_CLOCK_HRTIMER']):
|
|
src += ['src/hrtimer.c']
|
|
|
|
# CPU time APIs
|
|
if GetDepend(['RT_USING_CLOCK_CPUTIME']):
|
|
src += ['src/clock_time_cputime.c']
|
|
|
|
# Boottime APIs
|
|
if GetDepend(['RT_USING_CLOCK_BOOTTIME']):
|
|
src += ['src/clock_time_boottime.c']
|
|
|
|
# Tick-based fallback implementation
|
|
src += ['src/clock_time_tick.c']
|
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = inc)
|
|
|
|
Return('group')
|