summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/shared/tod.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-07-30 21:27:51 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-07-30 21:27:51 +0000
commit509dc7c18d61e3994e47d87f4d4011aff0766559 (patch)
tree025ebadef26d5df9cdf69bb480462d0a5c23ff31 /c/src/lib/libbsp/shared/tod.h
parentChanged clock rate from 32 Khz to 1 Mhz. (diff)
downloadrtems-509dc7c18d61e3994e47d87f4d4011aff0766559.tar.bz2
Added getRealTime() and setRealTime().
Reimplemented checkRealTime() to use RTEMS internal routine.
Diffstat (limited to 'c/src/lib/libbsp/shared/tod.h')
-rw-r--r--c/src/lib/libbsp/shared/tod.h39
1 files changed, 32 insertions, 7 deletions
diff --git a/c/src/lib/libbsp/shared/tod.h b/c/src/lib/libbsp/shared/tod.h
index d51ceb23b9..725211e082 100644
--- a/c/src/lib/libbsp/shared/tod.h
+++ b/c/src/lib/libbsp/shared/tod.h
@@ -21,15 +21,40 @@
extern "C" {
#endif
-extern void setRealTimeToRTEMS();
-/* Read real time from RTC and set it to RTEMS' clock manager */
+/*
+ * Set the RTC.
+ */
+
+int setRealTime(
+ rtems_time_of_day *tod
+);
-extern void setRealTimeFromRTEMS();
-/* Read time from RTEMS' clock manager and set it to RTC */
+/*
+ * Get the time from the RTC.
+ */
+
+void getRealTime(
+ rtems_time_of_day *tod
+);
+
+/*
+ * Read real time from RTC and set it to RTEMS' clock manager
+ */
+
+void setRealTimeToRTEMS();
+
+/*
+ * Read time from RTEMS' clock manager and set it to RTC
+ */
+
+void setRealTimeFromRTEMS();
+
+/*
+ * Return the difference between RTC and RTEMS' clock manager time in minutes.
+ * If the difference is greater than 1 day, this returns 9999.
+ */
-extern int checkRealTime();
-/* Return the difference between RTC and RTEMS' clock manager time in minutes.
- If the difference is greater than 1 day, this returns 9999. */
+int checkRealTime();
#ifdef __cplusplus
}