📄 arm_isr.c
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -