Fork of the official mbed C/C++ SDK provides the software platform and libraries to build your applications. The fork has the documentation converted to Doxygen format

Dependents:   NervousPuppySprintOne NervousPuppySprint2602 Robot WarehouseBot1 ... more

Fork of mbed by mbed official

Revision:
10:fcb9359f0959
Parent:
5:62573be585e9
--- a/rtc.h	Wed Apr 15 14:15:04 2009 +0000
+++ b/rtc.h	Thu May 14 14:44:00 2009 +0000
@@ -7,6 +7,8 @@
 
 #include <time.h>
 
+using namespace std;
+
 #ifdef __ARMCC_VERSION
 
 typedef unsigned long clockid_t;
@@ -24,6 +26,8 @@
 
 extern "C" {
 
+namespace std {
+
 /* Function: time
  *  Returns the number of seconds since the epoch (00:00:00 UTC,
  *  January 1, 1970), and also stores the return value in the address
@@ -31,17 +35,20 @@
  */
 time_t time(time_t *timer);
 
+/* Function: stime
+ *  Sets the current time, measured in seconds since the epoch, using
+ *  the value pointed to by timer.
+ */
+void stime(const time_t *timer);
+
+}
+
 /* Function: time_str
  *  Returns a pointer to a string representing the current time
  *  in human readable form, as generated by ctime()
  */
 char *time_str();
 
-/* Function: stime
- *  Sets the current time, measured in seconds since the epoch, using
- *  the value pointed to by timer.
- */
-void stime(const time_t *timer);
 
 /* Function: set_time
  *  Sets the current time, specifying year through to day