Probably problem withxHigherPriorityTaskWoken

ulmus71 wrote on Wednesday, February 15, 2012:

Quick question:
im using that variable "xHigherPriorityTaskWoken’ in interrupt routine, you know what i am talking about.
Can i declare that outside routine as a global variable?
I dont know yet, but i think it is making some problems… i want only be sure that i can declare as global variable.

davedoors wrote on Wednesday, February 15, 2012:

If no other interrupts use the same variable, or you can never have interrupts that nest, then it can be global. If it is global it must be set to pdFALSE manuall when the interrupt starts.

ulmus71 wrote on Wednesday, February 15, 2012:

It means i have an issue with semaphores and task timings… :frowning: