Hi,
the sample code from xQueueSendToBack() and also the one in xQueueSendToFront() shows the following code:
struct AMessage *pxMessage;
if( xQueue2 != 0 )
{
/* Send a pointer to a struct AMessage object. Don't block if the
queue is already full. */
pxMessage = & xMessage;
xQueueSendToBack( xQueue2, ( void * ) &pxMessage, ( TickType_t ) 0 );
}
I don’t understand by the second argument is passed as “pointer to pointer”. Should it not just be passed the pointer pxMessage (i.e. without the & address-of operator)?
Thank you