feat: kconfig增加shell StackSize大小的设置

BREAKING CHANGE:

kconfig增加shell StackSize大小的设置:

新增配置项

Close #I6KHRF
Signed-off-by: nkj <tkyl01@yeah.net>
Change-Id: I9d3a7e7933a01a0f1ad2199c82825cc471c623b0

Change-Id: I0d732e0270ae6dc354aec05f2a50f9439550accb
This commit is contained in:
nkj 2023-01-05 10:05:25 +08:00 committed by liuwenxin
parent 556c10121b
commit ee9d5daeca
3 changed files with 14 additions and 1 deletions

View File

@ -19,6 +19,11 @@ config SHELL_PRIO
range 1 31
depends on SHELL
config SHELL_STACK_SIZE
int "Shell Task Stack Size"
default 4096
depends on SHELL
config SHELL_LK
bool "Enable Shell lk"
default y

View File

@ -258,7 +258,7 @@ LITE_OS_SEC_TEXT_MINOR UINT32 LosShellInit(VOID)
}
task1.pfnTaskEntry = (TSK_ENTRY_FUNC)ShellTaskEntry;
task1.uwStackSize = 0x1000;
task1.uwStackSize = LOSCFG_SHELL_STACK_SIZE;
task1.pcName = "ShellTaskEntry";
task1.usTaskPrio = LOSCFG_SHELL_PRIO;
ret = LOS_TaskCreate(&taskID1, &task1);

View File

@ -679,6 +679,14 @@ extern UINT8 *m_aucSysMem0;
#define LOSCFG_KERNEL_PM_IDLE 0
#endif
/**
* @ingroup los_config
* Configuration item to set shell stack size.
*/
#ifndef LOSCFG_SHELL_STACK_SIZE
#define LOSCFG_SHELL_STACK_SIZE 0x1000
#endif
#ifdef __cplusplus
#if __cplusplus
}