mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-24 15:31:56 -04:00
Remove the direct call to xQueueCreateMutex() and replace it with the xSemaphoreCreateMutex() macro. The result is the same, but the xQueue equivalent should not be used directly outside of the core files.
This commit is contained in:
parent
7daebd9275
commit
9b11b0c601
|
@ -391,7 +391,7 @@ err_t sys_mutex_new( sys_mutex_t *pxMutex )
|
||||||
{
|
{
|
||||||
err_t xReturn = ERR_MEM;
|
err_t xReturn = ERR_MEM;
|
||||||
|
|
||||||
*pxMutex = xQueueCreateMutex();
|
*pxMutex = xSemaphoreCreateMutex();
|
||||||
|
|
||||||
if( *pxMutex != NULL )
|
if( *pxMutex != NULL )
|
||||||
{
|
{
|
||||||
|
|
|
@ -363,7 +363,7 @@ err_t sys_mutex_new( sys_mutex_t *pxMutex )
|
||||||
{
|
{
|
||||||
err_t xReturn = ERR_MEM;
|
err_t xReturn = ERR_MEM;
|
||||||
|
|
||||||
*pxMutex = xQueueCreateMutex();
|
*pxMutex = xSemaphoreCreateMutex();
|
||||||
|
|
||||||
if( *pxMutex != NULL )
|
if( *pxMutex != NULL )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue