[PATCH rtems-examples 07/23] classic_api/triple_period/tasks.c: Clean up formatting
Joel Sherrill
joel at rtems.org
Wed Feb 23 22:21:35 UTC 2022
---
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 );
--
1.8.3.1
More information about the devel
mailing list