From e00bac2bd58ad24e35b5c9083398889ddc74525b Mon Sep 17 00:00:00 2001 From: Mahavir Jain Date: Tue, 5 Feb 2019 18:18:24 +0530 Subject: [PATCH] sys_view: expose max tasks configuration parameter --- components/app_trace/Kconfig | 8 ++++++++ .../sys_view/Sample/OS/SEGGER_SYSVIEW_FreeRTOS.h | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/components/app_trace/Kconfig b/components/app_trace/Kconfig index 5eb4eea747..064f9cf7c0 100644 --- a/components/app_trace/Kconfig +++ b/components/app_trace/Kconfig @@ -99,6 +99,14 @@ menu "Application Level Tracing" endchoice + config SYSVIEW_MAX_TASKS + int "Maximum supported tasks" + depends on SYSVIEW_ENABLE + range 1 64 + default 16 + help + Configures maximum supported tasks in sysview debug + config SYSVIEW_EVT_OVERFLOW_ENABLE bool "Trace Buffer Overflow Event" depends on SYSVIEW_ENABLE diff --git a/components/app_trace/sys_view/Sample/OS/SEGGER_SYSVIEW_FreeRTOS.h b/components/app_trace/sys_view/Sample/OS/SEGGER_SYSVIEW_FreeRTOS.h index 6d4f876238..a13af030b6 100644 --- a/components/app_trace/sys_view/Sample/OS/SEGGER_SYSVIEW_FreeRTOS.h +++ b/components/app_trace/sys_view/Sample/OS/SEGGER_SYSVIEW_FreeRTOS.h @@ -80,7 +80,7 @@ Notes: #define portSTACK_GROWTH ( -1 ) #endif -#define SYSVIEW_FREERTOS_MAX_NOF_TASKS 16 +#define SYSVIEW_FREERTOS_MAX_NOF_TASKS CONFIG_SYSVIEW_MAX_TASKS /********************************************************************* * -- 2.40.0