This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C6657硬件信号量中断进入异常

Other Parts Discussed in Thread: SYSBIOS

硬件信号量采用的是间接方式,用CSL函数配置中断可以正常运行,现在采用sys/bios hwi配置中断,程序获得信号量就进去异常,我感觉是信号量中断没配好,硬件中断配置如下:

key=Hwi_disable();

Hwi_Params_init(&hwiParams);

Error(&eb);

hwiParams.arg=1;

hwiParams.enableInt = FALSE;

hwiParams.eventID=CSL_GEM_SEMINTN;

hwiParams.maskSetting = Hwi_MaskingOption_SELF;

Hwi_create(11,&sem_isr,&hwiParams,&eb);

Hwi_enableInterrupt(11);

Hwi_restore(key);

各位高手帮忙看看,不胜感激