summaryrefslogtreecommitdiffstats
path: root/doc/user
diff options
context:
space:
mode:
Diffstat (limited to 'doc/user')
-rw-r--r--doc/user/ChangeLog5
-rw-r--r--doc/user/rtmon.t26
2 files changed, 18 insertions, 13 deletions
diff --git a/doc/user/ChangeLog b/doc/user/ChangeLog
index 73bda085a6..f789cba882 100644
--- a/doc/user/ChangeLog
+++ b/doc/user/ChangeLog
@@ -1,3 +1,8 @@
+2002-03-27 Eric Norum <eric.norum@usask.ca>
+
+ * PR161
+ * rtmon.t: Add rtems_ prefix to directives in the example.
+
2002-03-22 Chris Johns <ccj@acm.org>
* io.t, conf.t: PR 160. Added the IO Manager's register and
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