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

📄 main.c

📁 ADI 公司的DSP ADSP21369 EZ-KIT LITE开发板的全部源代码
💻 C
字号:
///////////////////////////////////////////////////////////////////////////////////////
//NAME:     main.c (Block-based Talkthrough)
//DATE:     7/29/05
//PURPOSE:  Talkthrough framework for sending and receiving samples to the AD1835.
//
//USAGE:    This file contains the main routine calls functions to set up the talkthrough
//          routine. It receives an input signal from the SPDIF Rx via SPORT0A and outputs
//          to DAC's via SPORT1A, SPORT1B, SPORT2A, and SPORT2B.
//
////////////////////////////////////////////////////////////////////////////////////////
#include "tt.h"

void main(void)
{
    // Setting up IRQ0 and IRQ1
    SetupIRQ01 () ;
    interrupt (SIG_SP0,TalkThroughISR);

    //Initialize PLL to run at CCLK= 331.776 MHz & SDCLK= 165.888 MHz.
    InitPLL_SDRAM();

    // This function will configure the codec on the kit
    Init1835viaSPI();

    // Initialize SPDIF receiver
    InitSPDIF();

    // Need to initialize DAI because the sport signals need to be routed
    InitSRU();

    // Finally setup the sport to receive / transmit the data
    InitSPORT();

    interrupt (SIG_IRQ0, Irq0ISR) ;
    interrupt (SIG_IRQ1, Irq1ISR) ;

    // Be in infinite loop and do nothing until done.
    for(;;)
    {
     while(blockReady)
          processBlock(src_pointer[int_cntr]);
    }

}

⌨️ 快捷键说明

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