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是怎么定义的?
文章评论(0条评论)
登录后参与讨论