This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Is there a place to store a pointer that I can pick up in an interrupt handler?

In my ADC interrupt service routine (ADC_IRQHandler), I'd like to have a pointer available that I could use to carry some state from the main app thread to the IRQ handler.

Yes, I could do this by declaring a global, but I go to great lengths to avoid using globals so if there's an existing place to stash a pointer I'd be much happier.

Related