main.asm

来自「ADI 公司的DSP ADSP21369 EZ-KIT LITE开发板的全部源代」· 汇编 代码 · 共 57 行

ASM
57
字号
///////////////////////////////////////////////////////////////////////////////////////////////
//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 SPDIF Rx via SPORT0A and outputs   //
//          to DAC's via SPORT3A.                                                            //
//                                                                                           //
///////////////////////////////////////////////////////////////////////////////////////////////

#include <def21369.h>

.section /pm seg_pmco;

.global _main;
.extern _initPLL;
.extern _initSDRAM;
.extern _initSRU;
.extern _initSPORT;
.extern _init1835viaSPI;
.extern _initSPDIF;
.extern _initSRC;


_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

    call _initSPDIF;      // Initializes the SPDIF receiver

    call _initSRC;        // Initializes SRC settings

    //-----------------------------------------------------------------
    // Enable interrupts (globally)
    BIT SET MODE1 IRPTEN;

    //----------------------------------------------------------------
    // Unmask the SPORT0 & SPORT2 ISR
    LIRPTL = SP0IMSK|SP2IMSK ;

_main.end:
    //----------------------------------------------------------------
    // Loop forever.  Work is driven by interrupts
    jump (pc,0);




⌨️ 快捷键说明

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