#define vTaskDelay MPU_vTaskDelay\r
#define uxTaskPriorityGet MPU_uxTaskPriorityGet\r
#define vTaskPrioritySet MPU_vTaskPrioritySet\r
+ #define eTaskStateGet MPU_eTaskStateGet\r
#define vTaskSuspend MPU_vTaskSuspend\r
#define xTaskIsTaskSuspended MPU_xTaskIsTaskSuspended\r
#define vTaskResume MPU_vTaskResume\r
void MPU_vTaskDelay( portTickType xTicksToDelay );\r
unsigned portBASE_TYPE MPU_uxTaskPriorityGet( xTaskHandle pxTask );\r
void MPU_vTaskPrioritySet( xTaskHandle pxTask, unsigned portBASE_TYPE uxNewPriority );\r
+eTaskState MPU_eTaskStateGet( xTaskHandle pxTask );\r
void MPU_vTaskSuspend( xTaskHandle pxTaskToSuspend );\r
signed portBASE_TYPE MPU_xTaskIsTaskSuspended( xTaskHandle xTask );\r
void MPU_vTaskResume( xTaskHandle pxTaskToResume );\r
#endif\r
/*-----------------------------------------------------------*/\r
\r
+#if ( INCLUDE_eTaskStateGet == 1 )\r
+ eTaskState MPU_eTaskStateGet( xTaskHandle pxTask )\r
+ {\r
+ portBASE_TYPE xRunningPrivileged = prvRaisePrivilege();\r
+ eTaskState eReturn;\r
+\r
+ eReturn = eTaskStateGet( pxTask );\r
+ portRESET_PRIVILEGE( xRunningPrivileged );\r
+ return eReturn;\r
+ }\r
+#endif\r
+/*-----------------------------------------------------------*/\r
+\r
#if ( INCLUDE_vTaskSuspend == 1 )\r
void MPU_vTaskSuspend( xTaskHandle pxTaskToSuspend )\r
{\r