]> git.sur5r.net Git - freertos/commitdiff
Add the configUSE_STATS_FORMATTING_FUNCTIONS parameter to a couple of FreeRTOSConfig...
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Tue, 17 Sep 2013 09:48:51 +0000 (09:48 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Tue, 17 Sep 2013 09:48:51 +0000 (09:48 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2042 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

FreeRTOS/Demo/CORTEX_STM32L152_IAR/FreeRTOSConfig.h
FreeRTOS/Demo/MSP430X_MSP430F5438_IAR/FreeRTOSConfig.h

index 9157295f1a1b4941c94108c86f8e675ec0bfb1ed..3fce26c5c4666cb6ba9efabc17eb37db17208bb1 100644 (file)
 #define configUSE_PREEMPTION                   1\r
 #define configUSE_IDLE_HOOK                            1\r
 #define configUSE_TICK_HOOK                            1\r
-#define configCPU_CLOCK_HZ                             ( 32000000UL )  \r
+#define configCPU_CLOCK_HZ                             ( 32000000UL )\r
 #define configTICK_RATE_HZ                             ( ( portTickType ) 1000 )\r
 #define configMAX_PRIORITIES                   ( ( unsigned portBASE_TYPE ) 5 )\r
 #define configMINIMAL_STACK_SIZE               ( ( unsigned short ) 70 )\r
 #define configTOTAL_HEAP_SIZE                  ( ( size_t ) ( 10 * 1024 ) )\r
 #define configMAX_TASK_NAME_LEN                        ( 16 )\r
-#define configUSE_TRACE_FACILITY               0\r
+#define configUSE_TRACE_FACILITY               1\r
 #define configUSE_16_BIT_TICKS                 0\r
 #define configIDLE_SHOULD_YIELD                        1\r
 #define configUSE_MUTEXES                              1\r
 #define configQUEUE_REGISTRY_SIZE              5\r
-#define configGENERATE_RUN_TIME_STATS  1\r
 #define configCHECK_FOR_STACK_OVERFLOW 2\r
 #define configUSE_RECURSIVE_MUTEXES            0\r
 #define configUSE_MALLOC_FAILED_HOOK   1\r
@@ -137,6 +136,9 @@ is included from an asm file. */
        extern unsigned long ulTIM6_OverflowCount;\r
 #endif /* __ICCARM__ */\r
 \r
+/* Run time stats related macros. */\r
+#define configGENERATE_RUN_TIME_STATS  1\r
+#define configUSE_STATS_FORMATTING_FUNCTIONS 1\r
 #define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() vConfigureTimerForRunTimeStats()\r
 #define portALT_GET_RUN_TIME_COUNTER_VALUE( ulCountValue )                                                                     \\r
        {                                                                                                                                                                               \\r
index 2f6950291a46273eb4ba2bc9159fbc7dc2e28145..b35d1f4475db9dad3553fb8eff0aab5a22282af7 100644 (file)
@@ -86,7 +86,7 @@
 #define configMAX_PRIORITIES                   ( ( unsigned portBASE_TYPE ) 5 )\r
 #define configTOTAL_HEAP_SIZE                  ( ( size_t ) ( 10 * 1024 ) )\r
 #define configMAX_TASK_NAME_LEN                        ( 10 )\r
-#define configUSE_TRACE_FACILITY               0\r
+#define configUSE_TRACE_FACILITY               1\r
 #define configUSE_16_BIT_TICKS                 0\r
 #define configIDLE_SHOULD_YIELD                        1\r
 #define configUSE_MUTEXES                              1\r
@@ -117,6 +117,12 @@ to exclude the API function. */
 #define INCLUDE_vTaskDelayUntil                        1\r
 #define INCLUDE_vTaskDelay                             1\r
 \r
+/* This demo makes use of one or more example stats formatting functions.  These\r
+format the raw data provided by the uxTaskGetSystemState() function in to human\r
+readable ASCII form.  See the notes in the implementation of vTaskList() within \r
+FreeRTOS/Source/tasks.c for limitations. */\r
+#define configUSE_STATS_FORMATTING_FUNCTIONS   1\r
+\r
 /* The MSP430X port uses a callback function to configure its tick interrupt.\r
 This allows the application to choose the tick interrupt source.\r
 configTICK_VECTOR must also be set in FreeRTOSConfig.h to the correct\r