const.h

来自「基于摩托罗拉S12标准源程序 包括:SCIO,Timer」· C头文件 代码 · 共 33 行

H
33
字号
#define ENABLE	    1
#define DISABLE	    0
#define	EXIT	      0
 
/*-------- Constant -------*/
#define	OK				  1
#define	NOTOK			  0 
#define	NORMAL			0
#define	ERASING			1 
#define	PROGRAM			2 
#define	CR          0x0D
#define	SPACE       0x20
#define	LF          0x0A
//*#define	NULL            0x00
#define	BS          0x08
#define	DEL         0x7F 
#define	EMPTY       0x30
#define	COLON			  0x3A
#define	ESC         0x1B
#define	DOT				  0x2E
#define	TAB         0x09			
#define	CRYSTAL			16000000		/*16Mhz*/
#define	MS80			((CRYSTAL/2)*(8))/1000 
#define Eclock			8000000

/*-------- Menu id -------*/
#define	ROOT_PAGE		0x01
#define	CAN_PAGE		0x02
#define	PORTB_PAGE		0x07
#define	PORTB_PAGE_DE	0x08
#define	FLASH_PAGE		0x10

⌨️ 快捷键说明

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