mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-01 08:54:14 -04:00
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:
parent
4a8c4c9eaf
commit
4fbcdbf13b
6 changed files with 78 additions and 70 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue