Changeset 1f7ee02 in rtems


Ignore:
Timestamp:
Aug 12, 2009, 8:50:43 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
4e76c71
Parents:
99f09711
Message:

2009-08-12 Joel Sherrill <joel.sherrill@…>

  • sp02/task1.c, sp02/task2.c, sp02/task3.c, sp03/task2.c, sp05/task1.c, sp05/task2.c, sp05/task3.c, sp06/task1.c, sp06/task2.c, sp09/screen02.c, sp09/screen04.c, sp09/screen06.c, sp09/screen07.c, sp09/screen10.c, sp09/screen12.c, sp09/screen13.c, sp09/screen14.c, sp11/task1.c, sp11/task2.c, sp12/pridrv.c, sp12/pritask.c, sp12/task1.c, sp13/task1.c, sp13/task2.c, sp14/task1.c, sp16/task1.c, sp16/task4.c, sp19/fptask.c, sp19/task1.c, sp22/task1.c, sp24/task1.c, sp26/task1.c, sp29/init.c, sp30/task1.c, sp31/task1.c, sp33/init.c, sp45/init.c, sp46/init.c, sp50/init.c, spintrcritical06/init.c, spwatchdog/task1.c: Eliminate test routines TICKS_PER_SECOND and get_ticks_per_second() in favor of new rtems_clock_get_ticks_per_second().
