Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Revision:
119:ee6a53069455
Child:
120:770f00554b1e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/clock.h	Thu Apr 30 15:42:41 2015 +0000
@@ -0,0 +1,35 @@
+#ifndef __CLOCK_H__
+#define __CLOCK_H__
+
+#include <stdlib.h>
+#include <stdint.h>
+#include <string.h>
+#include "mbed.h"
+#include "EthernetInterface.h"
+#include "debug.h"
+#include "locale.h"
+
+extern time_t current_time;
+
+extern UDPSocket clock_sock;
+
+extern Endpoint clock_server;
+
+extern Timer external_time;
+
+const uint16_t EXTERNAL_TIME_REQUEST_WAIT_SECONDS = 10;//300;
+
+int request_clock_to_server( void );
+
+int check_clock( void );
+
+int update_clock( void );
+
+int init_clock ( void );
+
+int clock_sock_reconnect ( void );
+
+void print_clock ( uint8_t * buffer );
+
+int show_clock ( void );
+#endif
\ No newline at end of file