Changeset e5d3dd6 in rtems


Ignore:
Timestamp:
Jul 1, 2009, 6:40:39 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
c7b38ba
Parents:
f9ff8ce
Message:

2009-07-01 Joel Sherrill <joel.sherrill@…>

  • sp01/task1.c: Use RTEMS_MILLISECONDS_TO_TICKS to improve coverage.
Location:
testsuites/sptests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/ChangeLog

    rf9ff8ce re5d3dd6  
     12009-07-01      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * sp01/task1.c: Use RTEMS_MILLISECONDS_TO_TICKS to improve coverage.
     4
    152009-06-24      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • testsuites/sptests/sp01/task1.c

    rf9ff8ce re5d3dd6  
    2828  rtems_time_of_day time;
    2929  rtems_status_code status;
     30  rtems_interval    ticks;
    3031
    3132  status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid );
    3233  directive_failed( status, "rtems_task_ident" );
    3334
     35  ticks = RTEMS_MILLISECONDS_TO_TICKS( task_number( tid ) * 5 * 1000 );
    3436  while( FOREVER ) {
    3537    status = rtems_clock_get( RTEMS_CLOCK_GET_TOD, &time );
     
    4446    print_time( " - rtems_clock_get - ", &time, "\n" );
    4547
    46     status = rtems_task_wake_after( task_number( tid ) * 5 * TICKS_PER_SECOND );
     48    status = rtems_task_wake_after( ticks );
    4749    directive_failed( status, "rtems_task_wake_after" );
    4850  }
Note: See TracChangeset for help on using the changeset viewer.