Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
decl.h
00001 #ifndef _DECL_ 00002 #define _DECL_ 00003 //Variable declarations. 00004 00005 #define NUM_MICRO_SEC 1000000 00006 #define CLK_FREQUENCY 96000000 00007 #define CLK_FREQ_MICRO 96000000000000 00008 #define CLK_FRQ 96 00009 #define RESET_42 0xF0537000 00010 00011 typedef struct time_val { 00012 time_t tv_sec; 00013 time_t tv_usec; 00014 } timeval; 00015 //timeval global_time; 00016 #define QUEUE_MAX 100 00017 00018 00019 typedef signed long long llong; 00020 00021 Serial pc(USBTX, USBRX); 00022 Serial sync(p9,p10); 00023 Serial serial2(p13,p14); 00024 00025 00026 DigitalOut myLED(LED1); 00027 DigitalOut myled2(LED2); 00028 InterruptIn trig(p16); 00029 DigitalOut toggle(p16); 00030 Ticker synch; 00031 00032 //FUNCTION DECLARATION 00033 int startTimer(void); 00034 int curTimeEqualGR(timeval *tv); 00035 void(*gtrigFunc)(timeval *tv); 00036 void Timer0_IRQHandler(void); 00037 void getTime(timeval *tv); 00038 00039 00040 #endif
Generated on Mon Jul 25 2022 07:15:08 by
1.7.2