If you disable interrupts using the interrupt controller be aware of the spurious interrupt issues (mentioned in earlier postings). --- In lpc2000@yahoogroups.com, "Sten Larsson" <stenl@n...> wrote: > James, > > You have two options in Thumb mode: > > (1) Switch to ARM mode and disable interrupts in the CPSR, then switch back. > (2) Disable interrupts in the interrupt controller. > > There is no trick... > > /sten > Nohau Corp > > ----- Original Message ----- > From: "James Dabbs" <jdabbs@t...> > To: <lpc2000@yahoogroups.com> > Sent: Thursday, May 06, 2004 9:56 AM > Subject: [lpc2000] Disable()/Restore() > > > > I'm looking for some assembler reference code to disable and restore > > interrupts -- in thumb mode. Working through something by hand, I just > > seem to require a lot of instructions to do it. In fact ARM takes a few > > instructions to do it.. I suspect there is some trick to this but > > Google has failed me.. > > > > Any tips would be most welcome! > > > > Thanks, > > > > James Dabbs, TGA > > > >
Message
Re: Disable()/Restore()
2004-05-06 by embeddedjanitor
Attachments
- No local attachments were found for this message.