I'm looking for method how to inform one task in firmware about change somewhere else (Using FreeRTOS 7.1.1). I need to receive information about changes, but I wouldn't want check value in cycle - something like interrupts, but coming internal.
For example (in C-like pseudocode)
void task1(int change1)
{
int value1 = change1;
}
void task2(int change2)
{
int value2 = change2;
}
void task3(int change3)
{
int value3 = change3;
}
void taskCheck()
{
doSomething();
}
And when any value in any task is changed, taskCheck()
is activated.
I thought about queues, but I prefered to ask first if there is no better solution.
P.S. There is no Event Bits and Event Group in FreeRTOS 7.1.1