This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
[Bug 1000788] This patch adds macros to unmask & acknowledge gpio interrupts.
- From: bugzilla-daemon at ecoscentric dot com
- To: ecos-patches at ecos dot sourceware dot org
- Date: Sat, 13 Jun 2009 16:32:52 +0100
- Subject: [Bug 1000788] This patch adds macros to unmask & acknowledge gpio interrupts.
- References: <bug-1000788-104@http.bugs.ecos.sourceware.org/>
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.