[rtems-examples commit] classic_api/triple_period/tasks.c: Clean up formatting

Joel Sherrill joel at rtems.org
Thu Feb 24 23:04:33 UTC 2022


Module:    rtems-examples
Branch:    master
Commit:    1c2dfe6a6ff39053e88aebc6c5806df66be0f89a
Changeset: http://git.rtems.org/rtems-examples/commit/?id=1c2dfe6a6ff39053e88aebc6c5806df66be0f89a

Author:    Joel Sherrill <joel at rtems.org>
Date:      Fri Aug 20 15:59:01 2021 -0500

classic_api/triple_period/tasks.c: Clean up formatting

---

 classic_api/triple_period/tasks.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/classic_api/triple_period/tasks.c b/classic_api/triple_period/tasks.c
index b2aec61..0e29d0c 100644
--- a/classic_api/triple_period/tasks.c
+++ b/classic_api/triple_period/tasks.c
@@ -6,13 +6,13 @@
  *  found in the file LICENSE in this distribution or at
  *  http://www.rtems.com/license/LICENSE.
  */
-/*  updated for triple test, 20003/11/06, Erik Adli */
+/*  updated for triple test, 2003/11/06, Erik Adli */
 
 #include "system.h"
 #include <stdio.h>
 #include <stdlib.h>
 
-/* CPU usage and Rate monotonic manger statistics */
+/* CPU usage and Rate Monotonic manager statistics */
 #include "rtems/cpuuse.h"
 
 // Periods for the various tasks [seconds]
@@ -67,7 +67,8 @@ rtems_task Task_Absolute_Period(
     time.hour   = 9;
     time.minute = 0;
     time.second = count * PERIOD_TASK_ABSOLUTE;  // Every  N1 seconds
-    time.ticks  = 0;                // NB!! 'ticks' is don't care ( = does not work); rtems_task_wait_when has granularity of 1 second ( "taskwakewhen.c" nullifies time.ticks )
+    time.ticks  = 0;    // 'ticks' is don't care.  rtems_task_wake_when() has a
+                        // granularity of 1 second and zeroes time.ticks
 
     status = rtems_task_wake_when( &time );
 



More information about the vc mailing list