|
|
@ -2657,7 +2657,7 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode,
|
|
|
|
* https://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html */
|
|
|
|
* https://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html */
|
|
|
|
portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
|
|
|
|
portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
|
|
|
|
|
|
|
|
|
|
|
|
uxSavedInterruptStatus = taskENTER_CRITICAL_FROM_ISR();
|
|
|
|
uxSavedInterruptStatus = ( UBaseType_t ) taskENTER_CRITICAL_FROM_ISR();
|
|
|
|
{
|
|
|
|
{
|
|
|
|
/* If null is passed in here then it is the priority of the calling
|
|
|
|
/* If null is passed in here then it is the priority of the calling
|
|
|
|
* task that is being queried. */
|
|
|
|
* task that is being queried. */
|
|
|
@ -2728,7 +2728,7 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode,
|
|
|
|
* https://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html */
|
|
|
|
* https://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html */
|
|
|
|
portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
|
|
|
|
portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
|
|
|
|
|
|
|
|
|
|
|
|
uxSavedInterruptStatus = taskENTER_CRITICAL_FROM_ISR();
|
|
|
|
uxSavedInterruptStatus = ( UBaseType_t ) taskENTER_CRITICAL_FROM_ISR();
|
|
|
|
{
|
|
|
|
{
|
|
|
|
/* If null is passed in here then it is the base priority of the calling
|
|
|
|
/* If null is passed in here then it is the base priority of the calling
|
|
|
|
* task that is being queried. */
|
|
|
|
* task that is being queried. */
|
|
|
@ -4657,7 +4657,7 @@ BaseType_t xTaskCatchUpTicks( TickType_t xTicksToCatchUp )
|
|
|
|
/* This lets the task know it was forcibly removed from the
|
|
|
|
/* This lets the task know it was forcibly removed from the
|
|
|
|
* blocked state so it should not re-evaluate its block time and
|
|
|
|
* blocked state so it should not re-evaluate its block time and
|
|
|
|
* then block again. */
|
|
|
|
* then block again. */
|
|
|
|
pxTCB->ucDelayAborted = pdTRUE;
|
|
|
|
pxTCB->ucDelayAborted = ( uint8_t ) pdTRUE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -5598,7 +5598,7 @@ BaseType_t xTaskCheckForTimeOut( TimeOut_t * const pxTimeOut,
|
|
|
|
{
|
|
|
|
{
|
|
|
|
/* The delay was aborted, which is not the same as a time out,
|
|
|
|
/* The delay was aborted, which is not the same as a time out,
|
|
|
|
* but has the same result. */
|
|
|
|
* but has the same result. */
|
|
|
|
pxCurrentTCB->ucDelayAborted = pdFALSE;
|
|
|
|
pxCurrentTCB->ucDelayAborted = ( uint8_t ) pdFALSE;
|
|
|
|
xReturn = pdTRUE;
|
|
|
|
xReturn = pdTRUE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
@ -8064,7 +8064,7 @@ TickType_t uxTaskResetEventItemValue( void )
|
|
|
|
|
|
|
|
|
|
|
|
pxTCB = xTaskToNotify;
|
|
|
|
pxTCB = xTaskToNotify;
|
|
|
|
|
|
|
|
|
|
|
|
uxSavedInterruptStatus = taskENTER_CRITICAL_FROM_ISR();
|
|
|
|
uxSavedInterruptStatus = ( UBaseType_t ) taskENTER_CRITICAL_FROM_ISR();
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if( pulPreviousNotificationValue != NULL )
|
|
|
|
if( pulPreviousNotificationValue != NULL )
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -8223,7 +8223,7 @@ TickType_t uxTaskResetEventItemValue( void )
|
|
|
|
|
|
|
|
|
|
|
|
pxTCB = xTaskToNotify;
|
|
|
|
pxTCB = xTaskToNotify;
|
|
|
|
|
|
|
|
|
|
|
|
uxSavedInterruptStatus = taskENTER_CRITICAL_FROM_ISR();
|
|
|
|
uxSavedInterruptStatus = ( UBaseType_t ) taskENTER_CRITICAL_FROM_ISR();
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ucOriginalNotifyState = pxTCB->ucNotifyState[ uxIndexToNotify ];
|
|
|
|
ucOriginalNotifyState = pxTCB->ucNotifyState[ uxIndexToNotify ];
|
|
|
|
pxTCB->ucNotifyState[ uxIndexToNotify ] = taskNOTIFICATION_RECEIVED;
|
|
|
|
pxTCB->ucNotifyState[ uxIndexToNotify ] = taskNOTIFICATION_RECEIVED;
|
|
|
@ -8497,7 +8497,7 @@ static void prvAddCurrentTaskToDelayedList( TickType_t xTicksToWait,
|
|
|
|
/* About to enter a delayed list, so ensure the ucDelayAborted flag is
|
|
|
|
/* About to enter a delayed list, so ensure the ucDelayAborted flag is
|
|
|
|
* reset to pdFALSE so it can be detected as having been set to pdTRUE
|
|
|
|
* reset to pdFALSE so it can be detected as having been set to pdTRUE
|
|
|
|
* when the task leaves the Blocked state. */
|
|
|
|
* when the task leaves the Blocked state. */
|
|
|
|
pxCurrentTCB->ucDelayAborted = pdFALSE;
|
|
|
|
pxCurrentTCB->ucDelayAborted = ( uint8_t ) pdFALSE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|