isr_config.c

来自「BF-533 DSP视频输入接口的代码」· C语言 代码 · 共 61 行

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

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

File Name:	ISR_Config.c

Date Modified:	7/02/03		TL		Rev 0.1

Software:       VisualDSP++3.1

Hardware:		ADSP-BF533 EZ-KIT Board

Special Connections:  None

Purpose:		The file sets up all interrupts required 
				
				

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


#include <cdefBF533.h>
#include <sys\exception.h>		//Interrupt Handling Header



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 + -
显示快捷键?