[Bug 1000788] This patch adds macros to unmask & acknowledge gpio interrupts.
bugzilla-daemon@ecoscentric.com
bugzilla-daemon@ecoscentric.com
Sat Jun 13 15:33:00 GMT 2009
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1000788
Andrew Lunn <andrew.lunn@ascom.ch> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrew.lunn@ascom.ch
--- Comment #1 from Andrew Lunn <andrew.lunn@ascom.ch> 2009-06-13 16:32:51 ---
This patch needs a bit of a re-think.
You need to be able to unmask and mask an interrupt from a GPIO pin. So it
would be better if the macro took an enable/disable or mask/unmask parameter
and then set a bit in IER or IDR.
You ACK macro makes no sense. You cannot ACK a specific pin. What you have to
do is read the interrupt status for a PIO port, ie 32 pins and then determine
if your pin of interest has generated an interrupt. I cannot think of a way to
do this with macros which is portable across different AT91SAM devices. You
have to write some C code which is specific to your platform.
--
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the Ecos-patches
mailing list