⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 const.h

📁 e1c0df5d-c8bc-48a5-bc02-a2b7c51c0dbf是做mp3的源代码
💻 H
字号:
#ifndef _CONST_#define _CONST_#define DIR_UP 1#define DIR_DOWN 2#define F_CPU 8000000#define TI1_H	(((unsigned int)-(F_CPU / 2560)) >> 8)#define TI1_L	(((unsigned int)-(F_CPU / 2560)) & 0xff)#define EPSON_NEW_LCD#define MMC#define SPI_SEND(a) outp(a, SPDR); while(!(SPSR & (1 << SPIF)));#define SPI_ENABLE sbi(SPCR, SPE);#define SPI_DISABLE cbi(SPCR, SPE);#define DREQ_PIN	PD0#define BUTTON_1	PE0#define BUTTON_2	PD1#define BUTTON_3	PD4#define BUTTON_4	PD5#define LED_PIN		PB0// reset for VS1001#define RESET_PIN	PB1#define CHARGE_PORT	PORTE// ALE pin#define CHARGE_PIN	PE1#define CMD_PLAY 1#define CMD_STOP 2#define CMD_NEXT 3#define CMD_PREV 4#define CMD_VOLDOWN 5#define CMD_VOLUP 6#define CMD_OFF 7#define CMD_MENU 8#define KEYLOCK 9#define BUTTON_PLAY 0x01#define BUTTON_STOP 0x02#define BUTTON_FF 0x03#define BUTTON_REW 0x04#define BUTTON_LOCK 0x05#define WAIT_RELEASE 0x0f#define EE_VOLUME 0x001#define EE_FILENR 0x002#define EE_CONTRAST 0x004#define EE_LOUDNESS 0x005#define EE_LOCKTIME 0x006#define EE_BLTIME 0x007#define EE_PLAYMODE 0x008#define EE_BLMODE 0x009#define EE_TIMEDISP 0x010#define EE_DIRCLUSTER 0x011#define SCROLLSPEED 4#define LCDUPDATEFREQ 4#define LOCKTIME 150// clock doubler value for 12.288 MHz crystal//#define F_VS1001 (6144 + 0x8000)// clock doubler value for 14.3 MHz crystal#define F_VS1001 (14300000/2000 + 0x8000)// constants for play modes#define PAUSE 2#define PLAY 1#define STOP 0// constants for filetypes#define TYPE_MP3 0#define TYPE_M3U 1#define TYPE_RGB 2#define TYPE_ANY 3#define TYPE_DIR 4#define NOID3 0#define DOID3 1#define MENU_ITEMS 7#define MENU_PLAYMODE 1#define MENU_LOUDNESS 2#define MENU_CONTRAST 3#define MENU_BLIGHT 4#define MENU_BLMODE 5#define MENU_AUTOLOCK 6#define MENU_TIMEDISP 7#define SLEEP 0xee#define REPEAT_OFF 0#define REPEAT_ONE 1#define REPEAT_ALL 2#ifdef COLOR#define CONTRAST_MIN 0x00#define CONTRAST_MAX 0x7f#define CONTRAST_DEF 0x2D#else#define CONTRAST_MIN 0x20#define CONTRAST_MAX 0x58#define CONTRAST_DEF 0x40#endif#define CLKDIV	1#ifdef MMC#define ReadSector MMC_Read_Wrapper#define secbuf mmc_sbuf#else#define ReadSector CFReadSector#define secbuf cf_sbuf#endif#endif

⌨️ 快捷键说明

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