I have added all the required links and definitions, however I seem to be missing the actual code for the enable and disable routines. Does anyone know where this can be obtained? Also what form is it in, Assembly or C? I have tried adding the code in assembly which I have found on this site before, hoever this doesnt seem to compile no matter what I do with it. Thanks, FG --- In lpc2000@yahoogroups.com, Robert Adsett <subscriptions@a...> wrote: > 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
Message
Re: LPC2129 IAP Questions
2005-01-26 by firegenie1980
Attachments
- No local attachments were found for this message.