Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
不穿格子衫的农民
TencentOS Tiny
提交
97fca5e4
T
TencentOS Tiny
项目概览
不穿格子衫的农民
/
TencentOS Tiny
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TencentOS Tiny
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
97fca5e4
编写于
4月 01, 2021
作者:
M
mculover666
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix the bug in the storage space of the task name
上级
c68b8620
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
17 addition
and
16 deletion
+17
-16
board/TencentOS_tiny_EVB_MX_Plus/KEIL/hello_world/TencentOS_tiny.uvoptx
...S_tiny_EVB_MX_Plus/KEIL/hello_world/TencentOS_tiny.uvoptx
+13
-13
board/TencentOS_tiny_EVB_MX_Plus/KEIL/hello_world/TencentOS_tiny.uvprojx
..._tiny_EVB_MX_Plus/KEIL/hello_world/TencentOS_tiny.uvprojx
+1
-1
kernel/core/include/tos_task.h
kernel/core/include/tos_task.h
+2
-1
kernel/core/tos_task.c
kernel/core/tos_task.c
+1
-1
未找到文件。
board/TencentOS_tiny_EVB_MX_Plus/KEIL/hello_world/TencentOS_tiny.uvoptx
浏览文件 @
97fca5e4
...
...
@@ -152,25 +152,25 @@
<Bp>
<Number>
0
</Number>
<Type>
0
</Type>
<LineNumber>
2
8
</LineNumber>
<LineNumber>
2
45
</LineNumber>
<EnabledFlag>
1
</EnabledFlag>
<Address>
1342
31898
</Address>
<Address>
1342
29606
</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>
<Filename>
..\..\..\..\
arch\arm\arm-v7m\common\tos_cpu
.c
</Filename>
<ExecCommand></ExecCommand>
<Expression>
\\TencentOS_tiny\../../../../
examples/hello_world/hello_world.c\28
</Expression>
<Expression>
\\TencentOS_tiny\../../../../
arch/arm/arm-v7m/common/tos_cpu.c\245
</Expression>
</Bp>
<Bp>
<Number>
1
</Number>
<Type>
0
</Type>
<LineNumber>
2
45
</LineNumber>
<LineNumber>
2
51
</LineNumber>
<EnabledFlag>
1
</EnabledFlag>
<Address>
1342296
06
</Address>
<Address>
1342296
24
</Address>
<ByteObject>
0
</ByteObject>
<HtxType>
0
</HtxType>
<ManyObjects>
0
</ManyObjects>
...
...
@@ -179,23 +179,23 @@
<BreakIfRCount>
1
</BreakIfRCount>
<Filename>
..\..\..\..\arch\arm\arm-v7m\common\tos_cpu.c
</Filename>
<ExecCommand></ExecCommand>
<Expression>
\\TencentOS_tiny\../../../../arch/arm/arm-v7m/common/tos_cpu.c\2
45
</Expression>
<Expression>
\\TencentOS_tiny\../../../../arch/arm/arm-v7m/common/tos_cpu.c\2
51
</Expression>
</Bp>
<Bp>
<Number>
2
</Number>
<Type>
0
</Type>
<LineNumber>
2
51
</LineNumber>
<LineNumber>
2
8
</LineNumber>
<EnabledFlag>
1
</EnabledFlag>
<Address>
134229624
</Address>
<Address>
0
</Address>
<ByteObject>
0
</ByteObject>
<HtxType>
0
</HtxType>
<ManyObjects>
0
</ManyObjects>
<SizeOfObject>
0
</SizeOfObject>
<BreakByAccess>
0
</BreakByAccess>
<BreakIfRCount>
1
</BreakIfRCount>
<Filename>
..\..\..\..\
arch\arm\arm-v7m\common\tos_cpu
.c
</Filename>
<BreakIfRCount>
0
</BreakIfRCount>
<Filename>
..\..\..\..\
examples\hello_world\hello_world
.c
</Filename>
<ExecCommand></ExecCommand>
<Expression>
\\TencentOS_tiny\../../../../arch/arm/arm-v7m/common/tos_cpu.c\251
</Expression>
<Expression></Expression>
</Bp>
</Breakpoint>
<WatchWindow1>
...
...
@@ -835,7 +835,7 @@
<Group>
<GroupName>
kernel
</GroupName>
<tvExp>
1
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<cbSel>
0
</cbSel>
<RteFlg>
0
</RteFlg>
...
...
board/TencentOS_tiny_EVB_MX_Plus/KEIL/hello_world/TencentOS_tiny.uvprojx
浏览文件 @
97fca5e4
...
...
@@ -16,7 +16,7 @@
<TargetCommonOption>
<Device>
STM32L431RCTx
</Device>
<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>
<Cpu>
IRAM(0x20000000-0x2000FFFF) IROM(0x8000000-0x803FFFF) CLOCK(8000000) FPU2 CPUTYPE("Cortex-M4")
</Cpu>
<FlashUtilSpec></FlashUtilSpec>
...
...
kernel/core/include/tos_task.h
浏览文件 @
97fca5e4
...
...
@@ -20,7 +20,8 @@
__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))
// task state is just a flag, indicating which manager list we are in.
...
...
kernel/core/tos_task.c
浏览文件 @
97fca5e4
...
...
@@ -125,7 +125,7 @@ __API__ k_err_t tos_task_create(k_task_t *task,
task
->
prio
=
prio
;
task
->
stk_base
=
stk_base
;
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
task
->
timeslice_reload
=
timeslice
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录