McBSP初始化函数
来源:互联网 发布:2015年电影 推荐 知乎 编辑:程序博客网 时间:2024/05/22 06:29
#include <csl_mcbsp.h> //header included
MCBSP_Handle hMcbsp; //定义一个MCBSP的句柄
/***********************************************************************/
/* 函数声明: MCBSP初始化 */
/***********************************************************************/
void McBSP_int()
{
/* Let's open up serial port 0 */
hMcbsp = MCBSP_open(MCBSP_DEV1, MCBSP_OPEN_RESET);
/*Before a McBSP port can be used, it must first be opened by this function.
The return value is a unique device handle that you use in subsequent McBSP API calls
MCBSP_Handle MCBSP_open(
int devNum,//McBSP device (port) number:
MCBSP_DEV0
MCBSP_DEV1
Uint32 flags//MCBSP_OPEN_RESET
);*/
MCBSP_config(hMcbsp,&ConfigLoopback);
/*Sets up the McBSP port using the configuration structure.
void MCBSP_config(
MCBSP_Handle hMcbsp,
MCBSP_Config *Config
);
*/
/* Now that the port is setup, let's enable it in steps. */
MCBSP_start(hMcbsp,MCBSP_RCV_START | MCBSP_XMIT_START |
MCBSP_SRGR_START| MCBSP_SRGR_FRAMESYNC,
MCBSP_SRGR_DEFAULT_DELAY);
/*Use this function to start a transmit and/or receive operation for a McBSP port
by passing the handle and mask.
void MCBSP_start(
MCBSP_Handle hMcbsp, // handle
Uint32 startMask, //using macros instead ,pull some part out of rst ,enable these part
// MCBSP_XMIT_START: start transmit (XRST)
// MCBSP_RCV_START: start receive (RRST)
// MCBSP_SRGR_START: start Sample rate
//generator (GRST)
// MCBSP_SRGR_FRAMESYNC: Start frame //spi doesn't need
sync. Generation (FRST)
Uint32 SampleRateGenDelay//sys requirments
);*/
}
- McBSP初始化函数
- mcbsp
- McBSP
- MCBSP 回环配置实例
- Mcbsp发送数据
- dsp McBSP模块
- MCBSP配置SPI
- 构造函数+初始化函数
- TI McBSP 串口调试心得
- DSP 之多通道缓冲存储器(MCbsp)
- McBsp接口使用和概念
- McBsp接口使用和概念
- 函数外初始化与函数内初始化
- 内存初始化函数memset()
- 构造函数初始化器
- 构造函数初始化列表
- 构造函数初始化列表
- 构造函数初始化列表
- formValidator3.3的ajaxValidator一些异常
- 编程修改BIN等二进制文件
- EJB_HelloWorld
- 从现代科学角度看佛【1】(从我的新浪博客转来)
- new的六种重载形式
- McBSP初始化函数
- 传智播客-二叉树(1)
- 在Vista/Windows 7下硬盘安装Ubuntu9.04
- 从现代科学角度看佛【2】
- 将DataRow 返回为一个实体类。
- MySQL数据库常使用的一些命令
- 使用sharpdevelop连接MySQL
- Google C++ Style
- 现代科学与佛【3】