]> granicus.if.org Git - esp-idf/commitdiff
FreeRTOS: Support setting task name max length
authorAngus Gratton <angus@espressif.com>
Mon, 27 Feb 2017 00:46:16 +0000 (11:46 +1100)
committerAngus Gratton <angus@espressif.com>
Mon, 27 Feb 2017 00:46:16 +0000 (11:46 +1100)
Ref: https://esp32.com/viewtopic.php?f=13&t=1297&p=5762

components/freertos/Kconfig
components/freertos/include/freertos/FreeRTOSConfig.h

index ee2b289ef89ba91f278a0f0dd45a9f4b0f58d49b..c28287644d2806087a9f4959a597c777b3b082c8 100644 (file)
@@ -164,6 +164,17 @@ config FREERTOS_LEGACY_TICK_HOOK
 
 endif #FREERTOS_LEGACY_HOOKS
 
+config FREERTOS_MAX_TASK_NAME_LEN
+    int "Maximum task name length"
+    range 1 256
+    default 16
+    help
+        Changes the maximum task name length. Each task allocated will
+        include this many bytes for a task name. Using a shorter value
+        saves a small amount of RAM, a longer value allows more complex
+        names.
+
+        For most uses, the default of 16 is OK.
 
 menuconfig FREERTOS_DEBUG_INTERNALS
     bool "Debug FreeRTOS internals"
index 9deb9f4b5e463a6c2598436baf7f6ff7bbc7bea4..4f403303983ab60032ec2c66cece268711ee4868 100644 (file)
 #define configAPPLICATION_ALLOCATED_HEAP 1
 #define configTOTAL_HEAP_SIZE                  (&_heap_end - &_heap_start)//( ( size_t ) (64 * 1024) )
 
-#define configMAX_TASK_NAME_LEN                        ( 16 )
+#define configMAX_TASK_NAME_LEN                        ( CONFIG_FREERTOS_MAX_TASK_NAME_LEN )
 #define configUSE_TRACE_FACILITY               0               /* Used by vTaskList in main.c */
 #define configUSE_STATS_FORMATTING_FUNCTIONS   0       /* Used by vTaskList in main.c */
 #define configUSE_TRACE_FACILITY_2      0              /* Provided by Xtensa port patch */