I have a number of tasks all set at priority 1.
One of them (InkJetting Task) increases its priority to 2 while controlling some ink jetting nozzles to avoid being interrupted.
A second task (ShutDownPump) is always at priority 1.
ShutDownPump is at some point locking in a xTaskNotifyWait() waiting for a notification from a ISR callback.
There are times when the ISR is called while the InkJetting Task is set as higher priority (priority level 2).
How can I make sure that the ISR sends the notification to the ShutDownPump (at priority level 1) and it does the following in the following order:
a) wake up ShutDownPump (at level 1) while the InkJetting task is currently at level 2
b) carry out some crucial instructions inside ShutDownPump following the xTaskNotifyWait()
c) control goes back to InkJetting task which is still at level 2
What is the best way to do that? Do I have to play with the priorities perhaps?
Thank you as always