diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-06-11 16:42:05 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-06-11 16:42:05 +0000 |
commit | f4773a477a59e098f8bce2543bbf176fb729a4f5 (patch) | |
tree | c0e283f611f37fef419da4e7be6f0eb29b5a8907 /testsuites/sptests/sp32 | |
parent | 91c805472d80e9cfb1c3b8d8da9d6e521f173a6b (diff) |
2011-06-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp09/screen02.c, sp09/screen13.c, sp09/sp09.scn, sp29/init.c,
sp30/sp30.scn, sp32/init.c, spclockget/init.c: Avoid use of
deprecated rtems_clock_get() except in spclockget().
Diffstat (limited to 'testsuites/sptests/sp32')
-rw-r--r-- | testsuites/sptests/sp32/init.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/testsuites/sptests/sp32/init.c b/testsuites/sptests/sp32/init.c index f6eb2270d8..0b484a865b 100644 --- a/testsuites/sptests/sp32/init.c +++ b/testsuites/sptests/sp32/init.c @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1989-2009. + * COPYRIGHT (c) 1989-2011. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -39,8 +39,7 @@ rtems_task Init( directive_failed(status, "rate_monotonic_period #1"); /* get our first timestamp */ - status = rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, ×tamps[0] ); - directive_failed(status, "clock_get"); + timestamps[0] = rtems_clock_get_ticks_since_boot(); /* loop through and gather more timestamps */ for (loopy = 1; loopy < 5; loopy++) { @@ -48,11 +47,7 @@ rtems_task Init( status = rtems_rate_monotonic_period( period_id, wantintervals[loopy] ); directive_failed(status, "rate_monotonic_period #2"); - status = rtems_clock_get( - RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, - ×tamps[loopy] - ); - directive_failed(status, "clock_get"); + timestamps[loopy] = rtems_clock_get_ticks_since_boot(); } /* block one last time */ @@ -60,11 +55,7 @@ rtems_task Init( directive_failed(status, "rate_monotonic_period #3"); /* get one last timestamp */ - status = rtems_clock_get( - RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, - ×tamps[loopy] - ); - directive_failed(status, "clock_get"); + timestamps[loopy] = rtems_clock_get_ticks_since_boot(); /* cancel the period */ status = rtems_rate_monotonic_cancel(period_id); |