From 1382df9645a4894367ff483855b7da1361a6d7b2 Mon Sep 17 00:00:00 2001 From: Gabriel Wang Date: Tue, 23 May 2023 09:08:03 +0100 Subject: [PATCH] update __cpu_time__ to support RTOS --- example/example.uvoptx | 4 ++-- example/main.c | 4 ++-- lib/libperf_counter_gcc.a | Bin 7368 -> 7368 bytes lib/perf_counter.h | 8 ++++---- lib/perf_counter.lib | Bin 19510 -> 19510 bytes perf_counter.h | 8 ++++---- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/example/example.uvoptx b/example/example.uvoptx index 75e7724..310ac4b 100644 --- a/example/example.uvoptx +++ b/example/example.uvoptx @@ -75,7 +75,7 @@ 1 0 - 0 + 1 7 @@ -297,7 +297,7 @@ 1 0 - 1 + 0 7 diff --git a/example/main.c b/example/main.c index 796f32c..11a7cd9 100644 --- a/example/main.c +++ b/example/main.c @@ -195,9 +195,9 @@ int main (void) } __cpu_time__(10) { - delay_us(3000); + delay_us(30000); } - delay_us(7000); + delay_us(70000); } } diff --git a/lib/libperf_counter_gcc.a b/lib/libperf_counter_gcc.a index b34c187a98893d929895115a8c5a8563771578f1..ad82e39293939cd95add33902745e4f678d2350d 100644 GIT binary patch delta 45 scmX?MdBSpn44Z|KrJ=d;MkPKLFw@L(vLA=oW*?S6%uuP#ejHUI03cBd{Qv*} delta 45 rcmX?MdBSpn44bK?rG