Merge pull request #13 from mysterywolf/rtkprintf

support rt_kprintf
This commit is contained in:
Gabriel Wang 2022-06-15 12:31:35 +01:00 committed by GitHub
commit db1bb87a81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,6 +21,8 @@ try:
except:
pass
group = DefineGroup('perf_counter', src, depend = ['PKG_USING_PERF_COUNTER'], CPPDEFINES = ['__PERF_CNT_USE_RTOS__'], CPPPATH = path)
group = DefineGroup('perf_counter', src, depend = ['PKG_USING_PERF_COUNTER'],
CPPDEFINES = ['__PERF_CNT_USE_RTOS__', '__PERF_COUNT_PLATFORM_SPECIFIC_HEADER__=<rtthread.h>', '__perf_counter_printf__=rt_kprintf'],
CPPPATH = path)
Return('group')