Added portASSERT_IF_INTERRUPT_PRIORITY_INVALID() implementation to Cortex-M3 and Cortex-M4F ports.

This commit is contained in:
Richard Barry 2013-07-04 11:20:28 +00:00
parent b521d70e7e
commit c4eef61d39
15 changed files with 748 additions and 7 deletions

View file

@ -1176,6 +1176,7 @@ tskTCB * pxNewTCB;
unsigned portBASE_TYPE uxSavedInterruptStatus;
configASSERT( xTaskToResume );
portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
pxTCB = ( tskTCB * ) xTaskToResume;
@ -1414,6 +1415,8 @@ portTickType xTaskGetTickCountFromISR( void )
portTickType xReturn;
unsigned portBASE_TYPE uxSavedInterruptStatus;
portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
xReturn = xTickCount;
portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );