Immediate task trigger from ISR

Hello again,
I need to make absolutely sure that a specific task (which has highest priority of all tasks in the system) is run immediately exiting a ISR which would trigger it.

Every instruction counts, if solution A takes 10 instructions less than solution B then solution is is what I am looking for… The only other higher importance requirement is that, as mentioned at the top, said task must be guaranteed to execute immediately after the ISR exits.

I am thinking of just sending a notification from the ISR.

Is that the safest and fastest way? Or are there better/faster/safest ones?

Thank you as always! :slight_smile:

notifications are fine. Just make sure to call portYieldFromISR() after your ISR notifies your task.

1 Like