📄 intjhdl.c
字号:
/*--------------------------------------------------------------------------*/
/* This function is called by general interrupt handler (INTJ ()). */
/* Author: Kuan, Yeou-Fuh */
/*--------------------------------------------------------------------------*/
#include "sh7707.h"
void _putc ( int );
void INTJHandler ( void );
void DbgStr ( char * );
void INTJHandler ( void )
{
int iExcepCode1;
int iExcepCode2;
iExcepCode1 = INTEVT ;
iExcepCode2 = INTEVT2 ;
switch ( iExcepCode1 )
{
case 0x0000 :
/*PowerON ();*/
break;
case 0x0020 :
/*ManualON ();*/
break;
case 0x01c0 : /* NMI */
/*LOWNMI ();*/
break;
case 0x0200 : /* Interrupt Priority Level 15 */
case 0x0220 : /* Interrupt Priority Level 14 */
case 0x0240 : /* Interrupt Priority Level 13 */
case 0x0260 : /* Interrupt Priority Level 12 */
case 0x0280 : /* Interrupt Priority Level 11 */
case 0x02A0 : /* Interrupt Priority Level 10 */
case 0x02C0 : /* Interrupt Priority Level 9 */
case 0x02E0 : /* Interrupt Priority Level 8 */
case 0x0300 : /* Interrupt Priority Level 7 */
case 0x0320 : /* Interrupt Priority Level 6 */
case 0x0340 : /* Interrupt Priority Level 5 */
case 0x0360 : /* Interrupt Priority Level 4 */
case 0x0380 : /* Interrupt Priority Level 3 */
case 0x03A0 : /* Interrupt Priority Level 2 */
case 0x03C0 : /* Interrupt Priority Level 1 */
switch ( iExcepCode2 )
{
case 0x0600 : /* IRQ0 Interrupt */
/*IRQ0();*/
break;
case 0x0620 : /* IRQ1 Interrupt */
/*IRQ1();*/
break;
case 0x0640 : /* IRQ2 Interrupt */
/*IRQ2();*/
break;
case 0x0660 : /* IRQ3 Interrupt */
/*IRQ3();*/
break;
case 0x0680 : /* IRQ4 Interrupt (Touch Panel Interrupt) */
/*IRQ4();*/
break;
case 0x08A0 : /* IrDA's RXI1 Interrupt (Debug Port) */
/*RXI1 ();*/
break;
case 0x08E0 : /* IrDA's TXI1 Interrupt (Debug Port) */
/*TXI1 ();*/
break;
case 0x0920 : /* SCIF's RXI2 Interrupt */
/*RXI2();*/
break;
default:
break;
}
break;
case 0x0400 : /* TMU0's TUNI0 Interrupt */
OSTickISR ();
break;
case 0x04A0 : /* RTC's PRI Interrupt */
/*RTC_Periodic ();*/
break;
case 0x04E0 : /* SCI0's ERI Interrupt (Smart Card) */
/*ERI0 ();*/
break;
case 0x0500 : /* SCI0's RXI Interrupt (Smart Card) */
/*RXI0 ();*/
break;
case 0x0520 : /* SCI0's TXI Interrupt (Smart Card) */
/*TXI0 ();*/
break;
case 0x0540 : /* SCI0's TEI Interrupt (Smart Card) */
/*TEI0 ();*/
break;
default:
DbgStr ( "Unknow interrupt happen.\n" );
break;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -