X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=bertos%2Fbenchmark%2Fcontext_switch.c;h=a1a1d0204b91cfc129c82e6f78fc22d17e6dd422;hb=d024efae0a3d5ccdc95de2beb740413582b06baa;hp=92d9d9dcd8e58894a906448554251959bd9b1006;hpb=8e9b1ada815064b18774695225d12986bc36bb10;p=bertos.git diff --git a/bertos/benchmark/context_switch.c b/bertos/benchmark/context_switch.c index 92d9d9dc..a1a1d020 100644 --- a/bertos/benchmark/context_switch.c +++ b/bertos/benchmark/context_switch.c @@ -73,7 +73,7 @@ static void NORETURN hp_process(void) { sig_wait(SIG_USER0); #if CONFIG_USE_HP_TIMER - end = timer_clock_hp(); + end = timer_hw_hpread(); #endif #if CONFIG_USE_LED LED_ON(); @@ -91,7 +91,7 @@ static void NORETURN lp_process(void) { sig_wait(SIG_USER1); #if CONFIG_USE_HP_TIMER - start = timer_clock_hp(); + start = timer_hw_hpread(); #endif #if CONFIG_USE_LED LED_ON();