Hello,
Simple and general newbie question. I have inherited someones code which uses HAL irq legacy functions.
I noticed from the API reference that alt_irq_disable_all() is not allowed to be called from ISRs but alt_irq_enable_all()
is allowed.
The code I inherited uses the alt_irq_disable_all() , alt_irq_enable_all() pair within ISRs. Finding a way to get rid of the
disable call in the ISRs was going to be my next move. Since these functions are normally used as a pair, I just wanted to get
confirmation from experts that yes using the disable call in an ISR should absolutely and always be avoided.
This code has seemingly random failures, it seems this may be the culprit.
Thanks!
Simple and general newbie question. I have inherited someones code which uses HAL irq legacy functions.
I noticed from the API reference that alt_irq_disable_all() is not allowed to be called from ISRs but alt_irq_enable_all()
is allowed.
The code I inherited uses the alt_irq_disable_all() , alt_irq_enable_all() pair within ISRs. Finding a way to get rid of the
disable call in the ISRs was going to be my next move. Since these functions are normally used as a pair, I just wanted to get
confirmation from experts that yes using the disable call in an ISR should absolutely and always be avoided.
This code has seemingly random failures, it seems this may be the culprit.
Thanks!