mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-08 07:07:47 -04:00
Added portASSERT_IF_INTERRUPT_PRIORITY_INVALID() implementation to Cortex-M3 and Cortex-M4F ports.
This commit is contained in:
parent
b521d70e7e
commit
c4eef61d39
15 changed files with 748 additions and 7 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue