summaryrefslogtreecommitdiffstats
path: root/classic_api
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2021-08-20 15:59:01 -0500
committerJoel Sherrill <joel@rtems.org>2022-02-23 08:54:36 -0600
commit1c2dfe6a6ff39053e88aebc6c5806df66be0f89a (patch)
treee583f7eedf85e81ab8485b62532c9fbd6b43c3c4 /classic_api
parentcxx_throw/wscript: Fix comment (diff)
downloadrtems-examples-1c2dfe6a6ff39053e88aebc6c5806df66be0f89a.tar.bz2
classic_api/triple_period/tasks.c: Clean up formatting
Diffstat (limited to 'classic_api')
-rw-r--r--classic_api/triple_period/tasks.c7
1 files 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 );