EmbeddedRelated.com
Forums

Code help: Interrupts with LPC2129 and GCC

Started by Baldur Gislason October 10, 2006
I'm having a bit of a problem getting started in using interrupts in C
with LPC2129 and GCC.
The search function seems to be broken at this moment so I'm starting
a new thread.

My problem is, there are so many interrupt sources, how can I tell
from within the IRQ or FIQ routine where my interrupts are originating
from?
Would be great to see some example of interrupt code that uses
multiple interrupt sources.

An Engineer's Guide to the LPC2100 Series

Hi Baldur,

> I'm having a bit of a problem getting started in using interrupts in C
> with LPC2129 and GCC.
>
> My problem is, there are so many interrupt sources, how can I tell
> from within the IRQ or FIQ routine where my interrupts are originating
> from?
> Would be great to see some example of interrupt code that uses
> multiple interrupt sources.

Take a look at the gcc_and_ucosii.zip file in the files area, or
available at:

http://www.ovro.caltech.edu/~dwh/ucos/

the PDF

http://www.ovro.caltech.edu/~dwh/ucos/project_AR1803.pdf

should have enough to get you started.

Dave