aboutsummaryrefslogtreecommitdiff
path: root/example/timer/odp_timer_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'example/timer/odp_timer_test.c')
-rw-r--r--example/timer/odp_timer_test.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/example/timer/odp_timer_test.c b/example/timer/odp_timer_test.c
index ddb2ccfd5..8bfb99d8f 100644
--- a/example/timer/odp_timer_test.c
+++ b/example/timer/odp_timer_test.c
@@ -56,12 +56,12 @@ static const char *timerset2str(odp_timer_set_t val)
switch (val) {
case ODP_TIMER_SUCCESS:
return "success";
- case ODP_TIMER_TOOEARLY:
- return "too early";
- case ODP_TIMER_TOOLATE:
- return "too late";
- case ODP_TIMER_NOEVENT:
- return "no event";
+ case ODP_TIMER_TOO_NEAR:
+ return "too near";
+ case ODP_TIMER_TOO_FAR:
+ return "too far";
+ case ODP_TIMER_FAIL:
+ return "failure";
default:
return "?";
}
@@ -273,7 +273,7 @@ static int parse_args(int argc, char *argv[], test_args_t *args)
static const char *shortopts = "+c:r:m:x:p:t:h";
/* defaults */
- if (odp_timer_capability(ODP_CLOCK_CPU, &timer_capa))
+ if (odp_timer_capability(ODP_CLOCK_DEFAULT, &timer_capa))
return -1;
args->cpu_count = 1;
@@ -444,7 +444,7 @@ int main(int argc, char *argv[])
tparams.max_tmo = gbls->args.max_us * ODP_TIME_USEC_IN_NS;
tparams.num_timers = num_workers; /* One timer per worker */
tparams.priv = 0; /* Shared */
- tparams.clk_src = ODP_CLOCK_CPU;
+ tparams.clk_src = ODP_CLOCK_DEFAULT;
gbls->tp = odp_timer_pool_create("timer_pool", &tparams);
if (gbls->tp == ODP_TIMER_POOL_INVALID) {
err = 1;