What is ISR? Can we pass any parameter and return a value from the ISR?
Question :
What is ISR? Can we pass any parameter and return a value from the ISR?
ISR refers to the Interrupt Service Routines. These are procedures stored at specific memory addresses which are called when a certain type of interrupt occurs.
ISR returns nothing and not allow to pass any parameter. An ISR is called when a hardware or software event occurs, it is not called by the code, so that's the reason no parameters are passed into an ISR.