Location:
testsuites/sptests
Files:
42 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/ChangeLog

    r99f09711 r1f7ee02  
     12009-08-12      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * sp02/task1.c, sp02/task2.c, sp02/task3.c, sp03/task2.c, sp05/task1.c,
     4        sp05/task2.c, sp05/task3.c, sp06/task1.c, sp06/task2.c,
     5        sp09/screen02.c, sp09/screen04.c, sp09/screen06.c, sp09/screen07.c,
     6        sp09/screen10.c, sp09/screen12.c, sp09/screen13.c, sp09/screen14.c,
     7        sp11/task1.c, sp11/task2.c, sp12/pridrv.c, sp12/pritask.c,
     8        sp12/task1.c, sp13/task1.c, sp13/task2.c, sp14/task1.c, sp16/task1.c,
     9        sp16/task4.c, sp19/fptask.c, sp19/task1.c, sp22/task1.c,
     10        sp24/task1.c, sp26/task1.c, sp29/init.c, sp30/task1.c, sp31/task1.c,
     11        sp33/init.c, sp45/init.c, sp46/init.c, sp50/init.c,
     12        spintrcritical06/init.c, spwatchdog/task1.c: Eliminate test routines
     13        TICKS_PER_SECOND and get_ticks_per_second() in favor of new
     14        rtems_clock_get_ticks_per_second().
     15
    1162009-08-12      Joel Sherrill <joel.sherrill@oarcorp.com>
    217
  • testsuites/sptests/sp02/task1.c

    r99f09711 r1f7ee02  
    88 *  Output parameters:  NONE
    99 *
    10  *  COPYRIGHT (c) 1989-2008.
     10 *  COPYRIGHT (c) 1989-2009.
    1111 *  On-Line Applications Research Corporation (OAR).
    1212 *
     
    3131
    3232  puts( "TA1 - rtems_task_wake_after - sleep 1 second" );
    33   status = rtems_task_wake_after( 1*TICKS_PER_SECOND );
     33  status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
    3434  directive_failed( status, "rtems_task_wake_after" );
    3535
     
    6464
    6565  puts( "TA1 - rtems_task_wake_after - sleep for 5 seconds" );
    66   status = rtems_task_wake_after( 5*TICKS_PER_SECOND );
     66  status = rtems_task_wake_after( 5*rtems_clock_get_ticks_per_second() );
    6767  directive_failed( status, "rtems_task_wake_after" );
    6868
  • testsuites/sptests/sp02/task2.c

    r99f09711 r1f7ee02  
    1010 *  Output parameters:  NONE
    1111 *
    12  *  COPYRIGHT (c) 1989-1999.
     12 *  COPYRIGHT (c) 1989-2009.
    1313 *  On-Line Applications Research Corporation (OAR).
    1414 *
     
    2929
    3030  puts( "TA2 - rtems_task_wake_after - sleep 1 minute" );
    31   status = rtems_task_wake_after( 60*TICKS_PER_SECOND );
     31  status = rtems_task_wake_after( 60*rtems_clock_get_ticks_per_second() );
    3232  directive_failed( status, "rtems_task_wake_after in TA2" );
    3333}
  • testsuites/sptests/sp02/task3.c

    r99f09711 r1f7ee02  
    99 *  Output parameters:  NONE
    1010 *
    11  *  COPYRIGHT (c) 1989-1999.
     11 *  COPYRIGHT (c) 1989-2009.
    1212 *  On-Line Applications Research Corporation (OAR).
    1313 *
     
    2828
    2929  puts( "TA3 - rtems_task_wake_after - sleep 5 seconds" );
    30   status = rtems_task_wake_after( 5*TICKS_PER_SECOND );
     30  status = rtems_task_wake_after( 5*rtems_clock_get_ticks_per_second() );
    3131  directive_failed( status, "rtems_task_wake_after in TA3" );
    3232
  • testsuites/sptests/sp03/task2.c

    r99f09711 r1f7ee02  
    99 *  Output parameters:  NONE
    1010 *
    11  *  COPYRIGHT (c) 1989-1999.
     11 *  COPYRIGHT (c) 1989-2009.
    1212 *  On-Line Applications Research Corporation (OAR).
    1313 *
     
    2929
    3030  while( FOREVER ) {
    31     status = rtems_task_wake_after( 1*TICKS_PER_SECOND );
     31    status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
    3232    directive_failed( status, "rtems_task_wake_after" );
    3333
  • testsuites/sptests/sp05/task1.c

    r99f09711 r1f7ee02  
    1111 *  NOTE: The rtems_task_suspend() directives fail on the first iteration.
    1212 *
    13  *  COPYRIGHT (c) 1989-1999.
     13 *  COPYRIGHT (c) 1989-2009.
    1414 *  On-Line Applications Research Corporation (OAR).
    1515 *
     
    4141
    4242    puts( "TA1 - rtems_task_wake_after - sleep 5 seconds" );
    43     status = rtems_task_wake_after( 5*TICKS_PER_SECOND );
     43    status = rtems_task_wake_after( 5*rtems_clock_get_ticks_per_second() );
    4444    directive_failed( status, "rtems_task_wake_after of TA1" );
    4545
     
    6161
    6262    puts( "TA1 - rtems_task_wake_after - sleep 5 seconds" );
    63     status = rtems_task_wake_after( 5*TICKS_PER_SECOND );
     63    status = rtems_task_wake_after( 5*rtems_clock_get_ticks_per_second() );
    6464    directive_failed( status, "rtems_task_wake_after" );
    6565
  • testsuites/sptests/sp05/task2.c

    r99f09711 r1f7ee02  
    99 *  Output parameters:  NONE
    1010 *
    11  *  COPYRIGHT (c) 1989-1999.
     11 *  COPYRIGHT (c) 1989-2009.
    1212 *  On-Line Applications Research Corporation (OAR).
    1313 *
     
    3333  while( FOREVER ) {
    3434    puts( "TA2 - rtems_task_wake_after - sleep 1 second" );
    35     status = rtems_task_wake_after( 1*TICKS_PER_SECOND );
     35    status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
    3636    directive_failed( status, "rtems_task_wake_after of TA2" );
    3737  }
  • testsuites/sptests/sp05/task3.c

    r99f09711 r1f7ee02  
    99 *  Output parameters:  NONE
    1010 *
    11  *  COPYRIGHT (c) 1989-1999.
     11 *  COPYRIGHT (c) 1989-2009.
    1212 *  On-Line Applications Research Corporation (OAR).
    1313 *
     
    3333  while( FOREVER ) {
    3434    puts( "TA3 - rtems_task_wake_after - sleep 1 second" );
    35     status = rtems_task_wake_after( 1*TICKS_PER_SECOND );
     35    status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
    3636    directive_failed( status, "rtems_task_wake_after of TA3" );
    3737  }
  • testsuites/sptests/sp06/task1.c

    r99f09711 r1f7ee02  
    99 *  Output parameters:  NONE
    1010 *
    11  *  COPYRIGHT (c) 1989-1999.
     11 *  COPYRIGHT (c) 1989-2009.
    1212 *  On-Line Applications Research Corporation (OAR).
    1313 *
     
    4242    directive_failed( status, "rtems_task_restart of TA3" );
    4343
    44     status = rtems_task_wake_after( 2 * TICKS_PER_SECOND );
     44    status = rtems_task_wake_after( 2 * rtems_clock_get_ticks_per_second() );
    4545    directive_failed( status, "rtems_task_wake_after" );
    4646  }
    4747
    48   status = rtems_task_wake_after( TICKS_PER_SECOND );
     48  status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
    4949  directive_failed( status, "rtems_task_wake_after" );
    5050
     
    5353  directive_failed( status, "rtems_task_restart TA2" );
    5454
    55   status = rtems_task_wake_after( 1*TICKS_PER_SECOND );
     55  status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
    5656  directive_failed( status, "rtems_task_wake_after" );
    5757
  • testsuites/sptests/sp06/task2.c

    r99f09711 r1f7ee02  
    99 *  Output parameters:  NONE
    1010 *
    11  *  COPYRIGHT (c) 1989-1999.
     11 *  COPYRIGHT (c) 1989-2009.
    1212 *  On-Line Applications Research Corporation (OAR).
    1313 *
     
    2828  puts( "TA2 - is beginning to run" );
    2929  if ( argument == Argument ) {
    30     status = rtems_task_wake_after( 2 * TICKS_PER_SECOND );
     30    status = rtems_task_wake_after( 2 * rtems_clock_get_ticks_per_second() );
    3131    directive_failed( status, "rtems_task_wake_after" );
    3232  }
     
    3434  while( FOREVER ) {
    3535    puts( "TA2 - rtems_task_wake_after - sleep 1/2 second" );
    36     status = rtems_task_wake_after( TICKS_PER_SECOND / 2 );
     36    status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() / 2 );
    3737    directive_failed( status, "rtems_task_wake_after" );
    3838  }
  • testsuites/sptests/sp09/screen02.c

    r99f09711 r1f7ee02  
    77 *  Output parameters:  NONE
    88 *
    9  *  COPYRIGHT (c) 1989-2007.
     9 *  COPYRIGHT (c) 1989-2009.
    1010 *  On-Line Applications Research Corporation (OAR).
    1111 *
     
    171171  puts( " - RTEMS_INVALID_CLOCK" );
    172172
    173   build_time( &time, 2, 5, 1988, 8, 30, 45, TICKS_PER_SECOND + 1 );
     173  build_time(
     174    &time, 2, 5, 1988, 8, 30, 45,
     175    rtems_clock_get_ticks_per_second() + 1
     176  );
    174177  print_time( "TA1 - rtems_clock_set - ", &time, "" );
    175178  status = rtems_clock_set( &time );
     
    189192/* rtems_task_wake_when */
    190193
    191   build_time( &time, 2, 5, 1988, 8, 30, 48, TICKS_PER_SECOND + 1 );
     194  build_time(
     195    &time,
     196    2, 5, 1988, 8, 30, 48,
     197    rtems_clock_get_ticks_per_second() + 1
     198  );
    192199  time.second += 3;
    193200  puts( "TA1 - rtems_task_wake_when - TICKINVALID - sleep about 3 seconds" );
  • testsuites/sptests/sp09/screen04.c

    r99f09711 r1f7ee02  
    5757    RTEMS_EVENT_16,
    5858    RTEMS_DEFAULT_OPTIONS,
    59     3 * TICKS_PER_SECOND,
     59    3 * rtems_clock_get_ticks_per_second(),
    6060    &event_out
    6161  );
     
    7676
    7777  puts( "TA1 - rtems_task_wake_after - sleep 1 second - RTEMS_SUCCESSFUL" );
    78   status = rtems_task_wake_after( TICKS_PER_SECOND );
     78  status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
    7979  directive_failed( status, "rtems_task_wake_after" );
    8080
  • testsuites/sptests/sp09/screen06.c

    r99f09711 r1f7ee02  
    77 *  Output parameters:  NONE
    88 *
    9  *  COPYRIGHT (c) 1989-1999.
     9 *  COPYRIGHT (c) 1989-2009.
    1010 *  On-Line Applications Research Corporation (OAR).
    1111 *
     
    5959    Semaphore_id[ 1 ],
    6060    RTEMS_DEFAULT_OPTIONS,
    61     3 * TICKS_PER_SECOND
     61    3 * rtems_clock_get_ticks_per_second()
    6262  );
    6363  fatal_directive_status(
  • testsuites/sptests/sp09/screen07.c

    r99f09711 r1f7ee02  
    77 *  Output parameters:  NONE
    88 *
    9  *  COPYRIGHT (c) 1989-2007.
     9 *  COPYRIGHT (c) 1989-2009.
    1010 *  On-Line Applications Research Corporation (OAR).
    1111 *
     
    212212    &size,
    213213    RTEMS_DEFAULT_OPTIONS,
    214     3 * TICKS_PER_SECOND
     214    3 * rtems_clock_get_ticks_per_second()
    215215  );
    216216  fatal_directive_status(
  • testsuites/sptests/sp09/screen10.c

    r99f09711 r1f7ee02  
    77 *  Output parameters:  NONE
    88 *
    9  *  COPYRIGHT (c) 1989-1999.
     9 *  COPYRIGHT (c) 1989-2009.
    1010 *  On-Line Applications Research Corporation (OAR).
    1111 *
     
    151151  directive_failed( status, "rtems_rate_monotonic_period restart" );
    152152
    153   status = rtems_task_wake_after( 1 * TICKS_PER_SECOND );
     153  status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
    154154  directive_failed( status, "rtems_task_wake_after" );
    155155
  • testsuites/sptests/sp09/screen12.c

    r99f09711 r1f7ee02  
    77 *  Output parameters:  NONE
    88 *
    9  *  COPYRIGHT (c) 1989-2007.
     9 *  COPYRIGHT (c) 1989-2009.
    1010 *  On-Line Applications Research Corporation (OAR).
    1111 *
     
    270270    128,
    271271    RTEMS_DEFAULT_OPTIONS,
    272     3 * TICKS_PER_SECOND,
     272    3 * rtems_clock_get_ticks_per_second(),
    273273    &segment_address_3
    274274  );
  • testsuites/sptests/sp09/screen13.c

    r99f09711 r1f7ee02  
    77 *  Output parameters:  NONE
    88 *
    9  *  COPYRIGHT (c) 1989-1999.
     9 *  COPYRIGHT (c) 1989-2009.
    1010 *  On-Line Applications Research Corporation (OAR).
    1111 *
     
    7171  directive_failed( status, "rtems_clock_set" );
    7272  print_time( "TA1 - rtems_clock_set - ", &time, " - RTEMS_SUCCESSFUL\n" );
    73   status = rtems_task_wake_after( 1 * TICKS_PER_SECOND );
     73  status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
    7474  status = rtems_clock_get_tod( &time );
    7575  directive_failed( status, "rtems_clock_set" );
     
    8080  directive_failed( status, "rtems_clock_set" );
    8181  print_time( "TA1 - rtems_clock_set - ", &time, " - RTEMS_SUCCESSFUL\n" );
    82   status = rtems_task_wake_after( 1 * TICKS_PER_SECOND );
     82  status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
    8383  status = rtems_clock_get_tod( &time );
    8484  directive_failed( status, "rtems_clock_set" );
     
    8989  directive_failed( status, "rtems_clock_set" );
    9090  print_time( "TA1 - rtems_clock_set - ", &time, " - RTEMS_SUCCESSFUL\n" );
    91   status = rtems_task_wake_after( 1 * TICKS_PER_SECOND );
     91  status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
     92    5 * rtems_clock_get_ticks_per_second(),
    9293  status = rtems_clock_get_tod( &time );
    9394  directive_failed( status, "rtems_clock_set" );
     
    9899  directive_failed( status, "rtems_clock_set" );
    99100  print_time( "TA1 - rtems_clock_set - ", &time, " - RTEMS_SUCCESSFUL\n" );
    100   status = rtems_task_wake_after( 1 * TICKS_PER_SECOND );
     101  status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
    101102  status = rtems_clock_get_tod( &time );
    102103  directive_failed( status, "rtems_clock_set" );
     
    107108  directive_failed( status, "rtems_clock_set" );
    108109  print_time( "TA1 - rtems_clock_set - ", &time, " - RTEMS_SUCCESSFUL\n" );
    109   status = rtems_task_wake_after( 1 * TICKS_PER_SECOND );
     110  status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
    110111  status = rtems_clock_get_tod( &time );
    111112  directive_failed( status, "rtems_clock_set" );
  • testsuites/sptests/sp09/screen14.c

    r99f09711 r1f7ee02  
    77 *  Output parameters:  NONE
    88 *
    9  *  COPYRIGHT (c) 1989-2008.
     9 *  COPYRIGHT (c) 1989-2009.
    1010 *  On-Line Applications Research Corporation (OAR).
    1111 *
     
    9696  status = rtems_timer_fire_after(
    9797    rtems_build_id( 1, 1, 1, 256 ),
    98     5 * TICKS_PER_SECOND,
     98    5 * rtems_clock_get_ticks_per_second(),
    9999    Delayed_routine,
    100100    NULL
     
    221221  status = rtems_timer_server_fire_after(
    222222    rtems_build_id( 1, 1, 1, 256 ),
    223     5 * TICKS_PER_SECOND,
     223    5 * rtems_clock_get_ticks_per_second(),
    224224    Delayed_routine,
    225225    NULL
  • testsuites/sptests/sp11/task1.c

    r99f09711 r1f7ee02  
    88 *  Output parameters:  NONE
    99 *
    10  *  COPYRIGHT (c) 1989-1999.
     10 *  COPYRIGHT (c) 1989-2009.
    1111 *  On-Line Applications Research Corporation (OAR).
    1212 *
     
    5959    RTEMS_EVENT_14,
    6060    RTEMS_DEFAULT_OPTIONS,
    61     10 * TICKS_PER_SECOND,
     61    10 * rtems_clock_get_ticks_per_second(),
    6262    &eventout
    6363  );
     
    7878  status = rtems_timer_fire_after(
    7979    Timer_id[ 1 ],
    80     5 * TICKS_PER_SECOND,
     80    5 * rtems_clock_get_ticks_per_second(),
    8181    TA1_send_18_to_self_5_seconds,
    8282    NULL
     
    137137  status = rtems_timer_fire_after(
    138138    Timer_id[ 1 ],
    139     5 * TICKS_PER_SECOND,
     139    5 * rtems_clock_get_ticks_per_second(),
    140140    TA1_send_18_to_self_5_seconds,
    141141    NULL
     
    150150  status = rtems_timer_fire_after(
    151151    Timer_id[ 1 ],
    152     60 * TICKS_PER_SECOND,
     152    60 * rtems_clock_get_ticks_per_second(),
    153153    TA1_send_8_to_self_60_seconds,
    154154    NULL
     
    159159  status = rtems_timer_fire_after(
    160160    Timer_id[ 2 ],
    161     60 * TICKS_PER_SECOND,
     161    60 * rtems_clock_get_ticks_per_second(),
    162162    TA1_send_9_to_self_60_seconds,
    163163    NULL
     
    170170  status = rtems_timer_fire_after(
    171171    Timer_id[ 3 ],
    172     60 * TICKS_PER_SECOND,
     172    60 * rtems_clock_get_ticks_per_second(),
    173173    TA1_send_10_to_self,
    174174    NULL
     
    189189  status = rtems_timer_fire_after(
    190190    Timer_id[ 1 ],
    191     TICKS_PER_SECOND,
     191    rtems_clock_get_ticks_per_second(),
    192192    TA1_send_1_to_self_every_second,
    193193    NULL
  • testsuites/sptests/sp11/task2.c

    r99f09711 r1f7ee02  
    99 *  Output parameters:  NONE
    1010 *
    11  *  COPYRIGHT (c) 1989-1999.
     11 *  COPYRIGHT (c) 1989-2009.
    1212 *  On-Line Applications Research Corporation (OAR).
    1313 *
     
    2929  rtems_status_code status;
    3030
    31   status = rtems_task_wake_after( 1*TICKS_PER_SECOND );
     31  status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
    3232  directive_failed( status, "rtems_task_wake_after" );
    3333
  • testsuites/sptests/sp12/pridrv.c

    r99f09711 r1f7ee02  
    1212 *  Output parameters:  NONE
    1313 *
    14  *  COPYRIGHT (c) 1989-2008.
     14 *  COPYRIGHT (c) 1989-2009.
    1515 *  On-Line Applications Research Corporation (OAR).
    1616 *
     
    7474      directive_failed( status, "rtems_task_start loop" );
    7575
    76       status = rtems_task_wake_after( TICKS_PER_SECOND );
     76      status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
    7777      directive_failed( status, "rtems_task_wake_after loop" );
    7878
     
    101101  }
    102102
    103   status = rtems_task_wake_after( TICKS_PER_SECOND );
     103  status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
    104104  directive_failed( status, "rtems_task_wake_after after loop" );
    105105
     
    116116    directive_failed( status, "rtems_task_resume" );
    117117
    118     status = rtems_task_wake_after( 1 * TICKS_PER_SECOND );
     118    status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
    119119    directive_failed( status, "rtems_task_wake_after so PRI5 can run" );
    120120
    121121    status = rtems_task_delete( Priority_task_id[ 5 ] );
    122122    directive_failed( status, "rtems_task_delete of PRI5" );
    123   }
    124   else {
     123  } else {
    125124    for ( index = 1 ; index <= 5 ; index++ ) {
    126125      status = rtems_task_delete( Priority_task_id[ index ] );
  • testsuites/sptests/sp12/pritask.c

    r99f09711 r1f7ee02  
    88 *  Output parameters:  NONE
    99 *
    10  *  COPYRIGHT (c) 1989-2008.
     10 *  COPYRIGHT (c) 1989-2009.
    1111 *  On-Line Applications Research Corporation (OAR).
    1212 *
     
    3333
    3434  if ( its_priority < 3 )
    35     timeout = 5 * TICKS_PER_SECOND;
     35    timeout = 5 * rtems_clock_get_ticks_per_second();
    3636  else
    3737    timeout = RTEMS_NO_TIMEOUT;
  • testsuites/sptests/sp12/task1.c

    r99f09711 r1f7ee02  
    88 *  Output parameters:  NONE
    99 *
    10  *  COPYRIGHT (c) 1989-1999.
     10 *  COPYRIGHT (c) 1989-2009.
    1111 *  On-Line Applications Research Corporation (OAR).
    1212 *
     
    6363
    6464  puts( "TA1 - rtems_task_wake_after - sleep 5 seconds" );
    65   status = rtems_task_wake_after( 5*TICKS_PER_SECOND );
     65  status = rtems_task_wake_after( 5 * rtems_clock_get_ticks_per_second() );
    6666  directive_failed( status, "rtems_task_wake_after" );
    6767
     
    7878    Semaphore_id[ 1 ],
    7979    RTEMS_DEFAULT_OPTIONS,
    80     10 * TICKS_PER_SECOND
     80    10 * rtems_clock_get_ticks_per_second()
    8181  );
    8282  directive_failed( status, "rtems_semaphore_obtain of SM1" );
     
    8888
    8989  puts( "TA1 - rtems_task_wake_after - sleep 5 seconds" );
    90   status = rtems_task_wake_after( 5*TICKS_PER_SECOND );
     90  status = rtems_task_wake_after( 5 * rtems_clock_get_ticks_per_second() );
    9191  directive_failed( status, "rtems_task_wake_after" );
    9292
     
    124124
    125125  puts( "TA1 - rtems_task_wake_after - sleep 5 seconds" );
    126   status = rtems_task_wake_after( 5*TICKS_PER_SECOND );
     126  status = rtems_task_wake_after( 5 * rtems_clock_get_ticks_per_second() );
    127127  directive_failed( status, "rtems_task_wake_after" );
    128128
     
    136136
    137137  puts( "TA1 - rtems_task_wake_after - sleep 5 seconds" );
    138   status = rtems_task_wake_after( 5*TICKS_PER_SECOND );
     138  status = rtems_task_wake_after( 5 * rtems_clock_get_ticks_per_second() );
    139139  directive_failed( status, "rtems_task_wake_after" );
    140140
  • testsuites/sptests/sp13/task1.c

    r99f09711 r1f7ee02  
    8181
    8282  puts( "TA1 - rtems_task_wake_after - sleep 5 seconds" );
    83   status = rtems_task_wake_after( 5*TICKS_PER_SECOND );
     83  status = rtems_task_wake_after( 5*rtems_clock_get_ticks_per_second() );
    8484  directive_failed( status, "rtems_task_wake_after" );
    8585
     
    9090
    9191  puts( "TA1 - rtems_task_wake_after - sleep 5 seconds" );
    92   status = rtems_task_wake_after( 5*TICKS_PER_SECOND );
     92  status = rtems_task_wake_after( 5*rtems_clock_get_ticks_per_second() );
    9393  directive_failed( status, "rtems_task_wake_after" );
    9494
     
    107107    &size,
    108108    RTEMS_DEFAULT_OPTIONS,
    109     10 * TICKS_PER_SECOND
     109    10 * rtems_clock_get_ticks_per_second()
    110110  );
    111111  directive_failed( status, "rtems_message_queue_receive" );
     
    124124
    125125  puts( "TA1 - rtems_task_wake_after - sleep 5 seconds" );
    126   status = rtems_task_wake_after( 5*TICKS_PER_SECOND );
     126  status = rtems_task_wake_after( 5*rtems_clock_get_ticks_per_second() );
    127127  directive_failed( status, "rtems_task_wake_after" );
    128128
     
    338338                                           &size,
    339339                                           RTEMS_DEFAULT_OPTIONS,
    340                                            1 * TICKS_PER_SECOND);
     340                                           1 * rtems_clock_get_ticks_per_second());
    341341      directive_failed(status, "rtems_message_queue_receive exact size");
    342342      if (size != queue_size)
  • testsuites/sptests/sp13/task2.c

    r99f09711 r1f7ee02  
    99 *  Output parameters:  NONE
    1010 *
    11  *  COPYRIGHT (c) 1989-2007.
     11 *  COPYRIGHT (c) 1989-2009.
    1212 *  On-Line Applications Research Corporation (OAR).
    1313 *
     
    111111    &size,
    112112    RTEMS_DEFAULT_OPTIONS,
    113     10 * TICKS_PER_SECOND
     113    10 * rtems_clock_get_ticks_per_second()
    114114  );
    115115  directive_failed( status, "rtems_message_queue_receive" );
  • testsuites/sptests/sp14/task1.c

    r99f09711 r1f7ee02  
    99 *  Output parameters:  NONE
    1010 *
    11  *  COPYRIGHT (c) 1989-1999.
     11 *  COPYRIGHT (c) 1989-2009.
    1212 *  On-Line Applications Research Corporation (OAR).
    1313 *
     
    7676  status = rtems_timer_fire_after(
    7777    Timer_id[ 1 ],
    78     TICKS_PER_SECOND / 2,
     78    rtems_clock_get_ticks_per_second() / 2,
    7979    Signal_3_to_task_1,
    8080    (void *) Task_1
  • testsuites/sptests/sp16/task1.c

    r99f09711 r1f7ee02  
    88 *  Output parameters:  NONE
    99 *
    10  *  COPYRIGHT (c) 1989-1999.
     10 *  COPYRIGHT (c) 1989-2009.
    1111 *  On-Line Applications Research Corporation (OAR).
    1212 *
     
    9999    3072,
    100100    RTEMS_DEFAULT_OPTIONS,
    101     10 * TICKS_PER_SECOND,
     101    10 * rtems_clock_get_ticks_per_second(),
    102102    &segment_address_4
    103103  );
     
    152152
    153153  puts( "TA1 - rtems_task_wake_after - yield processor" );
    154   status = rtems_task_wake_after( 1 * TICKS_PER_SECOND );
     154  status = rtems_task_wake_after( 1 * rtems_clock_get_ticks_per_second() );
    155155  directive_failed( status, "rtems_task_wake_after" );
    156156
     
    164164
    165165  puts( "TA1 - rtems_task_wake_after - yield processor" );
    166   status = rtems_task_wake_after( 1 * TICKS_PER_SECOND );
     166  status = rtems_task_wake_after( 1 * rtems_clock_get_ticks_per_second() );
    167167  directive_failed( status, "rtems_task_wake_after" );
    168168
     
    173173    3072,
    174174    RTEMS_DEFAULT_OPTIONS,
    175     10 * TICKS_PER_SECOND,
     175    10 * rtems_clock_get_ticks_per_second(),
    176176    &segment_address_4
    177177  );
     
    182182
    183183  puts( "TA1 - rtems_task_wake_after - yield processor" );
    184   status = rtems_task_wake_after( 1 * TICKS_PER_SECOND );
     184  status = rtems_task_wake_after( 1 * rtems_clock_get_ticks_per_second() );
    185185  directive_failed( status, "rtems_task_wake_after" );
    186186
  • testsuites/sptests/sp16/task4.c

    r99f09711 r1f7ee02  
    99 *  Output parameters:  NONE
    1010 *
    11  *  COPYRIGHT (c) 1989-1999.
     11 *  COPYRIGHT (c) 1989-2009.
    1212 *  On-Line Applications Research Corporation (OAR).
    1313 *
     
    4545  new_line;
    4646
    47   status = rtems_task_wake_after( TICKS_PER_SECOND );
     47  status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
    4848  directive_failed( status, "rtems_task_wake_after" );
    4949
  • testsuites/sptests/sp19/fptask.c

    r99f09711 r1f7ee02  
    9191    if (time.second >= 4)
    9292    {
    93       status = rtems_task_wake_after( TICKS_PER_SECOND );
     93      status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
    9494      directive_failed( status, "rtems_task_wake_after" );
    9595    }
  • testsuites/sptests/sp19/task1.c

    r99f09711 r1f7ee02  
    99 *  Output parameters:  NONE
    1010 *
    11  *  COPYRIGHT (c) 1989-1999.
     11 *  COPYRIGHT (c) 1989-2009.
    1212 *  On-Line Applications Research Corporation (OAR).
    1313 *
     
    5252
    5353    status = rtems_task_wake_after(
    54       ( task_number( tid ) ) * 5 * TICKS_PER_SECOND
     54      ( task_number( tid ) ) * 5 * rtems_clock_get_ticks_per_second()
    5555    );
    5656    directive_failed( status, "rtems_task_wake_after" );
  • testsuites/sptests/sp22/task1.c

    r99f09711 r1f7ee02  
    99 *  Output parameters:  NONE
    1010 *
    11  *  COPYRIGHT (c) 1989-1999.
     11 *  COPYRIGHT (c) 1989-2009.
    1212 *  On-Line Applications Research Corporation (OAR).
    1313 *
     
    4343  status = rtems_timer_fire_after(
    4444    tmid,
    45     3 * TICKS_PER_SECOND,
     45    3 * rtems_clock_get_ticks_per_second(),
    4646    Delayed_resume,
    4747    NULL
     
    6060  status = rtems_timer_fire_after(
    6161    tmid,
    62     3 * TICKS_PER_SECOND,
     62    3 * rtems_clock_get_ticks_per_second(),
    6363    Delayed_resume,
    6464    NULL
     
    6767
    6868  puts( "TA1 - rtems_task_wake_after - 1 second" );
    69   status = rtems_task_wake_after( 1 * TICKS_PER_SECOND );
     69  status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
    7070  directive_failed( status, "rtems_task_wake_after" );
    7171
     
    100100  status = rtems_timer_fire_after(
    101101    tmid,
    102     3 * TICKS_PER_SECOND,
     102    3 * rtems_clock_get_ticks_per_second(),
    103103    Delayed_resume,
    104104    NULL
     
    141141
    142142  puts( "TA1 - rtems_task_wake_after - 1 second" );
    143   status = rtems_task_wake_after( 1 * TICKS_PER_SECOND );
     143  status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
    144144  directive_failed( status, "rtems_task_wake_after" );
    145145
  • testsuites/sptests/sp24/task1.c

    r99f09711 r1f7ee02  
    99 *  does not correspond correctly with the number of ticks.
    1010 *
    11  *  COPYRIGHT (c) 1989-1999.
     11 *  COPYRIGHT (c) 1989-2009.
    1212 *  On-Line Applications Research Corporation (OAR).
    1313 *
     
    3535    status = rtems_timer_fire_after(
    3636      Timer_id[ argument ],
    37       task_number( tid ) * 5 * TICKS_PER_SECOND,
     37      task_number( tid ) * 5 * rtems_clock_get_ticks_per_second(),
    3838      Resume_task,
    3939      NULL
  • testsuites/sptests/sp26/task1.c

    r99f09711 r1f7ee02  
    112112task1 (void)
    113113{
    114   rtems_clock_get (RTEMS_CLOCK_GET_TICKS_PER_SECOND, &ticksPerSecond);
     114  ticksPerSecond = rtems_clock_get_ticks_per_second();
    115115  createTask ('1', &taskId1);
    116116  createTask ('2', &taskId2);
  • testsuites/sptests/sp29/init.c

    r99f09711 r1f7ee02  
    8282        puts( "This test only prints on errors." );
    8383
    84         sc = rtems_clock_get (RTEMS_CLOCK_GET_TICKS_PER_SECOND, &ticksPerSecond);
     84        ticksPerSecond = rtems_clock_get_ticks_per_second();
    8585        if (sc != RTEMS_SUCCESSFUL) {
    8686                printf ("Can't get ticks per second: %s\n", rtems_status_text (sc));
  • testsuites/sptests/sp30/task1.c

    r99f09711 r1f7ee02  
    99 *  does not correspond correctly with the number of ticks.
    1010 *
    11  *  COPYRIGHT (c) 1989-2002.
     11 *  COPYRIGHT (c) 1989-2009.
    1212 *  On-Line Applications Research Corporation (OAR).
    1313 *
     
    3535    status = rtems_timer_server_fire_after(
    3636      Timer_id[ argument ],
    37       (task_number( tid ) - 1) * 5 * TICKS_PER_SECOND,
     37      (task_number( tid ) - 1) * 5 * rtems_clock_get_ticks_per_second(),
    3838      Resume_task,
    3939      (void *) &tid
  • testsuites/sptests/sp31/task1.c

    r99f09711 r1f7ee02  
    6464  puts( "TA1 - rtems_timer_server_fire_after - 1 second" );
    6565  status = rtems_timer_server_fire_after(
    66     tmid, TICKS_PER_SECOND, Should_not_fire_TSR, NULL );
     66    tmid, rtems_clock_get_ticks_per_second(), Should_not_fire_TSR, NULL );
    6767  directive_failed( status, "rtems_timer_server_fire_after" );
    6868
    6969  puts( "TA1 - rtems_task_wake_after - 1/2 second" );
    70   status = rtems_task_wake_after( TICKS_PER_SECOND / 2 );
     70  status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() / 2 );
    7171  directive_failed( status, "rtems_timer_server_fire_after" );
    7272
     
    7474  puts( "TA1 - rtems_timer_server_fire_after - timer 2 in 1/2 second" );
    7575  status = rtems_timer_server_fire_after(
    76     tmid2, TICKS_PER_SECOND / 2, Should_not_fire_TSR, NULL );
     76    tmid2, rtems_clock_get_ticks_per_second() / 2, Should_not_fire_TSR, NULL );
    7777  directive_failed( status, "rtems_timer_server_fire_after" );
    7878
     
    9494  puts( "TA1 - rtems_timer_server_fire_after - timer 1 in 30 seconds" );
    9595  status = rtems_timer_server_fire_after(
    96     tmid, 30 * TICKS_PER_SECOND, Delayed_resume, NULL );
     96    tmid, 30 * rtems_clock_get_ticks_per_second(), Delayed_resume, NULL );
    9797  directive_failed( status, "rtems_timer_server_fire_after" );
    9898
    9999  puts( "TA1 - rtems_timer_server_fire_after - timer 2 in 60 seconds" );
    100100  status = rtems_timer_server_fire_after(
    101     tmid2, 60 * TICKS_PER_SECOND, Delayed_resume, NULL );
     101    tmid2, 60 * rtems_clock_get_ticks_per_second(), Delayed_resume, NULL );
    102102  directive_failed( status, "rtems_timer_server_fire_after" );
    103103
     
    109109
    110110  puts( "TA1 - rtems_task_wake_after - 1 second" );
    111   status = rtems_task_wake_after( 1 * TICKS_PER_SECOND );
     111  status = rtems_task_wake_after( 1 * rtems_clock_get_ticks_per_second() );
    112112  directive_failed( status, "rtems_timer_wake_after" );
    113113
    114114  puts( "TA1 - rtems_timer_server_fire_after - timer 2 in 60 seconds" );
    115115  status = rtems_timer_server_fire_after(
    116     tmid2, 60 * TICKS_PER_SECOND, Delayed_resume, NULL );
     116    tmid2, 60 * rtems_clock_get_ticks_per_second(), Delayed_resume, NULL );
    117117  directive_failed( status, "rtems_timer_server_fire_after" );
    118118
     
    127127
    128128  puts( "TA1 - rtems_task_wake_after - 1 second" );
    129   status = rtems_task_wake_after( 1 * TICKS_PER_SECOND );
     129  status = rtems_task_wake_after( 1 * rtems_clock_get_ticks_per_second() );
    130130  directive_failed( status, "rtems_timer_wake_after" );
    131131
    132132  puts( "TA1 - rtems_timer_server_fire_after - timer 2 in 60 seconds" );
    133133  status = rtems_timer_server_fire_after(
    134     tmid2, 60 * TICKS_PER_SECOND, Delayed_resume, NULL );
     134    tmid2, 60 * rtems_clock_get_ticks_per_second(), Delayed_resume, NULL );
    135135  directive_failed( status, "rtems_timer_server_fire_after" );
    136136
     
    159159  status = rtems_timer_server_fire_after(
    160160    tmid,
    161     3 * TICKS_PER_SECOND,
     161    3 * rtems_clock_get_ticks_per_second(),
    162162    Delayed_resume,
    163163    NULL
     
    176176  status = rtems_timer_server_fire_after(
    177177    tmid,
    178     3 * TICKS_PER_SECOND,
     178    3 * rtems_clock_get_ticks_per_second(),
    179179    Delayed_resume,
    180180    NULL
     
    183183
    184184  puts( "TA1 - rtems_task_wake_after - 1 second" );
    185   status = rtems_task_wake_after( 1 * TICKS_PER_SECOND );
     185  status = rtems_task_wake_after( 1 * rtems_clock_get_ticks_per_second() );
    186186  directive_failed( status, "rtems_task_wake_after" );
    187187
     
    216216  status = rtems_timer_server_fire_after(
    217217    tmid,
    218     3 * TICKS_PER_SECOND,
     218    3 * rtems_clock_get_ticks_per_second(),
    219219    Delayed_resume,
    220220    NULL
     
    257257
    258258  puts( "TA1 - rtems_task_wake_after - 1 second" );
    259   status = rtems_task_wake_after( 1 * TICKS_PER_SECOND );
     259  status = rtems_task_wake_after( 1 * rtems_clock_get_ticks_per_second() );
    260260  directive_failed( status, "rtems_task_wake_after" );
    261261
  • testsuites/sptests/sp33/init.c

    r99f09711 r1f7ee02  
    169169
    170170  puts( "Delay to let Waiters block" );
    171   status = rtems_task_wake_after( TICKS_PER_SECOND );
     171  status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
    172172  directive_failed(status, "rtems_task_wake_after");
    173173
     
    183183
    184184  puts( "Delay to let Waiters print a message" );
    185   status = rtems_task_wake_after( TICKS_PER_SECOND );
     185  status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
    186186  directive_failed(status, "rtems_task_wake_after");
    187187
     
    206206
    207207  puts( "Delay to let Waiters block" );
    208   status = rtems_task_wake_after( TICKS_PER_SECOND );
     208  status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
    209209  directive_failed(status, "rtems_task_wake_after");
    210210
     
    214214
    215215  puts( "Delay to let Waiters print a message" );
    216   status = rtems_task_wake_after( TICKS_PER_SECOND );
     216  status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
    217217  directive_failed(status, "rtems_task_wake_after");
    218218
     
    244244
    245245  puts( "Delay to let task wait on barrier" );
    246   status = rtems_task_wake_after( TICKS_PER_SECOND );
     246  status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
    247247  directive_failed(status, "rtems_task_wake_after");
    248248
  • testsuites/sptests/sp45/init.c

    r99f09711 r1f7ee02  
    4141
    4242  puts( "TSR: delaying with rtems_task_wake_after" );
    43   status = rtems_task_wake_after( TICKS_PER_SECOND / 2 );
     43  status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() / 2 );
    4444  directive_failed( status, "rtems_task_wake_after" );
    4545}
     
    8686  status = rtems_timer_server_fire_after(
    8787    Timer_id[ 1 ],
    88     1 * TICKS_PER_SECOND,
     88    1 * rtems_clock_get_ticks_per_second(),
    8989    Malloc_From_TSR,
    9090    NULL
     
    9393
    9494  puts( "TA1 - rtems_task_wake_after - 2 second" );
    95   status = rtems_task_wake_after( 2 * TICKS_PER_SECOND );
     95  status = rtems_task_wake_after( 2 * rtems_clock_get_ticks_per_second() );
    9696  directive_failed( status, "rtems_task_wake_after" );
    9797
  • testsuites/sptests/sp46/init.c

    r99f09711 r1f7ee02  
    9494  rtems_cpu_usage_reset();
    9595
    96   status = rtems_task_wake_after( TICKS_PER_SECOND );
     96  status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
    9797  directive_failed( status, "rtems_task_wake_after" );
    9898
  • testsuites/sptests/sp50/init.c

    r99f09711 r1f7ee02  
    2424  sc = rtems_timer_server_fire_after(
    2525    id,
    26     get_ticks_per_second(),
     26    rtems_clock_get_ticks_per_second(),
    2727    Timer_Routine,
    2828    NULL
  • testsuites/sptests/spintrcritical06/init.c

    r99f09711 r1f7ee02  
    143143#define CONFIGURE_MAXIMUM_TIMERS      1
    144144#define CONFIGURE_MAXIMUM_SEMAPHORES  1
    145 #define CONFIGURE_MICROSECONDS_PER_TICK  1000
    146145#define CONFIGURE_INIT_TASK_PRIORITY  INIT_PRIORITY
    147146#define CONFIGURE_INIT_TASK_MODE      RTEMS_PREEMPT
  • testsuites/sptests/spwatchdog/task1.c

    r99f09711 r1f7ee02  
    4242  status = rtems_timer_fire_after(
    4343    tmid,
    44     3 * TICKS_PER_SECOND,
     44    3 * rtems_clock_get_ticks_per_second(),
    4545    Delayed_resume,
    4646    NULL
     
    5959  status = rtems_timer_fire_after(
    6060    tmid,
    61     3 * TICKS_PER_SECOND,
     61    3 * rtems_clock_get_ticks_per_second(),
    6262    Delayed_resume,
    6363    NULL
     
    6666
    6767  puts( "TA1 - rtems_task_wake_after - 1 second" );
    68   status = rtems_task_wake_after( 1 * TICKS_PER_SECOND );
     68  status = rtems_task_wake_after( 1 * rtems_clock_get_ticks_per_second() );
    6969  directive_failed( status, "rtems_task_wake_after" );
    7070
     
    103103  status = rtems_timer_fire_after(
    104104    tmid,
    105     3 * TICKS_PER_SECOND,
     105    3 * rtems_clock_get_ticks_per_second(),
    106106    Delayed_resume,
    107107    NULL
     
    144144
    145145  puts( "TA1 - rtems_task_wake_after - 1 second" );
    146   status = rtems_task_wake_after( 1 * TICKS_PER_SECOND );
     146  status = rtems_task_wake_after( 1 * rtems_clock_get_ticks_per_second() );
    147147  directive_failed( status, "rtems_task_wake_after" );
    148148
Note: See TracChangeset for help on using the changeset viewer.