Fix misra violations in queue.c by introducing a union that allows the correct data types to be used in place of void *, then tidy up where the union is used.

This commit is contained in:
Richard Barry 2018-06-11 18:51:53 +00:00
parent 4a8c4c9eaf
commit 4fbcdbf13b
6 changed files with 78 additions and 70 deletions

View file

@ -632,12 +632,12 @@ BaseType_t xReturn;
}
/*-----------------------------------------------------------*/
void* MPU_xQueueGetMutexHolder( QueueHandle_t xSemaphore )
TaskHandle_t MPU_xQueueGetMutexHolder( QueueHandle_t xSemaphore )
{
BaseType_t xRunningPrivileged = xPortRaisePrivilege();
void * xReturn;
xReturn = ( void * ) xQueueGetMutexHolder( xSemaphore );
xReturn = xQueueGetMutexHolder( xSemaphore );
vPortResetPrivilege( xRunningPrivileged );
return xReturn;
}