This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem in returning from FIQ

Hii

Am using ADUC7025 processor..I Wrote a program in C lanuage, I want to return from FIQ before it comes out by itself..
I tried with simple return, but not working properly..

Plz help me out...

Thanks®ards
Prashanth M

Parents
  • The "return" statement in C will have the FIQ handler end by run whatever cleanup code that is needed. But I'm not sure what you mean by "comes out by itself" - the FIQ handler ends by running cleanup code when the execution leaves the enclosing } or when hitting a return statement. Having a huge priority, the FIQ handler should contain very little code, in which case it should end in microseconds with or without the addition of a "return" somewhere in the function. Any FIQ handler designed to consume more time will seriously affect the behaviour of other IRQ handlers.

    But we can't help you unless you post real information. What does your code look like? In what way didn't it work?

Reply
  • The "return" statement in C will have the FIQ handler end by run whatever cleanup code that is needed. But I'm not sure what you mean by "comes out by itself" - the FIQ handler ends by running cleanup code when the execution leaves the enclosing } or when hitting a return statement. Having a huge priority, the FIQ handler should contain very little code, in which case it should end in microseconds with or without the addition of a "return" somewhere in the function. Any FIQ handler designed to consume more time will seriously affect the behaviour of other IRQ handlers.

    But we can't help you unless you post real information. What does your code look like? In what way didn't it work?

Children
No data