Hello Richard and Fellow FreeRTOS’ers,
I have a question about Queuing - can I use one queue that is large - large being 128 bytes in an embedded system - for different integral types or is that just a no-no?
For instance - I would like to use one General Q for a UART, let’s say - but, I need to pass different types of packets. I am finding the overhead of doing something like vPrintString() (have written my own which is similar) - could be a little excessive in some cases - but will the Q ‘behave’ properly if I were to pass something like:
1) a structure pointer to a communications packet that is, let’s say, 48 bytes; and then
2) a structure pointer for a 3 byte ‘ACK’ packet
3) just a byte of some sort,
Does the Q only support one integral type? For instance; if I have sized a Q for chars but one of my structure’s has unsigned shorts, for instance - will the Q operate properly? I can unwrap this on the other end char-by-char - but I would like to be able to use the Qing facilities and not have to declare a specific Q for each specific type of packet.
Thanks In Advance,