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

📄 dsscfg.h

📁 Examplesforc6xxx 非常适合初学者
💻 H
字号:
/*
 *  Copyright 2001 by Texas Instruments Incorporated.
 *  All rights reserved. Property of Texas Instruments Incorporated.
 *  Restricted rights to use, duplicate or disclose this code are
 *  granted through contract.
 *  U.S. Patent Nos. 5,283,900  5,392,448
 */
/* "@(#) DSP/BIOS 4.51.0 05-23-01 (barracuda-i10)" */
/*
 *  ======== dsscfg.h ========
 */
#ifndef DSSCFG_
#define DSSCFG_	1

#ifdef _EDMA_

#define CHIP_6211 1
#include <csl_edma.h>

/*
 *  ======== TCC Flags ========
 *  These flags must match the configured Transfer Completion Code (TCC)
 *  specified in the EDMA Configuration structures used to create the
 *  EDMA handles below.
 */
#define DSS_RXDONE	(1 << 0xd)	/* McBSP 0 receive event mask */
#define DSS_TXDONE	(1 << 0xc)	/* McBSP 0 transmit event mask */

/*
 *  ======== Interrupts ========
 *  These must match the interrupt binding in the DSS configuration
 *  of the DSS HW ISR.
 */
#define DSS_IERDMABIT	0x00000100	/* IER bitmask for DMA interrupt */
#define DSS_IERRX0BIT	0x00000800	/* bitmask McBSP 0 Rx interrupt */

extern far EDMA_Handle DSS_hEdmaRint0; 
extern far EDMA_Handle DSS_hEdmaXint0; 
#endif

#ifdef _DMA_

#define CHIP_6201 1
#include <csl_dma.h>

extern far DMA_Handle DSS_hDmaRint0; 
extern far DMA_Handle DSS_hDmaXint0; 
#endif

#ifdef _54_
#define CHIP_5402   1
#endif

#include <csl_mcbsp.h>
extern far MCBSP_Handle DSS_hMcbsp0;

#include <sts.h>
extern far STS_Obj DSS_ioPhase;

#ifndef DSS_RXDONE	/* if not otherwise defined, define "done" flags */
#define DSS_RXDONE	1
#define DSS_TXDONE	2
#endif

#endif

⌨️ 快捷键说明

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