mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Change to use the configKERNEL_INTERRUPT_PRIORITY setting.
This commit is contained in:
parent
89d7f37094
commit
f44fc2c665
|
@ -353,8 +353,13 @@ const unsigned portSHORT usReloadValue = ( unsigned portSHORT ) ( ( ( configPER_
|
||||||
|
|
||||||
void vPortEnterCritical( void )
|
void vPortEnterCritical( void )
|
||||||
{
|
{
|
||||||
/* Disable interrupts */
|
/* Disable interrupts upto level 30. */
|
||||||
portDISABLE_INTERRUPTS();
|
#if configKERNEL_INTERRUPT_PRIORITY != 30
|
||||||
|
#error configKERNEL_INTERRUPT_PRIORITY (set in FreeRTOSConfig.h) must match the ILM value set in the following line - 30 (0x1e) being the default.
|
||||||
|
#endif
|
||||||
|
|
||||||
|
__asm(" STILM #1Eh ");
|
||||||
|
|
||||||
|
|
||||||
/* Now interrupts are disabled ulCriticalNesting can be accessed
|
/* Now interrupts are disabled ulCriticalNesting can be accessed
|
||||||
directly. Increment ulCriticalNesting to keep a count of how many times
|
directly. Increment ulCriticalNesting to keep a count of how many times
|
||||||
|
@ -370,9 +375,8 @@ void vPortExitCritical( void )
|
||||||
ulCriticalNesting--;
|
ulCriticalNesting--;
|
||||||
if( ulCriticalNesting == portNO_CRITICAL_NESTING )
|
if( ulCriticalNesting == portNO_CRITICAL_NESTING )
|
||||||
{
|
{
|
||||||
/* Enable all interrupt/exception. */
|
/* Enable all interrupts */
|
||||||
portENABLE_INTERRUPTS();
|
__asm(" STILM #1Fh ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
Loading…
Reference in a new issue