Master 1 hr . takes input form the serial connection of PC

Dependencies:   mbed

Revision:
0:219eacd4c264
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/decl.h	Sat Dec 04 06:10:16 2010 +0000
@@ -0,0 +1,42 @@
+#ifndef _DECL_
+#define _DECL_
+//Variable declarations.
+
+#define NUM_MICRO_SEC 1000000
+#define CLK_FREQUENCY 96000000
+#define CLK_FREQ_MICRO 96000000000000
+#define CLK_FRQ  96
+#define RESET_42 0xF0537000
+
+typedef struct time_val {
+    time_t tv_sec;
+    time_t tv_usec;
+} timeval;
+//timeval global_time;
+#define QUEUE_MAX 100
+
+
+
+
+Serial pc(USBTX, USBRX);
+Serial sync(p9,p10);
+ Serial serial2(p13,p14); 
+ 
+InterruptIn trig(p29); 
+
+DigitalOut myled(LED1);
+DigitalOut myled2(LED2);
+DigitalOut toggle(p11);
+
+
+
+//FUNCTION DECLARATION
+int startTimer(void);
+int curTimeEqualGR(timeval *tv);
+void(*gtrigFunc)(timeval *tv);
+void Timer0_IRQHandler(void);
+void getTime(timeval *tv);
+void reportToggle(void);  
+
+
+#endif
\ No newline at end of file