[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: How to get an Interruption in par0



Hi,

Sorry for the late reply.

As far as I can see there is no way to get an interrupt from p0perror and par0_peri has interrupt number 10.

/Mikael

-----Original Message-----
From: owner-dev-etrax@xxxxxxx.com
To: dev-etrax
Sent: 2003-07-16 12:49
Subject: How to get an Interruption in par0

Hi

I want to get an interruption from p0perror(pin 23) in par0 and I do
this:

driver_open()

{

    ...

    request_irq(4,driver_interrupt,SA_INTERRUPT,"/dev/mydevice",NULL);

    *R_IRQ_MASK0_CLR = IO_STATE(R_IRQ_MASK0_CLR, par0_peri, clr);

    *R_IRQ_MASK0_SET = IO_STATE(R_IRQ_MASK0_SET, par0_peri, set);

    *R_VECT_MASK_CLR = IO_STATE(R_VECT_MASK_CLR, par0, clr);

    *R_VECT_MASK_SET = IO_STATE(R_VECT_MASK_SET, par0, set);

    ...

}

driver_interrupt()
{
	...
}

IS IT CORRECT???

Ion Cadierno

Thanks in advance