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:
parent
556c10121b
commit
ee9d5daeca
|
@ -19,6 +19,11 @@ config SHELL_PRIO
|
||||||
range 1 31
|
range 1 31
|
||||||
depends on SHELL
|
depends on SHELL
|
||||||
|
|
||||||
|
config SHELL_STACK_SIZE
|
||||||
|
int "Shell Task Stack Size"
|
||||||
|
default 4096
|
||||||
|
depends on SHELL
|
||||||
|
|
||||||
config SHELL_LK
|
config SHELL_LK
|
||||||
bool "Enable Shell lk"
|
bool "Enable Shell lk"
|
||||||
default y
|
default y
|
||||||
|
|
|
@ -258,7 +258,7 @@ LITE_OS_SEC_TEXT_MINOR UINT32 LosShellInit(VOID)
|
||||||
}
|
}
|
||||||
|
|
||||||
task1.pfnTaskEntry = (TSK_ENTRY_FUNC)ShellTaskEntry;
|
task1.pfnTaskEntry = (TSK_ENTRY_FUNC)ShellTaskEntry;
|
||||||
task1.uwStackSize = 0x1000;
|
task1.uwStackSize = LOSCFG_SHELL_STACK_SIZE;
|
||||||
task1.pcName = "ShellTaskEntry";
|
task1.pcName = "ShellTaskEntry";
|
||||||
task1.usTaskPrio = LOSCFG_SHELL_PRIO;
|
task1.usTaskPrio = LOSCFG_SHELL_PRIO;
|
||||||
ret = LOS_TaskCreate(&taskID1, &task1);
|
ret = LOS_TaskCreate(&taskID1, &task1);
|
||||||
|
|
|
@ -679,6 +679,14 @@ extern UINT8 *m_aucSysMem0;
|
||||||
#define LOSCFG_KERNEL_PM_IDLE 0
|
#define LOSCFG_KERNEL_PM_IDLE 0
|
||||||
#endif
|
#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
|
#ifdef __cplusplus
|
||||||
#if __cplusplus
|
#if __cplusplus
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue