arm_isr.c

来自「TI的DM6446的硬件平台搭建的相关例子」· C语言 代码 · 共 92 行

C
92
字号
#ifndef _NO_OS_
#define _NO_OS_
#endif


#include <arm_intc.h>
unsigned int fiqirqenable=1;
/**
    \brief  IRQ interrupt despatcher

    This routine is the IRQ interrupt service routine. It finds the interrupt  \n
	pending and calls the ISR from the ISR table entry

    \return None
*/

/**
    \brief  SWI interrupt despatcher

    This routine is the SWI interrupt service routine. Calls the routine to service SWI interrupts

    \return None
*/
#pragma INTERRUPT (swi_vector, SWI)
void swi_vector( ) 
{
    //go_swi();
    if ( fiqirqenable == 1 ) 
    {
        fiq_irq_enable( );
    }
    else if ( fiqirqenable == 0 )
    {
        changeToSuper( );
    }
}


/**
    \brief  Data abort interrupt handler

    This routine is the Data abort interrupt handler,
	\warning Does nothing

    \return None
*/
#pragma INTERRUPT (data_abort_vector, DABT)
void data_abort_vector() {

}

/**
    \brief  Undefined instruction interrupt handler

    This routine is the Undefined instruction  interrupt handler,
	\warning Does nothing

    \return None
*/
#pragma INTERRUPT (undef_vector, UDEF)
void undef_vector() {

}

/**
    \brief  Prefetch abort interrupt handler

    This routine is the Prefetch abort interrupt handler,
	\warning Does nothing

    \return None
*/
#pragma INTERRUPT (pref_abort_vector, PABT)
void pref_abort_vector() {

}

/* Rev.No.   Date/Time               ECN No.          Modifier      */
/* -------   ---------               -------          --------      */

/* 2         30 Sep 2004 14:37:31    3070             xkeshavm      */
/*                                                                  */
/* Disabled fiq and irq in boot.asm and added fir_irq_enable.asm    */
/********************************************************************/
/* Rev.No.   Date/Time               ECN No.          Modifier      */
/* -------   ---------               -------          --------      */

/* 3          Apr 18:00:18 8         8877             xkeshavm      */
/*                                                                  */
/* Enable all the Chip select, added arm sleep command              */
/********************************************************************/

⌨️ 快捷键说明

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