Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 6 months ago.
Is a function called from an ISR in user or ISR context?
Hi all,
I'm working on a data logger that uses several interrupts. The code in the ISR should of course be short, certainly no length prints, etc. I've seen examples where the ISR is simply used to set a flag and the flag is polled from the main while(1) loop and acted on there.
My question is, if i call a function from my ISR, is that function is ISR or User context? Is it doing me any good to call a length function from an ISR? My assumption was that the function would be in user space, but maybe that's not right. If my assumption is correct, then why bother with flags and polling?
Thanks