Parallel Programming - Final version
[matches/honours.git] / research / TCS / apparatus / source_code / main.h
1 #ifndef _MAIN_H\r
2 #define _MAIN_H\r
3 \r
4 //Revisions number\r
5 #define SWHIGH  0\r
6 #define SWLOW   7\r
7 // mt\r
8 #define SWLOWLOW 5\r
9 \r
10 // main.h\r
11 \r
12 void Initialization(void);\r
13 \r
14 char BootFunc(char input);\r
15 char PowerSaveFunc(char input);\r
16 char AutoPower(char input);\r
17 char KeyClick(char input);\r
18 void Delay(unsigned int millisec);\r
19 \r
20 void OSCCAL_calibration(void);\r
21 \r
22 #define BOOL    unsigned char;\r
23 #ifndef FALSE\r
24 #define FALSE   0\r
25 #define TRUE    (!FALSE)\r
26 #endif\r
27 \r
28 typedef unsigned char uint8;\r
29 typedef unsigned int uint;\r
30 typedef unsigned long long int uint64;\r
31 typedef unsigned long int uint32;\r
32 \r
33 #ifndef NULL\r
34 // mt/ca:\r
35 // #define NULL    0\r
36 #define NULL ((void *)0)\r
37 #endif\r
38 \r
39 #define AUTO    3\r
40 \r
41 // Macro definitions\r
42 //mtA - \r
43 // sbi and cbi are not longer supported by the avr-libc\r
44 // to avoid version-conflicts the macro-names have been \r
45 // changed to sbiBF/cbiBF "everywhere"\r
46 #define sbiBF(port,bit)  (port |= (1<<bit))   //set bit in port\r
47 #define cbiBF(port,bit)  (port &= ~(1<<bit))  //clear bit in port\r
48 //mtE\r
49 \r
50 #endif //MAIN_H\r

UCC git Repository :: git.ucc.asn.au