📄 int_vec_handler.c
字号:
/*************************************************************************************
* Copyright (c) 2005 by National ASIC System Engineering Research Center.
* PROPRIETARY RIGHTS of ASIC are involved in the subject matter of this
* material. All manufacturing, reproduction, use, and sales rights
* pertaining to this subject matter are governed by the license agreement.
* The recipient of this software implicitly accepts the terms of the license.
*
* File Name: int_vec_handler.c
*
* File Description:
* The file includes three functions to initialize the lcd controller and
* display some pictures on the lcd.
*
*
* Created by Michael <yuyu_zh@seu.edu.cn>, 2005-03-22
**************************************************************************************/
#include "garfield.h"
INT_VECTOR vector[]={
/* interrupt number, handler */
{ INT_NULL, NULL },
{ INT_NULL, NULL },
{ INT_EXT0, NULL },
{ INT_EXT1, NULL },
{ INT_EXT2, NULL },
{ INT_EXT3, NULL },
{ INT_EXT4, NULL },
{ INT_EXT5, NULL },
{ INT_EXT6, NULL },
{ INT_EXT7, NULL },
{ INT_EXT8, NULL },
{ INT_EXT9, NULL },
{ INT_EXT10, NULL },
{ INT_EXT11, NULL },
{ INT_EXT12, NULL },
{ INT_EXT13, NULL },
{ INT_EXT14, NULL },
{ INT_NONE, NULL },
{ INT_EXT15, NULL },
{ INT_EXT16, NULL },
{ INT_EXT17, NULL },
{ INT_LCD, NULL },
{ INT_AC97, NULL },
{ INT_PWM, NULL },
{ INT_UART1, int_serv_uart0 },
{ INT_UART0, int_serv_uart0 },
{ INT_MMC, NULL },
{ INT_SPI, NULL },
{ INT_USB, NULL },
{ INT_GPT, NULL },
{ INT_EMI, NULL },
{ INT_DMA, NULL },
{ INT_RTC, NULL },
};
extern void int_vector_handler(void)
{
U32 intnum;
U8 i = 0;
intnum = *(RP)(INTC_IFSTAT);
while(intnum != 0)
{
intnum = intnum>>1;
i++;
}
(*vector[i].handler)();
return;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -