Passing parameters between interrupt handlers on a Cortex-M3 ...

Posted by Captain NedD on Stack Overflow See other posts from Stack Overflow or by Captain NedD
Published on 2010-05-02T00:28:25Z Indexed on 2010/05/02 0:37 UTC
Read the original article Hit count: 595

Filed under:
|
|

I'm building a light kernel for a Cortex-M3.

From a high priority interrupt I'd like to invoke some code to run in a lower priority interrupt and pass some parameters along.

I don't want to use a queue to post work to the lower priority interrupt.

I just have a buffer and size to pass to it.

In the proramming manual it says that the SVC interrupt handler is synchronous which presumably means that if you invoke it from an interrupt that's a lower priority than SVC's handler it gets called immediately (the upshot of this being that you can pass parameters to it as though it were a function call (a little like the BIOS calls in MS-DOS)).

I'd like to do it the other way: passing parameters from a high priority interrupt to a lower priority one (at the moment I'm doing it by leaving the parameters in a fixed location in memory).

What's the best way to do this (if at all possible)?

Thanks,

© Stack Overflow or respective owner

Related posts about embedded

Related posts about cortex-m3