?? main.asm
字號:
///////////////////////////////////////////////////////////////////////////////////////////////
//NAME: main.asm //
//DATE: 7/29/05 //
//PURPOSE: ADSP-21369 EZ-KIT Test. Calls initialization routines then waits for interrupts //
// //
//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 <def21369.h>
.section /pm seg_pmco;
.global _main;
.extern _initPLL;
.extern _initSDRAM;
.extern _initSRU;
.extern _initSPORT;
.extern _init1835viaSPI;
_main:
call _initPLL; // Initializes PLL for the correct core clock (CCLK) frequency
call _initSDRAM; // Initializes SDRAM for the correct SDRAM clock (SDCLK) frequency
call _initSRU; // Initializes the SRU & DAI/DPI pins
call _initSPORT; // Initializes the transmit and receive serial ports (SPORTS)
call _init1835viaSPI; // Initializes the codec
//-----------------------------------------------------------------
// Enable interrupts (globally)
BIT SET MODE1 IRPTEN;
//----------------------------------------------------------------
// Unmask the SPORT0 ISR
LIRPTL = SP0IMSK;
_main.end:
//----------------------------------------------------------------
// Loop forever. Work is driven by interrupts
jump (pc,0);
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -