main.c
来自「对ADSP21369的原理图和测试程序进行搜集」· C语言 代码 · 共 38 行
C
38 行
///////////////////////////////////////////////////////////////////////////////////////
//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 + =
减小字号Ctrl + -
显示快捷键?