基于MSP430的MP3 源码+电路图+PCB+字库+SD卡
1基于MSP430的MP3 源码 电路图 PCB 字库 SD卡.zip
(1.8 MB)
#include "mp3.h"
int main( void )
{
InitSystem();
#ifdef _SINTEXT //VS1003 SINTEXT
SinTest();
#endif
#ifdef _DEBUG
sent_str("\x0d\x0a...Init ok!...\x0d\x0a");
ReadMmcInfo(); //get some information of sd card
sent_str("\x0d\x0a...get_info ok!...\x0d\x0a");
for(unsigned long i=0;;i++)
{
ReadSectorFromFile(3,i);
send_sector(512,buffer);
}
for(unsigned long i=1;i<=FileNumber;i++)
{
GetAudioFile(i);
send_sector(32,DirItem);
PrintNumber(10,5,i,3,5);
UpdateScreen();
PlayMusic(GetAudioFile(i));
}
PrintString(0,36,"放完!",6,1,0);
UpdateScreen();
while(1);
#endif
#ifdef _FONT //写入、校验字库
WriteFontFile();
while(1);
#endif
while(1)
{
KeyProc();
if(!pause)
PlayMusic();
}
}
|