Revert critical section handling back to the original method.

This commit is contained in:
Richard Barry 2008-02-15 13:33:44 +00:00
parent 991624461f
commit 61efe2504c
3 changed files with 20 additions and 65 deletions

View file

@ -87,10 +87,20 @@ FreeRTOSConfig.h to set the configMEMMODEL value. */
/*-----------------------------------------------------------*/
/* Critical section handling. */
#define portDISABLE_INTERRUPTS() __DI();
#define portENABLE_INTERRUPTS() __EI();
#define portENTER_CRITICAL() vPortEnterCritical()
#define portEXIT_CRITICAL() vPortExitCritical()
#if configKERNEL_INTERRUPT_PRIORITY != 6
#error configKERNEL_INTERRUPT_PRIORITY (set in FreeRTOSConfig.h) must match the ILM value set in the following line - #06H being the default.
#endif
#define portENABLE_INTERRUPTS() __asm(" MOV ILM, #06h ")
#define portDISABLE_INTERRUPTS() __asm(" MOV ILM, #07h ")
#define portENTER_CRITICAL() \
{ __asm(" PUSHW PS "); \
portDISABLE_INTERRUPTS(); \
}
#define portEXIT_CRITICAL() \
{ __asm(" POPW PS "); \
}
/*-----------------------------------------------------------*/