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

📄 mw_c6xxx_csl.h

📁 用离散小波变换实现语音去噪
💻 H
字号:
#ifndef _MW_C6XXX_CSL_H_
#define _MW_C6XXX_CSL_H_
#include <c6x.h>
#include <std.h>
#include <csl.h>
#include <csl_timer.h>
#include <csl_irq.h>
#include <csl_cache.h>
#include <csl_edma.h>
#include <csl_mcbsp.h>

void config_McBSP(int port);

/* Define McBSP0 Registers */
#define McBSP0_DRR                     0x18c0000                 /* Address of data receive reg.         */
#define McBSP0_DXR                     0x18c0004                 /* Address of data transmit reg.        */
#define McBSP0_SPCR                    0x18c0008                 /* Address of serial port contl. reg.   */
#define McBSP0_RCR                     0x18c000C                 /* Address of receive control reg.      */
#define McBSP0_XCR                     0x18c0010                 /* Address of transmit control reg.     */
#define McBSP0_SRGR                    0x18c0014                 /* Address of sample rate generator     */
#define McBSP0_MCR                     0x18c0018                 /* Address of multichannel reg.         */
#define McBSP0_RCER                    0x18c001C                 /* Address of receive channel enable.   */
#define McBSP0_XCER                    0x18c0020                 /* Address of transmit channel enable.  */
#define McBSP0_PCR                     0x18c0024                 /* Address of pin control reg.          */

/* Define McBSP1 Registers */
#define McBSP1_DRR                     0x1900000                 /* Address of data receive reg.         */
#define McBSP1_DXR                     0x1900004                 /* Address of data transmit reg.        */
#define McBSP1_SPCR                    0x1900008                 /* Address of serial port contl. reg.   */
#define McBSP1_RCR                     0x190000C                 /* Address of receive control reg.      */
#define McBSP1_XCR                     0x1900010                 /* Address of transmit control reg.     */
#define McBSP1_SRGR                    0x1900014                 /* Address of sample rate generator     */
#define McBSP1_MCR                     0x1900018                 /* Address of multichannel reg.         */
#define McBSP1_RCER                    0x190001C                 /* Address of receive channel enable.   */
#define McBSP1_XCER                    0x1900020                 /* Address of transmit channel enable.  */
#define McBSP1_PCR                     0x1900024                 /* Address of pin control reg.          */

/* C64-only registers not defined here;
   consult C6000 Peripherals book if those are needed */
void config_DMA(void);
#endif //_MW_C6XXX_CSL_H_

⌨️ 快捷键说明

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