Hello Mark, I was playing with the inter task communication using queues.
This is what I am doing:
fnDoLCD_com_text(E_LCD_TEXT, (unsigned char *)LCDdsp, (sizeof(LCDdsp) - 1));
The code above is executed in my task(source task). I am using the character LCD. I have disabled fnDoLCD every where else in the code to ensure that there is only one task writing to the LCD.(using the task queue).
The string is correctly displayed on the LCD in the simulator.
Question: How does the LCD task get the string from "MY TASK"?
I am confused because:
switch ( ucInputMessage[ MSG_SOURCE_TASK ] ) in the LCD task:
MSG_SOURCE_TASK= "L" meaning LCD task.
I checked the above using a breakpoint.
But the code below that:
case TASK_APPLICATION: is looking for "a"
meaning application task.
Thanks in advance.