defines.h
来自「使用MSP430做MP3播放器的专题源码」· C头文件 代码 · 共 45 行
H
45 行
#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 + =
减小字号Ctrl + -
显示快捷键?