?? globle.h
字號:
#ifndef GLOBLE_H__
#define GLOBLE_H__
#include<iom64v.h>
#define ADDR_H 5 //SLAVER ADDR
#define ADDR_L 6
#define HEAD 26 //THE LONGTH OF THE FRAME
#define EEPROM 0x09
#define SLAVER_ADDR 0x11
typedef unsigned char uchar;
typedef unsigned int uint;
#define ASCII 0 //select the data format
#define IP_VALUE 0x10 //串行中斷高優(yōu)先級
#define TMOD_VALUE 0x21 //T0十六位定時器,T1 波特率發(fā)生器
#define SCON_VALUE 0x50 //方式1,10位,能接收
#define PCON_VALUE 0x00 //單倍波特率
#define BAUD_VALUE 0xFA //22.1184MHz晶振,波特率設定植為9600
#define TH0_VALUE 0xB8 //T0定時10mS判斷信息幀結束
#define TL0_VALUE 0
#define T2CON_VALUE 0x00 //T2 act as 16 bit timer
#define RCAP2H_VALUE 0xf1//0xee //2ms定時
#define RCAP2L_VALUE 0x96//0x00
#define UART_COMPLETE 1
#define MOD_ADDR 1
#define UART_LEN 128
#define BIT_NUM 80
#define WORD_NUM 1700
#define DIR PORTC
#define DIR_V 0x20
typedef union //check crc 2 byte;
{
unsigned int word;
struct
{
unsigned char bl;
unsigned char bh;
}bytes;
}WordType;
#if 0
typedef union
{
uchar gvc_data_buf[17][100];
uchar gvc_data_arr[1700];
}Data_buffer;
#endif
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -