diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-08-12 20:50:24 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-08-12 20:50:24 +0000 |
commit | 6d1e9b8bf96792f670124d2bbc9e880269c03672 (patch) | |
tree | 3b0b0647611eedcdef0d3cfbe7c13e67699d48bf /testsuites/itrontests/itrontask03 | |
parent | 2009-08-12 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-6d1e9b8bf96792f670124d2bbc9e880269c03672.tar.bz2 |
2009-08-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* itrontask01/task1.c, itrontask02/dormant.c, itrontask03/task1.c,
itrontask03/task2.c, itrontask03/task3.c, itrontask04/task3.c:
Eliminate test routines TICKS_PER_SECOND and get_ticks_per_second()
in favor of new rtems_clock_get_ticks_per_second().
Diffstat (limited to '')
-rw-r--r-- | testsuites/itrontests/itrontask03/task1.c | 6 | ||||
-rw-r--r-- | testsuites/itrontests/itrontask03/task2.c | 4 | ||||
-rw-r--r-- | testsuites/itrontests/itrontask03/task3.c | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/testsuites/itrontests/itrontask03/task1.c b/testsuites/itrontests/itrontask03/task1.c index ac7c929762..f5f75bb456 100644 --- a/testsuites/itrontests/itrontask03/task1.c +++ b/testsuites/itrontests/itrontask03/task1.c @@ -7,7 +7,7 @@ * * Output parameters: NONE * - * COPYRIGHT (c) 1989-1999. + * COPYRIGHT (c) 1989-2009. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -28,7 +28,7 @@ void Task_1() */ puts( "TA1 - rtems_task_wake_after - sleep 1 second" ); - status = rtems_task_wake_after( 1*TICKS_PER_SECOND ); + status = rtems_task_wake_after( 1*rtems_clock_get_ticks_per_second() ); directive_failed( status, "rtems_task_wake_after" ); status = chg_pri( TA3_ID , 2 ); @@ -49,7 +49,7 @@ void Task_1() */ puts( "TA1 - rtems_task_wake_after - sleep for 5 seconds" ); - status = rtems_task_wake_after( 5*TICKS_PER_SECOND ); + status = rtems_task_wake_after( 5*rtems_clock_get_ticks_per_second() ); directive_failed( status, "rtems_task_wake_after" ); puts( "*** END OF ITRON TASK TEST 3 ***" ); diff --git a/testsuites/itrontests/itrontask03/task2.c b/testsuites/itrontests/itrontask03/task2.c index ea5384da3a..2541a80f66 100644 --- a/testsuites/itrontests/itrontask03/task2.c +++ b/testsuites/itrontests/itrontask03/task2.c @@ -9,7 +9,7 @@ * * Output parameters: NONE * - * COPYRIGHT (c) 1989-1999. + * COPYRIGHT (c) 1989-2009. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -26,6 +26,6 @@ void Task_2() rtems_status_code status; puts( "TA2 - rtems_task_wake_after - sleep 1 minute" ); - status = rtems_task_wake_after( 60*TICKS_PER_SECOND ); + status = rtems_task_wake_after( 60*rtems_clock_get_ticks_per_second() ); directive_failed( status, "rtems_task_wake_after in TA2" ); } diff --git a/testsuites/itrontests/itrontask03/task3.c b/testsuites/itrontests/itrontask03/task3.c index f2c1ca0a03..7e394d99c3 100644 --- a/testsuites/itrontests/itrontask03/task3.c +++ b/testsuites/itrontests/itrontask03/task3.c @@ -8,7 +8,7 @@ * * Output parameters: NONE * - * COPYRIGHT (c) 1989-1999. + * COPYRIGHT (c) 1989-2009. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -29,7 +29,7 @@ void Task_3() */ puts( "TA3 - rtems_task_wake_after - sleep 5 seconds" ); - status = rtems_task_wake_after( 5*TICKS_PER_SECOND ); + status = rtems_task_wake_after( 5*rtems_clock_get_ticks_per_second() ); directive_failed( status, "rtems_task_wake_after in TA3" ); |