Add vTaskEnterCritical() and vTaskExitCritical() functions.

This commit is contained in:
Richard Barry 2008-02-25 18:54:28 +00:00
parent ebf69dab5d
commit 2b174e556c
2 changed files with 54 additions and 2 deletions

View file

@ -134,6 +134,10 @@
#define configUSE_ALTERNATIVE_API 0
#endif
#ifndef portCRITICAL_NESTING_IN_TCB
#define portCRITICAL_NESTING_IN_TCB 0
#endif
#if ( configUSE_MUTEXES == 1 )
/* xTaskGetCurrentTaskHandle is used by the priority inheritance mechanism
within the mutex implementation so must be available if mutexes are used. */