您好,我遇到一个关于DM6446-ARM端关于CCDC的VDINT0中断的设置问题,目的是实现帧同步,目前无法进入中断,我查看代码,可能是有什么地方没有配置正确,但经过长期的分析,没有发现错误,可能对TI的这个芯片理解不到位。所以请各位大神指导一下,万分感激。
void VDINT_INT( void *arg)
{
printf("!!!");
}
void ARM_Interrupt_Init(void)
{
CSL_IntcObj intcObj;
CSL_IntcHandle hIntc;
CSL_IntcGlobalEnableState state;
CSL_IntcEventHandlerRecord HandRecord;
CSL_Status status = CSL_SOK;
CSL_IntcHwSetup setup = CSL_INTC_HWSETUP_DEFAULTS;
setup.priority = CSL_INTC_PRIORITY_2;
if( CSL_intcInit() != CSL_SOK )
{
printf("The intcInit is error!!!\n");
}
status = CSL_intcGlobalEnable(&state);
if( status != CSL_SOK )
{
printf("The CSL_intcGlobalEnable is error!!!\n");
}
hIntc = CSL_intcOpen(&intcObj, CSL_INTC_EVENTID_VD0 ,CSL_INTC_VECTID_DEFAULT , &setup, &status);
if(hIntc != NULL && status != CSL_SOK)
{
printf("The openStatus is %d \n",status );
}
status = CSL_intcHwSetup(hIntc,&setup);
if (status != CSL_SOK) {
printf("INTR: CSL_intcHwSetup error \n");
demoFail++;
return;
}
HandRecord.handler = (CSL_IntcEventHandler)&VDINT_INT;
HandRecord.arg = hIntc;
CSL_intcPlugEventHandler(hIntc,&HandRecord);
CSL_intcHwControl(hIntc,CSL_INTC_CMD_EVTENABLE,NULL);
if(status != CSL_SOK)
{
printf("The CSL_intcHwControl is eror!!\n");
}
}