summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/include/rtems
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-02 19:11:16 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-02 19:11:16 +0000
commit07e07437c46accefd5fe21dc7f62b59385c4021a (patch)
tree222250e5aac51ea2c672d99edac3ff8d6775ddd8 /cpukit/posix/include/rtems
parent*** empty log message *** (diff)
downloadrtems-07e07437c46accefd5fe21dc7f62b59385c4021a.tar.bz2
Final tuning required to drop out POSIX timers.
Diffstat (limited to 'cpukit/posix/include/rtems')
-rw-r--r--cpukit/posix/include/rtems/posix/timer.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/cpukit/posix/include/rtems/posix/timer.h b/cpukit/posix/include/rtems/posix/timer.h
index 264a172d23..f8cbe48b73 100644
--- a/cpukit/posix/include/rtems/posix/timer.h
+++ b/cpukit/posix/include/rtems/posix/timer.h
@@ -5,6 +5,31 @@
#ifndef __RTEMS_POSIX_TIMERS_h
#define __RTEMS_POSIX_TIMERS_h
+/* ************
+ * Constants
+ * ************/
+
+#define STATE_FREE_C 0x01 /* Free position of the table of timers */
+#define STATE_CREATE_NEW_C 0x02 /* Created timer but not running */
+#define STATE_CREATE_RUN_C 0x03 /* Created timer and running */
+#define STATE_CREATE_STOP_C 0x04 /* Created, ran and stopped timer */
+#define MAX_NSEC_C 1000000000 /* Maximum number of nsec allowed */
+#define MIN_NSEC_C 0 /* Minimum number of nsec allowew */
+#define TIMER_RELATIVE_C 0 /* Indicates that the fire time is
+ * relative to the current one */
+#define SEC_TO_TICKS_C _TOD_Ticks_per_second /* Number of ticks in a second*/
+#define NSEC_PER_SEC_C 1000000000 /* Nanoseconds in a second */
+
+#define NO_MORE_TIMERS_C 11 /* There is not available timers */
+#define BAD_TIMER_C 11 /* The timer does not exist in the table */
+
+#define SECONDS_PER_YEAR_C ( 360 * 24 * 60 * 60 )
+#define SECONDS_PER_MONTH_C ( 30 * 24 * 60 * 60 )
+#define SECONDS_PER_DAY_C ( 24 * 60 * 60 )
+#define SECONDS_PER_HOUR_C ( 60 * 60 )
+#define SECONDS_PER_MINUTE_C ( 60 )
+
+
/*
* Data for a timer
*/