manu jose
/
1hourMaster
Master 1 hr . takes input form the serial connection of PC
decl.h
- Committer:
- manujose
- Date:
- 2010-12-04
- Revision:
- 0:219eacd4c264
File content as of revision 0:219eacd4c264:
#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