📄 mp3.h
字号:
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#define DEBUG
#define AT89C51SND1C 0
#define AT89C52 1
#define CPU_TYPE AT89C51SND1C
#if CPU_TYPE==AT89C52
#include <at89x52.h>
#elif CPU_TYPE==AT89C51SND1C
#include "at8xc51snd1.h"
#endif
#define LOW 0 //low level detection value
#define HIGH 1 //high level detection value
#define FALSE 0 //logic false value
#define TRUE 1 //logic true value
#define SET_BIT_0(X) X=X|0x01
#define SET_BIT_1(X) X=X|0x02
#define SET_BIT_2(X) X=X|0x04
#define SET_BIT_3(X) X=X|0x08
#define SET_BIT_4(X) X=X|0x10
#define SET_BIT_5(X) X=X|0x20
#define SET_BIT_6(X) X=X|0x40
#define SET_BIT_7(X) X=X|0x80
#define CLEAR_BIT_0(X) X=X&0xfe
#define CLEAR_BIT_1(X) X=X&0xfd
#define CLEAR_BIT_2(X) X=X&0xfb
#define CLEAR_BIT_3(X) X=X&0xf7
#define CLEAR_BIT_4(X) X=X&0xef
#define CLEAR_BIT_5(X) X=X&0xdf
#define CLEAR_BIT_6(X) X=X&0xbf
#define CLEAR_BIT_7(X) X=X&0x7f
#define DISK_SECTOR_SIZE 32
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -