⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 system.h

📁 我自己做的一个手柄机的程序
💻 H
字号:
#ifndef  _SYSTEM_H
#define  _SYSTEM_H
/**********************************************************
**                  定义全局变量
***********************************************************/
volatile UINT8 KEY_COUNT = 0;
UINT8 idata  KEY_BUFF[KEY_BUFF_SIZE] = 0x00;            
UINT8        RAM_PAGE = 0x02, X_AXIS = 0x04;
UINT8 idata  UART_BUFF[UART_BUFF_SIZE] = 00;
UINT8        UART_COUNT = 0x00;
UINT8        INT_NESTING = 0;
UINT16       CHECK_SIGNAL = 0;
UINT8        KEY_LOCATION = 0;
//标志位
UINT1        STATUS_FLAG = 00;
UINT1        REC_FLAG = 0X00;  
UINT1        BUFF_FULL = 0;
UINT1        CALL_FLAG = CALL_OUT;
UINT1        STATUS_OK = 0;
UINT8        JUDGE_OK = 0;
UINT1        CHECK_SIGNAL_FLAG = 0;
UINT1        JUDGE_ERROR = 0;
UINT1        ATVTS_FLAG = 0;
UINT1        BUSY_FLAG = 0;
UINT1        TALK_FLAG = 0;
UINT8        ret = 0;    
/*********************************************************
                   AT COMMAND
*********************************************************/
  UINT8 code at[] = "at";
  UINT8 code atf[] = "at&f0";                 //AT&F0<CR>
  UINT8 code atd[] = "atd";
  UINT8 code numLib[] = "0123456789*#";
  UINT8 code ath[]  =  "ath";                   //ATH
  UINT8 code snfs[] = "at^snfs=2";
  UINT8 code saic[] = "at^saic=2,2,2";
  UINT8 code ata[] = "ata";
  UINT8 code ring[] = "RING";
  UINT8 code clcc[] = "at+clcc";
  UINT8 code atv[] = "at&v";
  UINT8 code cmer[] = "at+cmer=2,0,0,2";
  UINT8 code ok[] = "OK";
  UINT8 code signal[] = "signal";
  UINT8 code clccFlag[] ="CLCC";
  UINT8 code sounder[] ="sounder,";
  UINT8 code NOCARRIR[] = "NO";
  UINT8 code atcsq[] = "at+csq";
  UINT8 code sysstart[] ="SYSSTART";
  UINT8 code atscks[] = "at^scks?"; 
  UINT8 code scks[] = "SCKS";
  UINT8 code call0[] = "call,";
//  UINT8 code call1[] = "call,1";
  UINT8 code ERR[] = "ERROR";
  UINT8 code vts[] = "at+vts=";

 #endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -