Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] Re: LPC2129 IAP Questions

2005-01-25 by Robert Adsett

At 01:34 AM 1/25/05 +0000, you wrote:
>I am using the GCC compiler with Kiel microVision 3. I tried the
>link I was given however it doesn't seem to contain any information,
>which is useful to my project even though I have located the IRQ
>enable/disable code fragments.


Assembler code doesn't get any simpler to use than those.  Just compile 
with GCC,  add #include "lpc_sys.h" in your application to provide the 
appropriate prototype defines and typedefs. Compile and link in with your 
application.

The documentation shows hows they are used.

Basically you do the following

  PROCESSOR_STATUS prev_int;

  prev_int = DisableInterrupts( INTERRUPT_DISABLE_MASK);

do stuff protected from interrupts

  RestoreInterrupts( prev_int);

That will take care of making sure interrupts are disabled and then restore 
them to what they were before you disabled them.

Robert

" 'Freedom' has no meaning of itself.  There are always restrictions,
be they legal, genetic, or physical.  If you don't believe me, try to
chew a radio signal. "

                         Kelvin Throop, III

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.