原创 中断求助

2009-7-22 16:00 1409 3 3 分类: 处理器与DSP

EX_INTERRUPT_HANDLER(imageInFinish) // <--|declaration in  exception.h -->
{
 //disable the interrupt request
 *pDMA0_IRQ_STATUS = 0x1;   // to clear interrupt bit 
 *pPPI_CONTROL &= 0xfffe;
 printf( "\nThe DMA0 PPI Interrupt has been entered!\n" );
 printf( "\nOpen Image Viewer\n" );
 printf( "\n [  Address       ] 0\n" );
 printf( "\n [  Pixel Fromat  ] UYVY(4:2:2)\n" );
 printf( "\n [  Width Pixel   ] 352\n" );
 printf( "\n [  Height Pixel  ] 288\n" );
 printf( "\nSetting OK\n" );
}



/********************************************************
*
* 函数名        : Init_Interrupt
* 函数功能      : 配置中断
* 函数输入参数  :
* 函数输出      :
* 说明          :
*
********************************************************/
void Init_Interrupt(void)
{
 register_handler(ik_ivg8,imageInFinish);
 *pSIC_IMASK = 0x00000100;//DMA0中断使能
}
函数中的imageInFinish是怎么定义的?

PARTNER CONTENT

文章评论0条评论)

登录后参与讨论
我要评论
0
3
关闭 站长推荐上一条 /3 下一条