!1048 kconfig增加shell StackSize大小的设置

Merge pull request !1048 from 乔克叔叔/cherry-pick-1681111046
This commit is contained in:
openharmony_ci 2023-04-13 14:27:36 +00:00 committed by Gitee
commit 6babf78a8d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
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
}