Re: Question on MPC52xx IRQ[123] pins
From: Grant Likely <hidden>
Date: 2009-12-21 23:16:39
From: Grant Likely <hidden>
Date: 2009-12-21 23:16:39
On Mon, Dec 21, 2009 at 3:30 PM, Bill Gatliff [off-list ref] wrote:
gpio_get_value() on them. =A0There isn't any existing code that I can fin=
d
that allows you to read the states of IRQ pins, be it under gpiolib or otherwise. =A0And I think the reason for that is that there's no way to actually read the states of those pins at all--- the hardware just doesn't work that way.
Correct. IRQ2 can only be used as IRQ2. It cannot be used a GPIO. (Well, I suppose you *could* try to hack into the interrupt controller driver and fetch the pin state that way; but I don't know if you can read the state of masked out IRQ pins, and it sure would be ugly.) g. --=20 Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.