From 43b43d2886ea62aae9ad70bd64b7768415c32d6c Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Sat, 12 Apr 2014 11:07:31 +0200 Subject: [PATCH] Use standard rtems_clock_get_ticks_per_second() instead of TICKS_PER_SECOND. The definition TICKS_PER_SECOND is not provided by default/standard config. Signed-off-by: Pavel Pisa --- rtems-omk-template/appfoo/task_1.c | 2 +- rtems-omk-template/appnet/task_1.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rtems-omk-template/appfoo/task_1.c b/rtems-omk-template/appfoo/task_1.c index 9631ac6..74ce572 100644 --- a/rtems-omk-template/appfoo/task_1.c +++ b/rtems-omk-template/appfoo/task_1.c @@ -19,7 +19,7 @@ rtems_task Task_1( while(loops--){ printf("Task_1 woken\n"); - status = rtems_task_wake_after( TICKS_PER_SECOND ); + status = rtems_task_wake_after(rtems_clock_get_ticks_per_second()); check_rtems_status( status, 0, "rtems_task_wake_after" ); } printf("*** Suspend Task_1 ***\n"); diff --git a/rtems-omk-template/appnet/task_1.c b/rtems-omk-template/appnet/task_1.c index 06b2c6b..454c56c 100644 --- a/rtems-omk-template/appnet/task_1.c +++ b/rtems-omk-template/appnet/task_1.c @@ -19,7 +19,7 @@ rtems_task Task_1( while(loops--){ printf("Task_1 woken\n"); - status = rtems_task_wake_after( TICKS_PER_SECOND ); + status = rtems_task_wake_after(rtems_clock_get_ticks_per_second()); check_rtems_status( status, 0, "rtems_task_wake_after" ); } printf("*** Suspend Task_1 ***\n"); -- 2.39.2