Changeset 78287f41 in rtems


Ignore:
Timestamp:
03/27/02 17:35:15 (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
337d369
Parents:
9b02fa65
Message:

2002-03-27 Eric Norum <eric.norum@…>

  • PR161
  • rtmon.t: Add rtems_ prefix to directives in the example.
Location:
doc/user
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • doc/user/ChangeLog

    r9b02fa65 r78287f41  
     12002-03-27      Eric Norum <eric.norum@usask.ca>
     2
     3        * PR161
     4        * rtmon.t: Add rtems_ prefix to directives in the example.
     5
    162002-03-22      Chris Johns <ccj@acm.org>
    27
  • doc/user/rtmon.t

    r9b02fa65 r78287f41  
    724724  name = rtems_build_name( 'P', 'E', 'R', 'D' );
    725725
    726   status = rate_monotonic_create( name, &period );
     726  status = rtems_rate_monotonic_create( name, &period );
    727727  if ( status != RTEMS_STATUS_SUCCESSFUL ) @{
    728728    printf( "rtems_monotonic_create failed with status of %d.\n", rc );
     
    732732
    733733  while ( 1 ) @{
    734     if ( rate_monotonic_period( period, 100 ) == RTEMS_TIMEOUT )
     734    if ( rtems_rate_monotonic_period( period, 100 ) == RTEMS_TIMEOUT )
    735735      break;
    736736
     
    740740  /* missed period so delete period and SELF */
    741741
    742   status = rate_monotonic_delete( period );
     742  status = rtems_rate_monotonic_delete( period );
    743743  if ( status != RTEMS_STATUS_SUCCESSFUL ) @{
    744     printf( "rate_monotonic_delete failed with status of %d.\n", status );
     744    printf( "rtems_rate_monotonic_delete failed with status of %d.\n", status );
    745745    exit( 1 );
    746746  @}
     
    787787  name_2 = rtems_build_name( 'P', 'E', 'R', '2' );
    788788
    789   (void ) rate_monotonic_create( name_1, &period_1 );
    790   (void ) rate_monotonic_create( name_2, &period_2 );
     789  (void ) rtems_rate_monotonic_create( name_1, &period_1 );
     790  (void ) rtems_rate_monotonic_create( name_2, &period_2 );
    791791
    792792  while ( 1 ) @{
    793     if ( rate_monotonic_period( period_1, 100 ) == TIMEOUT )
     793    if ( rtems_rate_monotonic_period( period_1, 100 ) == TIMEOUT )
    794794      break;
    795795
    796     if ( rate_monotonic_period( period_2, 40 ) == TIMEOUT )
     796    if ( rtems_rate_monotonic_period( period_2, 40 ) == TIMEOUT )
    797797      break;
    798798
     
    802802     */
    803803
    804     if ( rate_monotonic_period( period_2, 30 ) == TIMEOUT )
     804    if ( rtems_rate_monotonic_period( period_2, 30 ) == TIMEOUT )
    805805      break;
    806806
     
    812812     */
    813813
    814     if ( rate_monotonic_period( period_2, STATUS ) == TIMEOUT )
     814    if ( rtems_rate_monotonic_period( period_2, STATUS ) == TIMEOUT )
    815815      break;
    816816
    817     (void) rate_monotonic_cancel( period_2 );
     817    (void) rtems_rate_monotonic_cancel( period_2 );
    818818  @}
    819819
    820820  /* missed period so delete period and SELF */
    821821
    822   (void ) rate_monotonic_delete( period_1 );
    823   (void ) rate_monotonic_delete( period_2 );
     822  (void ) rtems_rate_monotonic_delete( period_1 );
     823  (void ) rtems_rate_monotonic_delete( period_2 );
    824824  (void ) task_delete( SELF );
    825825@}
Note: See TracChangeset for help on using the changeset viewer.