isr_config.c

来自「该程序实现了PAL视频图象在ADI BF533开发板上的动态采集。」· C语言 代码 · 共 60 行

C
60
字号
/******************************************************************************/
//
// Name: 	BF533 EZ-KIT Interrupt Setup
//
/******************************************************************************

(C) Copyright 2006 - Analog Devices, Inc.  All rights reserved.

File Name:	ISR_Config.c

Date Modified:	10/25/04			Rev 0.2

Software:       VisualDSP++4.5

Hardware:		ADSP-BF533 EZ-KIT Board

Special Connections:  None

Purpose:		The file sets up all interrupts required 
				
				

*********************************************************************************/

#include <sys\exception.h>		//Interrupt Handling Header
#include <stdio.h>
#include "system.h"


EX_INTERRUPT_HANDLER(DMA0_PPI_ISR)	// <--|declaration in  exception.h -->
{									//    |declaration with _pragma(interrupt) the ISR Startaddress 


	//disable the interrupt request
	*pDMA0_IRQ_STATUS = 0x1;	
	
	printf( "\nThe DMA0 PPI Interrupt has been entered!\n" );

}//end DMA0_PPI_ISR


void Init_Interrupts(void)
{

	// configure interrupt
	*pSIC_IAR0 = *pSIC_IAR0 & 0xffffffff | 0x00000000;	
	*pSIC_IAR1 = *pSIC_IAR1 & 0xffffffff | 0x00000001;	// map DMA0 PPI Interrupt -> IVG8
	*pSIC_IAR2 = *pSIC_IAR2 & 0xffffffff | 0x00000000;	
														
	
	register_handler(ik_ivg8, DMA0_PPI_ISR);			// assign DMA0 PPI ISR to interrupt vector 8

	
	*pSIC_IMASK=0x00000100; // all interrupts 0=disabled but DMA0 PPI interrupt enabled	
		

}//end Init_Interrupts


⌨️ 快捷键说明

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