Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
不穿格子衫的农民
TencentOS Tiny
提交
9d36cbef
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 搜索 >>
提交
9d36cbef
编写于
4月 01, 2021
作者:
M
mculover666
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add support for the version info
上级
97fca5e4
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
34 addition
and
1 deletion
+34
-1
board/TencentOS_tiny_EVB_MX_Plus/BSP/Src/main.c
board/TencentOS_tiny_EVB_MX_Plus/BSP/Src/main.c
+1
-1
kernel/core/include/tos_k.h
kernel/core/include/tos_k.h
+1
-0
kernel/core/include/tos_version.h
kernel/core/include/tos_version.h
+32
-0
未找到文件。
board/TencentOS_tiny_EVB_MX_Plus/BSP/Src/main.c
浏览文件 @
9d36cbef
...
...
@@ -17,7 +17,7 @@ __weak void application_entry(void *arg)
int
main
(
void
)
{
board_init
();
printf
(
"Welcome to TencentOS tiny
\r\n
"
);
printf
(
"Welcome to TencentOS tiny
(%s)
\r\n
"
,
TOS_VERSION
);
osKernelInitialize
();
// TOS Tiny kernel initialize
osThreadCreate
(
osThread
(
application_entry
),
NULL
);
// Create TOS Tiny task
osKernelStart
();
// Start TOS Tiny
...
...
kernel/core/include/tos_k.h
浏览文件 @
9d36cbef
...
...
@@ -67,6 +67,7 @@
#endif
#endif
#include <tos_global.h>
#include <tos_version.h>
#endif
/* _TOS_K_H_ */
kernel/core/include/tos_version.h
0 → 100644
浏览文件 @
9d36cbef
/*----------------------------------------------------------------------------
* Tencent is pleased to support the open source community by making TencentOS
* available.
*
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
* If you have downloaded a copy of the TencentOS binary from Tencent, please
* note that the TencentOS binary is licensed under the BSD 3-Clause License.
*
* If you have downloaded a copy of the TencentOS source code from Tencent,
* please note that TencentOS source code is licensed under the BSD 3-Clause
* License, except for the third-party components listed below which are
* subject to different license terms. Your integration of TencentOS into your
* own projects may require compliance with the BSD 3-Clause License, as well
* as the other licenses applicable to the third-party components included
* within TencentOS.
*---------------------------------------------------------------------------*/
#ifndef _TOS_VERSION_H_
#define _TOS_VERSION_H_
// the format of the tencentos-tiny version is major.minor.patch
// major is updated for major changes that will need user code changes
// minor is updated for minor changes/bug fixes that may need user code changes
// patch is updated for patch changes/bug fixes that should not need user code changes
#define TOS_VERSION_MAJOR 0x02
#define TOS_VERSION_MINOR 0x02
#define TOS_VERSION_PATCH 0x00
#define TOS_VERSION "2.2.0"
#endif
/* _TOS_VERSION_H_ */
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录