Hello All,
I am able to attach the interrupt using InterruptAttach(). I am attaching
interrupt number 11, (IRQ 11) , which is an interrupt from external device.
I have created a isr_thread,this is the place where I am attaching
interrupt. I am getting the interrupt at Hardware level which I can see by
using the CRO.
but it is not executing the isr and thus it will be always in
“InterruptWait” state.I am able to acces the device , using mmap() function.
My question is should write a separate resource manager for getting the
interrupt.
here is function source code,
void * isr_thread(void *posixpoo)
{
ThreadCtl(_NTO_TCTL_IO,0);
event.sigev_notify = SIGEV_INTR ;
interruptID =
InterruptAttach(11,isr,NULL,0,_NTO_INTR_FLAGS_TRK_MSK);
if(interruptID = = -1)
printf(“COULD NOT ATTACH INTERRUPTS\n”);
for(;
{
InterruptWait(0,NULL);
InterruptDisable();
}
}
const struct sigevent *isr(void *arg,int notusedID)
{
return(&event);
}
Please help me,
Thanks in advance.
Rajarama