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.

RTOS: How to set-up manual interrupts using SYS_BIOS

Other Parts Discussed in Thread: OMAP-L138

Tool/software: TI-RTOS

Hi there,

I am not using I2C0 on OMAP-L138 board and would like to use it as a internal User-custom interrupt. 

I have added the following code in the configuration file:

var hwi8Params = new Hwi.Params();
hwi8Params.instance.name = "hwi8";
hwi8Params.priority = 3;
hwi8Params.eventId = 36;
Program.global.hwi8 = Hwi.create(8, "&data_ready_interrupt", hwi8Params);

and I am setting the interrupt manually.. in one of the timer function as following: 

IntEventSet(36);

and the ISR for the interrupt is as follows:

void data_ready_interrupt(void)
{
#ifdef _TMS320C6X
IntEventClear(36);
#else
IntSystemStatusClear(56);
#endif

// Do nothing// 

}

I don't see the interrupt reaching in the ISR... Am I settings it up incorrectly?? 

Thanks.