|
typedef unsigned char byte;
typedef unsigned char uchar;
typedef unsigned int word;
typedef unsigned int uint;
typedef unsigned long dword;
typedef unsigned long ulong;
typedef bit bool;
typedef unsigned char BYTE;
typedef unsigned int WORD;
typedef unsigned long DWORD;
#define hi(x) ( ( (u16)(x) ) >> 8)
#define lo(x) (u8)(x)
#define min(a,b) (((a)<(b))?(a):(b))
#define max(a,b) (((a)>(b))?(a):(b))
typedef word idata _word;
typedef byte idata _byte;
#define Xbyte (( byte volatile xdata*) 0)
#define Xword (( word volatile xdata*) 0)
#define makeLH(L,H) (((word)(H)<<8) | (word)(L))
#define makeHL(H,L) (((word)(H)<<8) | (word)(L))
#define OnePulse() \
bitP1_1 = 1;\
bitP1_1 = 0
Ну и в таком духе...
E-mail: info@telesys.ru