From: Angus Gratton Date: Mon, 27 Feb 2017 00:46:16 +0000 (+1100) Subject: FreeRTOS: Support setting task name max length X-Git-Tag: v2.1-rc1~290^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3050f06a8ddc30a70d5b4752b38aa51755a64160;p=esp-idf FreeRTOS: Support setting task name max length Ref: https://esp32.com/viewtopic.php?f=13&t=1297&p=5762 --- diff --git a/components/freertos/Kconfig b/components/freertos/Kconfig index ee2b289ef8..c28287644d 100644 --- a/components/freertos/Kconfig +++ b/components/freertos/Kconfig @@ -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" diff --git a/components/freertos/include/freertos/FreeRTOSConfig.h b/components/freertos/include/freertos/FreeRTOSConfig.h index 9deb9f4b5e..4f40330398 100644 --- a/components/freertos/include/freertos/FreeRTOSConfig.h +++ b/components/freertos/include/freertos/FreeRTOSConfig.h @@ -187,7 +187,7 @@ #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 */