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

📄 main.c

📁 对ADSP21369的原理图和测试程序进行搜集
💻 C
字号:
///////////////////////////////////////////////////////////////////////////////////////
//NAME:     main.c (Block-based Talkthrough)
//DATE:     7/29/05
//PURPOSE:  Talkthrough framework for sending and receiving samples to the SPDIF peripherals.
//
//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 SPORT3A.
//
////////////////////////////////////////////////////////////////////////////////////////
#include "tt.h"

void main(void)
{
    // SPORT0 interrupt calls TalkThroughISR
    interrupt (SIG_SP0,TalkThroughISR);
    
    //Initialize PLL to run at CCLK= 331.776 MHz & SDCLK= 165.888 MHz.
    InitPLL_SDRAM();

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

    // Set up SPDIF transmitter and receiver.
    InitSPDIF();

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

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

}

⌨️ 快捷键说明

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