vTaskPrioritySet from an ISR.

not_used_name wrote on Tuesday, May 06, 2008:

Does there exist a way to change the priority of a task from within an ISR?

Thanks,

davedoors wrote on Tuesday, May 06, 2008:

There is no vTaskPrioritySetFromISR() function but you could create one yourself. I think this would be basically the same as the vTaskPrioritySet() function but with the critical sections removed, and the call to taskYIELD() moved to the end of the function. If a yield was required you would set a flag instead of calling taskYIELD(), then use the taskYIELD_FROM_ISR() function as demonstrated in the examples for your port.