|
Mobil_surveillance_system 1
|
00001 #ifndef TIME_H_ 00002 #define TIME_H_ 00003 00005 00012 #include "Interrupts.h" // due to: Interrupts_setTimerA_ISRCallbackfunction function 00013 00014 //***************************************************************************** 00015 // 00016 // Types and definitons 00017 // 00018 //***************************************************************************** 00019 00020 // Definitions 00021 00023 #define SECOND 1 00024 00026 #define MINUTE (SECOND * 60) 00027 00029 #define HOUR (MINUTE * 60) 00030 00031 // My types 00032 00033 #ifndef DEFINE_TBOOLEAN // define unsigned char as tBoolean in only that case when it hasn't been defined yet somewhere else in the scope 00034 00036 typedef unsigned char tBoolean; // use as bool 00037 #define DEFINE_TBOOLEAN 00038 00039 #endif // DEFINE_TBOOLEAN 00040 00042 typedef unsigned long tDateTime; 00043 00044 00045 //***************************************************************************** 00046 // 00047 // Functions deklarations 00048 // 00049 //***************************************************************************** 00050 00052 void Time_initSystemDateTime(void); 00053 00055 void Time_getCurrentDateTime(tDateTime* psDateTime); 00056 00060 void Time_adjustCurrentDateTime(void); 00061 00062 #endif /*TIME_H_*/
1.7.4