diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-03-27 17:35:15 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-03-27 17:35:15 +0000 |
commit | 78287f414d9f5d088f38d0f207c189c6830dabb0 (patch) | |
tree | 41e0eda573640699403ea84ec84d16b7ac4174f4 /doc/user/rtmon.t | |
parent | 2002-03-27 Thomas.Doerfler@imd-systems.de (diff) | |
download | rtems-78287f414d9f5d088f38d0f207c189c6830dabb0.tar.bz2 |
2002-03-27 Eric Norum <eric.norum@usask.ca>
* PR161
* rtmon.t: Add rtems_ prefix to directives in the example.
Diffstat (limited to 'doc/user/rtmon.t')
-rw-r--r-- | doc/user/rtmon.t | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/doc/user/rtmon.t b/doc/user/rtmon.t index 83915270c0..23dd21fdcf 100644 --- a/doc/user/rtmon.t +++ b/doc/user/rtmon.t @@ -723,7 +723,7 @@ rtems_task Periodic_task(rtems_task_argument arg) name = rtems_build_name( 'P', 'E', 'R', 'D' ); - status = rate_monotonic_create( name, &period ); + status = rtems_rate_monotonic_create( name, &period ); if ( status != RTEMS_STATUS_SUCCESSFUL ) @{ printf( "rtems_monotonic_create failed with status of %d.\n", rc ); exit( 1 ); @@ -731,7 +731,7 @@ rtems_task Periodic_task(rtems_task_argument arg) while ( 1 ) @{ - if ( rate_monotonic_period( period, 100 ) == RTEMS_TIMEOUT ) + if ( rtems_rate_monotonic_period( period, 100 ) == RTEMS_TIMEOUT ) break; /* Perform some periodic actions */ @@ -739,9 +739,9 @@ rtems_task Periodic_task(rtems_task_argument arg) /* missed period so delete period and SELF */ - status = rate_monotonic_delete( period ); + status = rtems_rate_monotonic_delete( period ); if ( status != RTEMS_STATUS_SUCCESSFUL ) @{ - printf( "rate_monotonic_delete failed with status of %d.\n", status ); + printf( "rtems_rate_monotonic_delete failed with status of %d.\n", status ); exit( 1 ); @} @@ -786,14 +786,14 @@ rtems_task Periodic_task(rtems_task_argument arg) name_1 = rtems_build_name( 'P', 'E', 'R', '1' ); name_2 = rtems_build_name( 'P', 'E', 'R', '2' ); - (void ) rate_monotonic_create( name_1, &period_1 ); - (void ) rate_monotonic_create( name_2, &period_2 ); + (void ) rtems_rate_monotonic_create( name_1, &period_1 ); + (void ) rtems_rate_monotonic_create( name_2, &period_2 ); while ( 1 ) @{ - if ( rate_monotonic_period( period_1, 100 ) == TIMEOUT ) + if ( rtems_rate_monotonic_period( period_1, 100 ) == TIMEOUT ) break; - if ( rate_monotonic_period( period_2, 40 ) == TIMEOUT ) + if ( rtems_rate_monotonic_period( period_2, 40 ) == TIMEOUT ) break; /* @@ -801,7 +801,7 @@ rtems_task Periodic_task(rtems_task_argument arg) * ticks 0 and 39 of every 100 ticks. */ - if ( rate_monotonic_period( period_2, 30 ) == TIMEOUT ) + if ( rtems_rate_monotonic_period( period_2, 30 ) == TIMEOUT ) break; /* @@ -811,16 +811,16 @@ rtems_task Periodic_task(rtems_task_argument arg) * Check to make sure we didn't miss the period_2 period. */ - if ( rate_monotonic_period( period_2, STATUS ) == TIMEOUT ) + if ( rtems_rate_monotonic_period( period_2, STATUS ) == TIMEOUT ) break; - (void) rate_monotonic_cancel( period_2 ); + (void) rtems_rate_monotonic_cancel( period_2 ); @} /* missed period so delete period and SELF */ - (void ) rate_monotonic_delete( period_1 ); - (void ) rate_monotonic_delete( period_2 ); + (void ) rtems_rate_monotonic_delete( period_1 ); + (void ) rtems_rate_monotonic_delete( period_2 ); (void ) task_delete( SELF ); @} @end example |