Skip to content
Commit 92b0ab1b authored by Lingkai Dong's avatar Lingkai Dong
Browse files

examples: Add missing macro check in perf_counter.h



Check the macro `PKG_USING_PERF_COUNTER`, as done in
`examples/common/platform/lib/perf_os_patch_rt_thread.c`. This avoids
linking failure of every file that includes `perf_counter.h` due to
undefined `__ensure_systick_wrapper`, whose definition is only provided
for RT-Thread (in the aforementioned file) and not other RTOSes or bare
metal.

Signed-off-by: Lingkai Dong's avatarLingkai Dong <lingkai.dong@arm.com>
parent 256234d5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment