?? main.c.svn-base
字號:
#include "config.h"
#include "lib.h"
#include <stdio.h>
int main()
{
char *where = (char *)0x31000000;
init_uart();
printf("\nPlease send a uuencoded wave file\n");
if(xmodem(where) <= 0)
{
printf("...Receive fail!\n");
goto halt;
}
if(uudecode(where) <= 0)
{
printf("... decode fail!\n");
goto halt;
}
struct WAVE *hdr = (struct WAVE *)where;
int *p = (int *)(where+sizeof(struct WAVE));
init_uda1341ts(Play);
wav_play(hdr,p);
printf("End playing.\n");
halt:
printf("System halted.\n");
while(1);
return 0;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -