perf_counter/SConscript
2022-06-12 19:43:30 -04:00

19 lines
433 B
Python

Import('rtconfig')
from building import *
src = ['perf_counter.c', 'os/rt-thread/perf_os_patch_rt_thread.c']
if rtconfig.PLATFORM in ['armcc', 'armclang']: # Keil-MDK
src += ['systick_wrapper_ual.s']
if rtconfig.PLATFORM == 'gcc':
src += ['systick_wrapper_gcc.s']
cwd = GetCurrentDir()
path = [cwd]
group = []
group = DefineGroup('perf_counter', src, depend = ['PKG_USING_PERFCOUNTER'], CPPPATH = path)
Return('group')