diff options
author | Matias Elo <matias.elo@nokia.com> | 2022-12-19 16:33:56 +0200 |
---|---|---|
committer | Petri Savolainen <petri.savolainen@nokia.com> | 2022-12-29 14:42:06 +0200 |
commit | 9f55955a1d3c3f4c7476318749f0cbea23247657 (patch) | |
tree | 0f4dee06deff75f199f33c22e0d3667d04468117 /example | |
parent | 7bc0f147350cf07eb8fd6b70a31955055436a514 (diff) |
example: timer_test: remove deprecated odp_timer_set_abs() function
Stop using deprecated odp_timer_set_abs() function.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
Diffstat (limited to 'example')
-rw-r--r-- | example/timer/odp_timer_test.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/example/timer/odp_timer_test.c b/example/timer/odp_timer_test.c index 277bbf6ae..f298c9fe8 100644 --- a/example/timer/odp_timer_test.c +++ b/example/timer/odp_timer_test.c @@ -121,14 +121,19 @@ static void test_abs_timeouts(int thr, test_globals_t *gbls) int wait = 0; odp_event_t ev; odp_timer_set_t rc; + odp_timer_start_t start_param; if (ttp) { tick += period; - rc = odp_timer_set_abs(ttp->tim, tick, &ttp->ev); + + start_param.tick_type = ODP_TIMER_TICK_ABS; + start_param.tick = tick; + start_param.tmo_ev = ttp->ev; + + rc = odp_timer_start(ttp->tim, &start_param); if (odp_unlikely(rc != ODP_TIMER_SUCCESS)) { /* Too early or too late timeout requested */ - ODPH_ABORT("odp_timer_set_abs() failed: %s\n", - timerset2str(rc)); + ODPH_ABORT("odp_timer_start() failed: %s\n", timerset2str(rc)); } } |