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.

LINUXSDK-OMAPL138: sys/bios中如何注册中断? *.cfg文件怎么对应配置?

Part Number: LINUXSDK-OMAPL138


目前使用 bios_6_76_02_02,添加如下代码,无法产生中断(来自创龙的代码):

/* uPP中断注册,参数为upp对应的中断号 */
void uPPIntRegister(unsigned int cpuINT)
{
	Hwi_Handle hwi;
	Hwi_Params hwiParams;
	Error_Block eb;

	Error_init(&eb);

	Hwi_Params_init(&hwiParams);
	hwiParams.eventId = SYS_INT_UPP_INT;
	hwiParams.arg = NULL;
	hwiParams.enableInt = 0;

	hwi = Hwi_create(cpuINT, uPPIsr, &hwiParams, &eb);
	if (hwi == NULL)
		System_abort("Hwi2 create failed");

	Hwi_enableInterrupt(cpuINT);
}

看了一本书《C674X-DSP嵌入式开发与实践》上面写的和创龙的还不一样。

请教针对bios_6_76_02_02版本,该如何正确注册upp中断?