Hello,
I have a question regarding the handling Interrupt Service Routines (ISRs). Specifically, I'm wondering about the advisability of passing arguments to ISRs or returning values from them.
I understand that ISRs are meant to be fast, efficient, and non-blocking, and I've heard conflicting opinions on whether it's a good idea to pass arguments or return values from ISRs. Some say it can introduce issues like increased execution time, stack usage, and synchronization problems.
However, I'd like to know if there are situations where this is a valid approach or if there are recommended alternatives for communicating between ISRs and the main program.
I'd greatly appreciate your advice.
I have a question regarding the handling Interrupt Service Routines (ISRs). Specifically, I'm wondering about the advisability of passing arguments to ISRs or returning values from them.
I understand that ISRs are meant to be fast, efficient, and non-blocking, and I've heard conflicting opinions on whether it's a good idea to pass arguments or return values from ISRs. Some say it can introduce issues like increased execution time, stack usage, and synchronization problems.
However, I'd like to know if there are situations where this is a valid approach or if there are recommended alternatives for communicating between ISRs and the main program.
I'd greatly appreciate your advice.