Changeset 78287f41 in rtems
- Timestamp:
- 03/27/02 17:35:15 (22 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 337d369
- Parents:
- 9b02fa65
- Location:
- doc/user
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/user/ChangeLog
r9b02fa65 r78287f41 1 2002-03-27 Eric Norum <eric.norum@usask.ca> 2 3 * PR161 4 * rtmon.t: Add rtems_ prefix to directives in the example. 5 1 6 2002-03-22 Chris Johns <ccj@acm.org> 2 7 -
doc/user/rtmon.t
r9b02fa65 r78287f41 724 724 name = rtems_build_name( 'P', 'E', 'R', 'D' ); 725 725 726 status = r ate_monotonic_create( name, &period );726 status = rtems_rate_monotonic_create( name, &period ); 727 727 if ( status != RTEMS_STATUS_SUCCESSFUL ) @{ 728 728 printf( "rtems_monotonic_create failed with status of %d.\n", rc ); … … 732 732 733 733 while ( 1 ) @{ 734 if ( r ate_monotonic_period( period, 100 ) == RTEMS_TIMEOUT )734 if ( rtems_rate_monotonic_period( period, 100 ) == RTEMS_TIMEOUT ) 735 735 break; 736 736 … … 740 740 /* missed period so delete period and SELF */ 741 741 742 status = r ate_monotonic_delete( period );742 status = rtems_rate_monotonic_delete( period ); 743 743 if ( status != RTEMS_STATUS_SUCCESSFUL ) @{ 744 printf( "r ate_monotonic_delete failed with status of %d.\n", status );744 printf( "rtems_rate_monotonic_delete failed with status of %d.\n", status ); 745 745 exit( 1 ); 746 746 @} … … 787 787 name_2 = rtems_build_name( 'P', 'E', 'R', '2' ); 788 788 789 (void ) r ate_monotonic_create( name_1, &period_1 );790 (void ) r ate_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 ); 791 791 792 792 while ( 1 ) @{ 793 if ( r ate_monotonic_period( period_1, 100 ) == TIMEOUT )793 if ( rtems_rate_monotonic_period( period_1, 100 ) == TIMEOUT ) 794 794 break; 795 795 796 if ( r ate_monotonic_period( period_2, 40 ) == TIMEOUT )796 if ( rtems_rate_monotonic_period( period_2, 40 ) == TIMEOUT ) 797 797 break; 798 798 … … 802 802 */ 803 803 804 if ( r ate_monotonic_period( period_2, 30 ) == TIMEOUT )804 if ( rtems_rate_monotonic_period( period_2, 30 ) == TIMEOUT ) 805 805 break; 806 806 … … 812 812 */ 813 813 814 if ( r ate_monotonic_period( period_2, STATUS ) == TIMEOUT )814 if ( rtems_rate_monotonic_period( period_2, STATUS ) == TIMEOUT ) 815 815 break; 816 816 817 (void) r ate_monotonic_cancel( period_2 );817 (void) rtems_rate_monotonic_cancel( period_2 ); 818 818 @} 819 819 820 820 /* missed period so delete period and SELF */ 821 821 822 (void ) r ate_monotonic_delete( period_1 );823 (void ) r ate_monotonic_delete( period_2 );822 (void ) rtems_rate_monotonic_delete( period_1 ); 823 (void ) rtems_rate_monotonic_delete( period_2 ); 824 824 (void ) task_delete( SELF ); 825 825 @}
Note: See TracChangeset
for help on using the changeset viewer.