📄 main.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 ADC via SPORT0A and outputs to
// DAC's via SPORT1A, SPORT1B, SPORT2A, and SPORT2B.
//
////////////////////////////////////////////////////////////////////////////////////////
#include "tt.h"
void main(void)
{
//Initialize PLL to run at CCLK= 331.776 MHz & SDCLK= 165.888 MHz.
//SDRAM is setup for use, but cannot be accessed until MSEN bit is enabled
InitPLL_SDRAM();
// Setting up IRQ0 and IRQ1
SetupIRQ01() ;
// Need to initialize DAI because the sport signals need to be routed
InitSRU();
// This function will configure the codec on the kit
Init1835viaSPI();
// Finally setup the sport to receive / transmit the data
InitSPORT();
interrupt (SIG_SP0,TalkThroughISR);
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 + -