main.asm

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

ASM
51
字号
///////////////////////////////////////////////////////////////////////////////////////////////
//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 _initSPDIF;


_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 _initSPDIF;    // Initializes the SPDIF transmitter & receiver


    //-----------------------------------------------------------------
    // 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 + =
减小字号Ctrl + -
显示快捷键?