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.

pull/4/head
Richard Barry 13 years ago
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…
Cancel
Save