#define xQueueAddToSet MPU_xQueueAddToSet\r
#define xQueueRemoveFromSet MPU_xQueueRemoveFromSet\r
#define xQueuePeekFromISR MPU_xQueuePeekFromISR\r
+ #define xQueueGetMutexHolder MPU_xQueueGetMutexHolder\r
\r
#define pvPortMalloc MPU_pvPortMalloc\r
#define vPortFree MPU_vPortFree\r
BaseType_t MPU_xQueueAddToSet( QueueSetMemberHandle_t xQueueOrSemaphore, QueueSetHandle_t xQueueSet );\r
BaseType_t MPU_xQueueRemoveFromSet( QueueSetMemberHandle_t xQueueOrSemaphore, QueueSetHandle_t xQueueSet );\r
BaseType_t MPU_xQueuePeekFromISR( QueueHandle_t xQueue, void * const pvBuffer );\r
+void* MPU_xQueueGetMutexHolder( QueueHandle_t xSemaphore );\r
\r
/*-----------------------------------------------------------*/\r
\r
}\r
/*-----------------------------------------------------------*/\r
\r
+void* MPU_xQueueGetMutexHolder( QueueHandle_t xSemaphore )\r
+{\r
+BaseType_t xRunningPrivileged = prvRaisePrivilege();\r
+void * xReturn;\r
+\r
+ xReturn = ( void * ) xQueueGetMutexHolder( xSemaphore );\r
+ portRESET_PRIVILEGE( xRunningPrivileged );\r
+ return xReturn;\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
#if ( configUSE_MUTEXES == 1 )\r
QueueHandle_t MPU_xQueueCreateMutex( void )\r
{\r