📄 custom.h
字号:
//When using compile option, select large model and keep stack area//around 10000 bytes.//Set up compiler selected as #1.//_outp(), _inp(), outp(), inp() should be selected.#define MSVC8 0 // for Microsoft C/C++ Optimizing Compiler Version 8.00c.#define VC4 1 // for Microsoft Visual C++ 5.0 Console Application.#define BC4 0 // for Borland C++ Version 4.02 DOS standard.#if VC4 || MSVC8#define WritePCPort _outp#define ReadPCPort _inp#endif#if BC4#define WritePCPort outp#define ReadPCPort inp#endif#define FALSE 0#define TRUE 1// I/O Address of S-7600A SDK Board setting.#define HW_PORT_INDEX 0x0430#define HW_PORT_DATA HW_PORT_INDEX + 1#define HW_PORT_BUSYX HW_PORT_INDEX + 2//Baud rate setup. Usually same as the max. speed of modem.//#define BAUD 28800L//Set up CLK frequency of S-7600A SDK Board for ISA BUS//CLK must match the clock frequency of SDK board//Default is 1MHz.#define CF 1000000L//Buffer size which program required temperaryly. //Uaualy 1K bytes is enough.#define BUF_SIZE 1024//Times of trial&error to obtain the echo and result of AT command.//If tryen of AtModem(char* atc, int tryen) is True, then it is Valid.#define MAX_TRY 100//Number of confirmation to obtain S_DAV(0X08_BIT7) of S-7600A.//1 is enough for this system. But for safety reason set up as 2.#define CYATA_COUNT 2//Guard time of AT command escape code.//The unit is sec. and the tolerance is up to +1 sec.#define GARD_TIME 1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -