Changeset 99f09711 in rtems


Ignore:
Timestamp:
Aug 12, 2009, 8:50:38 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
1f7ee02
Parents:
c9460e1
Message:

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

  • cdtest/main.cc, fileio/init.c, fileio/system.h, pppd/pppdapp.c, ticker/system.h, ticker/tasks.c: Eliminate test routines TICKS_PER_SECOND and get_ticks_per_second() in favor of new rtems_clock_get_ticks_per_second().
Location:
testsuites/samples
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • testsuites/samples/ChangeLog

    rc9460e1 r99f09711  
     12009-08-12      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * cdtest/main.cc, fileio/init.c, fileio/system.h, pppd/pppdapp.c,
     4        ticker/system.h, ticker/tasks.c: Eliminate test routines
     5        TICKS_PER_SECOND and get_ticks_per_second() in favor of new
     6        rtems_clock_get_ticks_per_second().
     7
    182009-08-10      Joel Sherrill <joel.sherrill@oarcorp.com>
    29
  • testsuites/samples/cdtest/main.cc

    rc9460e1 r99f09711  
    153153#endif
    154154    bar = blech;
    155     rtems_task_wake_after( 5 * get_ticks_per_second() );
     155    rtems_task_wake_after( 5 * rtems_clock_get_ticks_per_second() );
    156156}
    157157
     
    212212    }
    213213    printf( "Exceptions are working properly.\n" );
    214     rtems_task_wake_after( 5 * get_ticks_per_second() );
     214    rtems_task_wake_after( 5 * rtems_clock_get_ticks_per_second() );
    215215    printf( "Global Dtors should be called after this line....\n" );
    216216    exit(0);
  • testsuites/samples/fileio/init.c

    rc9460e1 r99f09711  
    297297    close(fd);
    298298
    299     rtems_clock_get(RTEMS_CLOCK_GET_TICKS_PER_SECOND, &ticks_per_sec);
     299    ticks_per_sec = rtems_clock_get_ticks_per_second();
    300300    printf("time elapsed for read:  %g seconds\n",
    301301           ((double)curr_tick-start_tick)/ticks_per_sec);
     
    362362   * get number of ticks per second
    363363   */
    364   rtems_clock_get(RTEMS_CLOCK_GET_TICKS_PER_SECOND, &ticks_per_sec);
     364  ticks_per_sec = rtems_clock_get_ticks_per_second();
    365365
    366366  /*
     
    521521   * get number of ticks per second
    522522   */
    523   rtems_clock_get(RTEMS_CLOCK_GET_TICKS_PER_SECOND, &ticks_per_sec);
     523  ticks_per_sec = rtems_clock_get_ticks_per_second();
    524524
    525525  /*
  • testsuites/samples/fileio/system.h

    rc9460e1 r99f09711  
    102102
    103103/*
    104  *  static inline routine to make obtaining ticks per second easier.
    105  */
    106 
    107 static inline uint32_t   get_ticks_per_second( void )
    108 {
    109   return rtems_clock_get_ticks_per_second();
    110 }
    111 
    112 
    113 /*
    114104 *  This allows us to view the "Test_task" instantiations as a set
    115105 *  of numbered tasks by eliminating the number of application
  • testsuites/samples/pppd/pppdapp.c

    rc9460e1 r99f09711  
    9191
    9292  /* initialize ticks per second */
    93   rtems_clock_get(RTEMS_CLOCK_GET_TICKS_PER_SECOND, &tickspersecond);
     93  tickspersecond = rtems_clock_get_ticks_per_second();
    9494  if ( tickspersecond == 0 ) {
    9595    /* ensure value is greater than zero */
  • testsuites/samples/ticker/system.h

    rc9460e1 r99f09711  
    44 *  function in the test set.
    55 *
    6  *  COPYRIGHT (c) 1989-2008.
     6 *  COPYRIGHT (c) 1989-2009.
    77 *  On-Line Applications Research Corporation (OAR).
    88 *
     
    9090
    9191/*
    92  *  static inline routine to make obtaining ticks per second easier.
    93  */
    94 
    95 static inline uint32_t   get_ticks_per_second( void )
    96 {
    97   return rtems_clock_get_ticks_per_second();
    98 }
    99 
    100 /*
    10192 *  This allows us to view the "Test_task" instantiations as a set
    10293 *  of numbered tasks by eliminating the number of application
  • testsuites/samples/ticker/tasks.c

    rc9460e1 r99f09711  
    88 *  Output parameters:  NONE
    99 *
    10  *  COPYRIGHT (c) 1989-1999.
     10 *  COPYRIGHT (c) 1989-2009.
    1111 *  On-Line Applications Research Corporation (OAR).
    1212 *
     
    3939    put_name( Task_name[ task_index ], FALSE );
    4040    print_time( " - rtems_clock_get_tod - ", &time, "\n" );
    41     status = rtems_task_wake_after( task_index * 5 * get_ticks_per_second() );
     41    status = rtems_task_wake_after(
     42      task_index * 5 * rtems_clock_get_ticks_per_second() );
    4243  }
    4344}
Note: See TracChangeset for help on using the changeset viewer.