00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef __INCLUDE_COMMON_H
00017 #define __INCLUDE_COMMON_H
00018
00019 #define FLL_DIV0 0x01
00020 #define FLL_DIV1 0x02
00021
00022 #define BTN1 (BIT4)
00023 #define BTN2 (BIT5)
00024 #define BTN3 (BIT6)
00025 #define BTN4 (BIT7)
00026 #define BTN_MASK (BTN1 | BTN2 | BTN3 | BTN4)
00027
00028 #define BTN_UP (BTN1)
00029 #define BTN_DOWN (BTN2)
00030 #define BTN_LEFT (BTN3)
00031 #define BTN_RIGHT (BTN4)
00032 #define BTN_QUIT (BTN3)
00033 #define BTN_OK (BTN4)
00034
00035 #define STATUS_LED (BIT3) //STATUS_LED - P1.3
00036 #define DALLAS (P2IN & BIT7) //P2.7 - DALLAS
00037
00038 #ifndef bool_t
00039 typedef char bool_t;
00040 #endif
00041 #ifndef TRUE
00042 #define TRUE 1
00043 #endif
00044 #ifndef FALSE
00045 #define FALSE 0
00046 #endif
00047
00048 void delay (unsigned int a);
00049 void delayX (unsigned int b);
00050
00051 #endif // __INCLUDE_COMMON_H