aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2022-12-20 08:17:18 +0200
committerPetri Savolainen <petri.savolainen@nokia.com>2022-12-29 14:42:06 +0200
commit6f11a982fec155ac069caabd98d5d3c9e9dcc646 (patch)
tree4e0c18dce3dd8373952349c2140b1c5315f0614b /example
parent402a11745b270aa64a24d7f4338d491c7bd25bbf (diff)
example: debug: remove deprecated odp_timer_set_rel() function
Stop using deprecated odp_timer_set_rel() 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/debug/odp_debug.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/example/debug/odp_debug.c b/example/debug/odp_debug.c
index 6b4ea977f..6683e46b4 100644
--- a/example/debug/odp_debug.c
+++ b/example/debug/odp_debug.c
@@ -372,6 +372,7 @@ static int timer_debug(void)
odp_timer_capability_t timer_capa;
odp_timer_pool_t timer_pool;
odp_timer_pool_param_t timer_param;
+ odp_timer_start_t start_param;
odp_timer_t timer;
odp_queue_t queue;
odp_queue_param_t queue_param;
@@ -452,8 +453,13 @@ static int timer_debug(void)
odp_timeout_print(timeout);
event = odp_timeout_to_event(timeout);
- if (odp_timer_set_rel(timer, tick, &event) != ODP_TIMER_SUCCESS)
- ODPH_ERR("Timer set failed.\n");
+
+ start_param.tick_type = ODP_TIMER_TICK_REL;
+ start_param.tick = tick;
+ start_param.tmo_ev = event;
+
+ if (odp_timer_start(timer, &start_param) != ODP_TIMER_SUCCESS)
+ ODPH_ERR("Timer start failed.\n");
printf("\n");
odp_timer_print(timer);