?? init_mcbsp.c
字號:
#include "c6x11dsk.h"
#include "c6x.h"
void mcbsp0_init() //配置 McBSP0
{
*(unsigned volatile int *)McBSP0_SPCR = 0; //復位
*(unsigned volatile int *)McBSP0_PCR = 0; //
*(unsigned volatile int *)McBSP0_RCR = 0x10040; //設置 RWDLEN為16BIT,1BIT數據延時
*(unsigned volatile int *)McBSP0_XCR = 0x10040; //設置 XWDLEN為16BIT,1BIT數據延時
*(unsigned volatile int *)McBSP0_DXR = 0;
*(unsigned volatile int *)McBSP0_SPCR = 0x12001;//退出復位(置XRST,RRST=1)
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -