📄 defines.h
字号:
#ifndef DEFINES_H
#define DEFINES_H
#ifndef NULL
#define NULL (void*)0L
#endif
/*********************************************************/
/* definitions */
/*********************************************************/
#define TRUE 1
#define FALSE 0
#define ON 1
#define OFF 0
#define cr 0x0d
#define lf 0x0a
#define PASS 1
#define FAIL 2
#define sizeb0 40 /* serial receive interrupt buffer size */
//#define sizeb1 80 /* serial receive interrupt buffer size */
//typedef unsigned char u08;
//typedef char s08;
//typedef unsigned short u16;
//typedef short s16;
/* for SmartMedia and DiskAppl */
/* error codes */
#define SM_OK 0
#define SM_NOT_PRESENT 1
#define SM_INVALID_READING 2
#define SM_NOT_FORMATTED 3
#define SM_FAT_NOTFOUND 4
#define SM_FILE_TOOBIG 5
#define SM_FILE_NOTFOUND 6
#define SM_ERASE_ERROR 7
#define SM_FAIL_WRITE 8
#define SM_INVALID_PARAM 9
#define SM_NOT_REC 10
#define SM_KEY_BREAK 11
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -