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

Returning from interrupt to a specified address in main

I'm quite new to context switch and embedded software development. I'm developing a standalone application (no OS) with aduc7026 and keil uVision3. My problem is that at the end of an uart messagge, which I must receive by interrupt, depending on the content of the messagge I've to return return in main in the state saved before entering in the ISR or I've have to return in a specified point where a funcion call is executed.

Hoping that I've been clear. Does anyone have suggestions?

Thank ìs in advance,

Matteo

Parents
  • You can also post a message into a pipe of a queue from the ISR to the main loop for later handling. Resolving the message type will invoke the correct message (the main loop will poll the queue - be careful of synchronization issues). Can you live with a slight delay in execution so that you don't have to call the function from the ISR...?

Reply
  • You can also post a message into a pipe of a queue from the ISR to the main loop for later handling. Resolving the message type will invoke the correct message (the main loop will poll the queue - be careful of synchronization issues). Can you live with a slight delay in execution so that you don't have to call the function from the ISR...?

Children