Allow mutex type semaphores to be given from an interrupt (not a normal thing to do - use a binary semaphore!).

Allow FreeRTOS+CLI commands to have spaces at the end without it being taken as a parameter.
This commit is contained in:
Richard Barry 2012-09-05 14:02:16 +00:00
parent c0de8c984c
commit 48a307ff5f
3 changed files with 31 additions and 21 deletions

View file

@ -874,7 +874,9 @@ xTimeOutType xTimeOut;
if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
{
portENTER_CRITICAL();
{
vTaskPriorityInherit( ( void * ) pxQueue->pxMutexHolder );
}
portEXIT_CRITICAL();
}
}