⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 int_vec_handler.c

📁 USB 软件配置的具体工程
💻 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 <stdio.h>
#include "intc.h"
//#include "gpt.h"

extern void ENT_INT_USB (void);
extern void ENT_INT_DMA(void);
//extern void gpt1_handler(void);

INT_VECTOR vector[]={
					/* interrupt number,		handler */
					
					{	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_USB,				ENT_INT_USB	},  //15                    
                    {	INT_GPT,				NULL		},
                    {	INT_SSI,				NULL		},
                    {	INT_ADC,				NULL		},                    
                    {	INT_EXT14, 				NULL		},
                    {	INT_LCDC,				NULL		},
                    {	INT_MAC,				NULL		},
                    {	INT_PWM,				NULL		},                    
                    {	INT_UART2,				NULL		},                  
                  	{	INT_UART1,				NULL		},
                    {	INT_UART0,				NULL		},                    
                    {	INT_RESER1,				NULL		},
                    {	INT_RESER2,				NULL		},
                    {	INT_RESER3,				NULL		},                    
                    {	INT_EMI,				NULL		},
					{	INT_DMA,				ENT_INT_DMA	},   //30
					{	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-1].handler)();

	return;
}

⌨️ 快捷键说明

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