summaryrefslogtreecommitdiff
path: root/components/drivers/clock_time/SConscript
blob: bd3346cd9c9d04834fde36f7c6e392b2156d89ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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')