From c6487d94726e204b09c8bd98aba2e1ce9fd6011e Mon Sep 17 00:00:00 2001 From: Tony Josi Date: Thu, 18 Apr 2024 14:42:53 +0530 Subject: [PATCH] Fix build with C90 (#1036) * Fix build with C90 * Fix formatting --- include/task.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/task.h b/include/task.h index 08452a9b2..f98d84cf2 100644 --- a/include/task.h +++ b/include/task.h @@ -180,9 +180,10 @@ typedef struct xTASK_STATUS /* Possible return values for eTaskConfirmSleepModeStatus(). */ typedef enum { - eAbortSleep = 0, /* A task has been made ready or a context switch pended since portSUPPRESS_TICKS_AND_SLEEP() was called - abort entering a sleep mode. */ - eStandardSleep, /* Enter a sleep mode that will not last any longer than the expected idle time. */ + eAbortSleep = 0, /* A task has been made ready or a context switch pended since portSUPPRESS_TICKS_AND_SLEEP() was called - abort entering a sleep mode. */ + eStandardSleep /* Enter a sleep mode that will not last any longer than the expected idle time. */ #if ( INCLUDE_vTaskSuspend == 1 ) + , eNoTasksWaitingTimeout /* No tasks are waiting for a timeout so it is safe to enter a sleep mode that can only be exited by an external interrupt. */ #endif /* INCLUDE_vTaskSuspend */ } eSleepModeStatus;