Instead of asking what’s WRONG with my code, can someone please point me to an example, or provide an example, of the correct way to use xQueueSend from a module other than where the queue handle and function handler are defined?
I’m using FreeeRTOS 8.2.0, in IAR EWARM 7.3, on an STM32F4 controller. I am unable to find an example on the entire web that shows this, and it just happens to be giving me a big headache right now.
It shouldn’t make any difference which module the queue handle is defined in. A queue handle is just a variable, so it can be declared in one C file, and then extern’ed in another C file, just like any other variable.