Changeset 05b9f81 in rtems


Ignore:
Timestamp:
Aug 10, 2009, 4:04:41 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
1875546
Parents:
c0e8da4
Message:

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

  • sp04/task1.c, sp09/screen02.c, sp09/screen04.c, sp09/sp09.scn, sp38/init.c: Convert calls to legacy routine rtems_clock_get( RTEMS_CLOCK_GET_xxx, ..) to rtems_clock_get_xxx().
Location:
testsuites/sptests
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/ChangeLog

    rc0e8da4 r05b9f81  
     12009-08-10      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * sp04/task1.c, sp09/screen02.c, sp09/screen04.c, sp09/sp09.scn,
     4        sp38/init.c: Convert calls to legacy routine rtems_clock_get(
     5        RTEMS_CLOCK_GET_xxx, ..) to rtems_clock_get_xxx().
     6
    172009-08-10      Joel Sherrill <joel.sherrill@oarcorp.com>
    28
  • testsuites/sptests/sp04/task1.c

    rc0e8da4 r05b9f81  
    5353  directive_failed( status, "rtems_task_suspend of TA3" );
    5454
    55   status = rtems_clock_get( RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH, &start_time );
    56   directive_failed( status, "rtems_clock_get_tod" );
     55  status = rtems_clock_get_seconds_since_epoch( &start_time );
     56  directive_failed( status, "rtems_clock_get_seconds_since_epoch" );
    5757
    5858  puts( "TA1 - killing time" );
    5959
    6060  for ( ; ; ) {
    61     status = rtems_clock_get( RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH, &end_time );
    62     directive_failed( status, "rtems_clock_get_tod" );
     61    status = rtems_clock_get_seconds_since_epoch( &end_time );
     62    directive_failed( status, "rtems_clock_get_seconds_since_epoch" );
    6363
    6464    if ( end_time > (start_time + 2) )
  • testsuites/sptests/sp09/screen02.c

    rc0e8da4 r05b9f81  
    4040      "rtems_clock_get_tod before clock is set #1"
    4141    );
    42     puts( "TA1 - rtems_clock_get_tod - TOD - RTEMS_NOT_DEFINED" );
    43   }
    44 
    45   status = rtems_clock_get( RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH, &interval );
    46   if ( status == RTEMS_SUCCESSFUL ) {
    47     puts(
    48      "TA1 - rtems_clock_get - RTEMS_NOT_DEFINED -- DID BSP SET THE TIME OF DAY?"
    49     );
    50   } else {
    51     fatal_directive_status(
    52       status,
    53       RTEMS_NOT_DEFINED,
    54       "rtems_clock_get before clock is set #2"
    55     );
    56     puts( "TA1 - rtems_clock_get - SECONDS SINCE EPOCH - RTEMS_NOT_DEFINED" );
    57   }
    58 
    59   status = rtems_clock_get( RTEMS_CLOCK_GET_TIME_VALUE, &tv );
    60   if ( status == RTEMS_SUCCESSFUL ) {
    61     puts(
    62      "TA1 - rtems_clock_get - RTEMS_NOT_DEFINED -- DID BSP SET THE TIME OF DAY?"
    63     );
    64   } else {
    65     fatal_directive_status(
    66       status,
    67       RTEMS_NOT_DEFINED,
    68       "rtems_clock_get before clock is set #3"
    69     );
    70     puts( "TA1 - rtems_clock_get - TIME VALUE - RTEMS_NOT_DEFINED" );
     42    puts( "TA1 - rtems_clock_get_tod - RTEMS_NOT_DEFINED" );
     43  }
     44
     45  status = rtems_clock_get_seconds_since_epoch( &interval );
     46  if ( status == RTEMS_SUCCESSFUL ) {
     47    puts(
     48     "TA1 - rtems_clock_get_seconds_since_epoch - RTEMS_NOT_DEFINED -- "
     49         "DID BSP SET THE TIME OF DAY?"
     50    );
     51  } else {
     52    fatal_directive_status(
     53      status,
     54      RTEMS_NOT_DEFINED,
     55      "rtems_clock_get_seconds_before_epoch"
     56    );
     57    puts( "TA1 - rtems_clock_get_seconds_since_epoch - RTEMS_NOT_DEFINED" );
     58  }
     59
     60  status = rtems_clock_get_tod_timeval( &tv );
     61  if ( status == RTEMS_SUCCESSFUL ) {
     62    puts(
     63     "TA1 - rtems_clock_get_tod_timeval - RTEMS_NOT_DEFINED -- "
     64         "DID BSP SET THE TIME OF DAY?"
     65    );
     66  } else {
     67    fatal_directive_status(
     68      status,
     69      RTEMS_NOT_DEFINED,
     70      "rtems_clock_get_timeval"
     71    );
     72    puts( "TA1 - rtems_clock_get_tod_timeval - RTEMS_NOT_DEFINED" );
    7173  }
    7274
  • testsuites/sptests/sp09/screen04.c

    rc0e8da4 r05b9f81  
    77 *  Output parameters:  NONE
    88 *
    9  *  COPYRIGHT (c) 1989-1999.
     9 *  COPYRIGHT (c) 1989-2009.
    1010 *  On-Line Applications Research Corporation (OAR).
    1111 *
     
    8585  puts( " - RTEMS_SUCCESSFUL" );
    8686
    87   status = rtems_clock_get( RTEMS_CLOCK_GET_TIME_VALUE, &tv );
    88   directive_failed( status, "clock_get time value OK" );
     87  status = rtems_clock_get_tod_timeval( &tv );
     88  directive_failed( status, "clock_get_tod_timeval OK" );
    8989
    9090  seconds = tv.tv_sec;
  • testsuites/sptests/sp09/sp09.scn

    rc0e8da4 r05b9f81  
    2323TA1 - rtems_task_suspend - RTEMS_INVALID_ID
    2424<pause - screen 2>
    25 TA1 - rtems_clock_get_tod - TOD - RTEMS_NOT_DEFINED
    26 TA1 - rtems_clock_get_tod - SECONDS SINCE EPOCH - RTEMS_NOT_DEFINED
    27 TA1 - rtems_clock_get_tod - TIME VALUE - RTEMS_NOT_DEFINED
    28 TA1 - rtems_clock_get_tod - RTEMS_INVALID_NUMBER
     25TA1 - rtems_clock_get_tod - RTEMS_NOT_DEFINED
     26TA1 - rtems_clock_get_second_since_epoch - RTEMS_NOT_DEFINED
     27TA1 - rtems_clock_get_tod_timeval - RTEMS_NOT_DEFINED
     28TA1 - rtems_clock_get - RTEMS_INVALID_NUMBER
    2929TA1 - rtems_task_wake_when - RTEMS_NOT_DEFINED
    3030TA1 - rtems_timer_fire_when - RTEMS_NOT_DEFINED
  • testsuites/sptests/sp38/init.c

    rc0e8da4 r05b9f81  
    6767   *  Get starting time
    6868   */
    69   status = rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &start );
    70   directive_failed( status, "rtems_clock_get start" );
     69  start = rtems_clock_get_ticks_since_boot();
    7170
    7271  status = rtems_signal_catch( signal_handler, RTEMS_DEFAULT_MODES );
     
    8382
    8483  while (1) {
    85     status = rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now );
    86     directive_failed( status, "rtems_clock_get now" );
     84    now = rtems_clock_get_ticks_since_boot();
    8785    if ( (now-start) > 100 ) {
    8886      puts( "Signal from ISR did not get processed\n" );
Note: See TracChangeset for help on using the changeset viewer.