[psas-avionics] How to write assembly code inside a C function

2011-10-04 Thread Nagasrinivas Pinjala
Hi, I have made some progress with the interrupt project I am working on. The micro-controller is responding to the push button interrupt but seems that it is not able to come out of the interrupt. I know that when a micro-controller responds to an interrupt it disables the interrupt but in my

Re: [psas-avionics] How to write assembly code inside a C function

2011-10-04 Thread Dave Camarillo
Hi Naga, the LPCUSB library has good examples of how to do inline assembly with the function prolog and eiplog. These should not be done as functions, they should just be inline assembly at the beginning and end of the function. With regard to the multiple firings of your interrupt, make sure that

Re: [psas-avionics] How to write assembly code inside a C function

2011-10-04 Thread K Wilson
On Tue, Oct 4, 2011 at 2:03 PM, Nagasrinivas Pinjala wrote: > > Last week Dave told that are a few problems with the ARM GCC compiler which > made me think that may be the compiler isn't producing the correct epilogue > for the interrupt function. I decided to declare the function attribute as > "