Renamed trace point in prvNotifyQueueSetContainer() so it isn't a d… (#47)
* * Renamed trace point in prvNotifyQueueSetContainer() so it isn't a duplicate of the trace point in xQueueGenericSend()
* * Fixed backwards compatibility.
Co-authored-by: Erik Tamlin <erik.tamlin@percepio.com>
diff --git a/include/FreeRTOS.h b/include/FreeRTOS.h
index 05cda7d..75e2855 100644
--- a/include/FreeRTOS.h
+++ b/include/FreeRTOS.h
@@ -456,6 +456,10 @@
#define traceCREATE_COUNTING_SEMAPHORE_FAILED()
#endif
+#ifndef traceQUEUE_SET_SEND
+ #define traceQUEUE_SET_SEND traceQUEUE_SEND
+#endif
+
#ifndef traceQUEUE_SEND
#define traceQUEUE_SEND( pxQueue )
#endif
diff --git a/queue.c b/queue.c
index 8b46da0..b30d212 100644
--- a/queue.c
+++ b/queue.c
@@ -2893,7 +2893,7 @@
{
const int8_t cTxLock = pxQueueSetContainer->cTxLock;
- traceQUEUE_SEND( pxQueueSetContainer );
+ traceQUEUE_SET_SEND( pxQueueSetContainer );
/* The data copied is the handle of the queue that contains data. */
xReturn = prvCopyDataToQueue( pxQueueSetContainer, &pxQueue, queueSEND_TO_BACK );