xQueueRemoveItem does not exist. (but would be useful)
This is a function I need in the case where I just want to pull an item off the queue and discard it - IE I dont want to copy it or do anything with it. This is a case where I am trying to maintain a filling level of buffers to 50% (remove for packets to dry up, or flood in ) .
I pass a NULL pointer to QueueReceive() instead
I modified prvCopyDataFromQueue to not call MEMCPY if pvBuffer was NULL;
and in xQueueGenericReceive
I also removed the assert check for pvBuffer == NULL
This of course could be dangerous for callers that do not intentionally set pvBuffer to NULL…
I could copy the fn with some different params.