I’m not suggesting this is good design, but:
Assume I’ve received a callback. It could have been from an ISR or from an xTimer expiration.
If I’m inside an ISR, I need to call
xTaskNotifyFromISR(). But if it’s an xTimer notification, I believe I need to call
So: is there a way to determine dynamically if I need to call
xTaskNotify()? Alternatively, do bad things happen if I call
xTaskNotifyFromISR() from within an xTimer callback?
(To repeat myself: I’m not defending this as good design. But it could simplify the code design in this specific case…)