--- In lpc2000@yahoogroups.com, "Bill Knight" <BillK@t...> wrote: > I have had problems with the code for interrupt functions generated by > gcc for the ARM over many versions of the compiler. The problems have > shown up with registers being used for local variables not being saved > and problems with returning to interrupted Thumb mode code. A while > back I created a set of MACROS for entering and leaving interrupt > routines that I now use on a routine basis. I do not know if gcc > 3.4.1 generates fully functional interrupt code but the MACROS should > work with it anyway. The code is in the files section on Yahoo in > UT040803A.zip. > > Regards > -Bill Knight > www.theARMPatch.com The best way around all these issues, IMHO, is to use an assember wrapper that calls C functions. The wrapper can then be tuned to meet all your needs (eg. supporting nested interrupts, thumb safety etc) in a far more predictable and controllable way than trying to do stuff in C. -- Charles
Message
Re: problem with interrupts
2004-10-11 by embeddedjanitor
Attachments
- No local attachments were found for this message.