]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/tasks.c
Add extra #error message as a configuration sanity check.
[freertos] / FreeRTOS / Source / tasks.c
index 8773c356cf196f7228de42049a81ae58b95d177c..8512e1bbc6ed75dea716716ba54ae24f557b9409 100644 (file)
@@ -1290,7 +1290,7 @@ TCB_t * pxNewTCB;
                        /* Has the task already been resumed from within an ISR? */\r
                        if( listIS_CONTAINED_WITHIN( &xPendingReadyList, &( pxTCB->xEventListItem ) ) == pdFALSE )\r
                        {\r
-                               /* Is it in the suspended list because it is in the     Suspended \r
+                               /* Is it in the suspended list because it is in the     Suspended\r
                                state, or because is is blocked with no timeout? */\r
                                if( listIS_CONTAINED_WITHIN( NULL, &( pxTCB->xEventListItem ) ) != pdFALSE )\r
                                {\r
@@ -2339,7 +2339,7 @@ BaseType_t xReturn;
        called from a critical section within an ISR. */\r
 \r
        /* The event list is sorted in priority order, so the first in the list can\r
-       be removed as it is known to be the highest priority.  Remove the TCB from \r
+       be removed as it is known to be the highest priority.  Remove the TCB from\r
        the delayed list, and add it to the ready list.\r
 \r
        If an event is for a queue that is locked then this function will never\r
@@ -3419,6 +3419,12 @@ TCB_t *pxTCB;
        volatile UBaseType_t uxArraySize, x;\r
        uint32_t ulTotalTime, ulStatsAsPercentage;\r
 \r
+               #if( configUSE_TRACE_FACILITY != 1 )\r
+               {\r
+                       #error configUSE_TRACE_FACILITY must also be set to 1 in FreeRTOSConfig.h to use vTaskGetRunTimeStats().\r
+               }\r
+               #endif\r
+\r
                /*\r
                 * PLEASE NOTE:\r
                 *\r