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

📄 variablesa.c

📁 visual dsp++环境下
💻 C
字号:
//***********************************************************************
//      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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -