variablesa.c
来自「visual dsp++环境下」· C语言 代码 · 共 93 行
C
93 行
//***********************************************************************
// Variable definitions for the TigerSHARC EZ-Kit DSP A
// Audio Pass Through example in C
// Variablesa.c
//***********************************************************************
//************************* Includes ************************************
#include <defTS201.h>
#include "TSEZKitDef.h"
#include "PassThroughDef.h"
//****************** Audio Receive and Transmit *************************
volatile long ReadDataLeft, ReadDataRight, WriteDataLeft, WriteDataRight;
//************************ TCBs *****************************************
#pragma align 4
TCBChain XmitDMALSourceTCB = // Xmit Left Source
{
(long) &WriteDataLeft, // DI: From WriteDataLeft
0x00010000, // DX: Count = 1, Modify irrelevant
0, // DY: irrelevant
0 // DP: Set in the source code
};
#pragma align 4
TCBChain XmitDMALDestinTCB = // Xmit Left Destination
{
CODEC, // DI: To CODEC
0x00010000, // DX: Count = 1, Modify irrelevant
0, // DY: irrelevant
0 // DP: Set in the source code
};
#pragma align 4
TCBChain XmitDMARSourceTCB = // Xmit Right Source
{
(long) &WriteDataRight, // DI: From WriteDataRight
0x00010000, // DX: Count = 1, Modify irrelevant
0, // DY: irrelevant
0 // DP: Set in the source code
};
#pragma align 4
TCBChain XmitDMARDestinTCB = // Xmit Right Destination
{
CODEC, // DI: To CODEC
0x00010000, // DX: Count = 1, Modify irrelevant
0, // DY: irrelevant
0 // DP: Set in the source code
};
#pragma align 4
TCBChain RcveDMALSourceTCB = // Rcve Left Source
{
CODEC, // DI: From CODEC
0x00010000, // DX: Count = 1, Modify irrelevant
0, // DY: irrelevant
0 // DP: Set in the source code
};
#pragma align 4
TCBChain RcveDMALDestinTCB = // Rcve Left Destination
{
(long) &ReadDataLeft, // DI: To ReadDataLeft
0x00010000, // DX: Count = 1, Modify irrelevant
0, // DY: irrelevant
0 // DP: Set in the source code
};
#pragma align 4
TCBChain RcveDMARSourceTCB = // Rcve Right Source
{
CODEC, // DI: From CODEC
0x00010000, // DX: Count = 1, Modify irrelevant
0, // DY: irrelevant
0 // DP: Set in the source code
};
#pragma align 4
TCBChain RcveDMARDestinTCB = // Rcve Right Destination
{
(long) &ReadDataRight, // DI: To ReadDataRight
0x00010000, // DX: Count = 1, Modify irrelevant
0, // DY: irrelevant
0 // DP: Set in the source code
};
//***********************************************************************
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?