fix the bug in the storage space of the task name
This commit is contained in:
@@ -152,22 +152,6 @@
|
|||||||
<Bp>
|
<Bp>
|
||||||
<Number>0</Number>
|
<Number>0</Number>
|
||||||
<Type>0</Type>
|
<Type>0</Type>
|
||||||
<LineNumber>28</LineNumber>
|
|
||||||
<EnabledFlag>1</EnabledFlag>
|
|
||||||
<Address>134231898</Address>
|
|
||||||
<ByteObject>0</ByteObject>
|
|
||||||
<HtxType>0</HtxType>
|
|
||||||
<ManyObjects>0</ManyObjects>
|
|
||||||
<SizeOfObject>0</SizeOfObject>
|
|
||||||
<BreakByAccess>0</BreakByAccess>
|
|
||||||
<BreakIfRCount>1</BreakIfRCount>
|
|
||||||
<Filename>..\..\..\..\examples\hello_world\hello_world.c</Filename>
|
|
||||||
<ExecCommand></ExecCommand>
|
|
||||||
<Expression>\\TencentOS_tiny\../../../../examples/hello_world/hello_world.c\28</Expression>
|
|
||||||
</Bp>
|
|
||||||
<Bp>
|
|
||||||
<Number>1</Number>
|
|
||||||
<Type>0</Type>
|
|
||||||
<LineNumber>245</LineNumber>
|
<LineNumber>245</LineNumber>
|
||||||
<EnabledFlag>1</EnabledFlag>
|
<EnabledFlag>1</EnabledFlag>
|
||||||
<Address>134229606</Address>
|
<Address>134229606</Address>
|
||||||
@@ -182,7 +166,7 @@
|
|||||||
<Expression>\\TencentOS_tiny\../../../../arch/arm/arm-v7m/common/tos_cpu.c\245</Expression>
|
<Expression>\\TencentOS_tiny\../../../../arch/arm/arm-v7m/common/tos_cpu.c\245</Expression>
|
||||||
</Bp>
|
</Bp>
|
||||||
<Bp>
|
<Bp>
|
||||||
<Number>2</Number>
|
<Number>1</Number>
|
||||||
<Type>0</Type>
|
<Type>0</Type>
|
||||||
<LineNumber>251</LineNumber>
|
<LineNumber>251</LineNumber>
|
||||||
<EnabledFlag>1</EnabledFlag>
|
<EnabledFlag>1</EnabledFlag>
|
||||||
@@ -197,6 +181,22 @@
|
|||||||
<ExecCommand></ExecCommand>
|
<ExecCommand></ExecCommand>
|
||||||
<Expression>\\TencentOS_tiny\../../../../arch/arm/arm-v7m/common/tos_cpu.c\251</Expression>
|
<Expression>\\TencentOS_tiny\../../../../arch/arm/arm-v7m/common/tos_cpu.c\251</Expression>
|
||||||
</Bp>
|
</Bp>
|
||||||
|
<Bp>
|
||||||
|
<Number>2</Number>
|
||||||
|
<Type>0</Type>
|
||||||
|
<LineNumber>28</LineNumber>
|
||||||
|
<EnabledFlag>1</EnabledFlag>
|
||||||
|
<Address>0</Address>
|
||||||
|
<ByteObject>0</ByteObject>
|
||||||
|
<HtxType>0</HtxType>
|
||||||
|
<ManyObjects>0</ManyObjects>
|
||||||
|
<SizeOfObject>0</SizeOfObject>
|
||||||
|
<BreakByAccess>0</BreakByAccess>
|
||||||
|
<BreakIfRCount>0</BreakIfRCount>
|
||||||
|
<Filename>..\..\..\..\examples\hello_world\hello_world.c</Filename>
|
||||||
|
<ExecCommand></ExecCommand>
|
||||||
|
<Expression></Expression>
|
||||||
|
</Bp>
|
||||||
</Breakpoint>
|
</Breakpoint>
|
||||||
<WatchWindow1>
|
<WatchWindow1>
|
||||||
<Ww>
|
<Ww>
|
||||||
@@ -835,7 +835,7 @@
|
|||||||
|
|
||||||
<Group>
|
<Group>
|
||||||
<GroupName>kernel</GroupName>
|
<GroupName>kernel</GroupName>
|
||||||
<tvExp>1</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<cbSel>0</cbSel>
|
<cbSel>0</cbSel>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
<TargetCommonOption>
|
<TargetCommonOption>
|
||||||
<Device>STM32L431RCTx</Device>
|
<Device>STM32L431RCTx</Device>
|
||||||
<Vendor>STMicroelectronics</Vendor>
|
<Vendor>STMicroelectronics</Vendor>
|
||||||
<PackID>Keil.STM32L4xx_DFP.2.4.0</PackID>
|
<PackID>Keil.STM32L4xx_DFP.2.3.0</PackID>
|
||||||
<PackURL>https://www.keil.com/pack/</PackURL>
|
<PackURL>https://www.keil.com/pack/</PackURL>
|
||||||
<Cpu>IRAM(0x20000000-0x2000FFFF) IROM(0x8000000-0x803FFFF) CLOCK(8000000) FPU2 CPUTYPE("Cortex-M4")</Cpu>
|
<Cpu>IRAM(0x20000000-0x2000FFFF) IROM(0x8000000-0x803FFFF) CLOCK(8000000) FPU2 CPUTYPE("Cortex-M4")</Cpu>
|
||||||
<FlashUtilSpec></FlashUtilSpec>
|
<FlashUtilSpec></FlashUtilSpec>
|
||||||
|
@@ -20,7 +20,8 @@
|
|||||||
|
|
||||||
__CDECLS_BEGIN
|
__CDECLS_BEGIN
|
||||||
|
|
||||||
#define K_TASK_NAME_MAX (16u)
|
#define K_TASK_NAME_LEN_MAX (15u)
|
||||||
|
#define K_TASK_NAME_MAX (K_TASK_NAME_LEN_MAX + 1)
|
||||||
#define K_TASK_STK_SIZE_MIN (sizeof(cpu_context_t))
|
#define K_TASK_STK_SIZE_MIN (sizeof(cpu_context_t))
|
||||||
|
|
||||||
// task state is just a flag, indicating which manager list we are in.
|
// task state is just a flag, indicating which manager list we are in.
|
||||||
|
@@ -125,7 +125,7 @@ __API__ k_err_t tos_task_create(k_task_t *task,
|
|||||||
task->prio = prio;
|
task->prio = prio;
|
||||||
task->stk_base = stk_base;
|
task->stk_base = stk_base;
|
||||||
task->stk_size = stk_size;
|
task->stk_size = stk_size;
|
||||||
strncpy(task->name, name, K_TASK_NAME_MAX);
|
strncpy(task->name, name, K_TASK_NAME_LEN_MAX);
|
||||||
|
|
||||||
#if TOS_CFG_ROUND_ROBIN_EN > 0u
|
#if TOS_CFG_ROUND_ROBIN_EN > 0u
|
||||||
task->timeslice_reload = timeslice;
|
task->timeslice_reload = timeslice;
|
||||||
|
Reference in New Issue
Block a user