Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Applications Sample Wifi Iot
提交
571cdc58
A
Applications Sample Wifi Iot
项目概览
OpenHarmony
/
Applications Sample Wifi Iot
大约 1 年 前同步成功
通知
3
Star
24
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
Applications Sample Wifi Iot
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
571cdc58
编写于
10月 05, 2020
作者:
Z
zh-jn
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix serveral samgr-example compile errors
Change-Id: Ib325e0c52acc030f291fc8a32ead794759846be3
上级
af692dbb
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
13 addition
and
1 deletion
+13
-1
app/samgr/BUILD.gn
app/samgr/BUILD.gn
+3
-0
app/samgr/bootstrap_example.c
app/samgr/bootstrap_example.c
+1
-0
app/samgr/broadcast_example.c
app/samgr/broadcast_example.c
+2
-0
app/samgr/feature_example.c
app/samgr/feature_example.c
+2
-0
app/samgr/maintenance_example.c
app/samgr/maintenance_example.c
+1
-1
app/samgr/service_example.c
app/samgr/service_example.c
+2
-0
app/samgr/specified_task_example.c
app/samgr/specified_task_example.c
+1
-0
app/samgr/task_example.c
app/samgr/task_example.c
+1
-0
未找到文件。
app/samgr/BUILD.gn
浏览文件 @
571cdc58
...
@@ -28,5 +28,8 @@ static_library("example_samgr") {
...
@@ -28,5 +28,8 @@ static_library("example_samgr") {
"//kernel/liteos_m/components/cmsis",
"//kernel/liteos_m/components/cmsis",
"//foundation/distributedschedule/interfaces/kits/samgr_lite/samgr",
"//foundation/distributedschedule/interfaces/kits/samgr_lite/samgr",
"//foundation/distributedschedule/interfaces/kits/samgr_lite/communication/broadcast",
"//foundation/distributedschedule/interfaces/kits/samgr_lite/communication/broadcast",
"//foundation/distributedschedule/services/samgr_lite/samgr/source",
"//foundation/distributedschedule/services/samgr_lite/samgr/adapter",
"//test/xts/tools/hctest/include",
]
]
}
}
\ No newline at end of file
app/samgr/bootstrap_example.c
浏览文件 @
571cdc58
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
#include <ohos_init.h>
#include <ohos_init.h>
#include <samgr_lite.h>
#include <samgr_lite.h>
#include <cmsis_os.h>
#include <cmsis_os.h>
#include "time_adapter.h"
typedef
struct
BootTestExample
{
typedef
struct
BootTestExample
{
Service
service
;
Service
service
;
...
...
app/samgr/broadcast_example.c
浏览文件 @
571cdc58
...
@@ -18,6 +18,8 @@
...
@@ -18,6 +18,8 @@
#include <securec.h>
#include <securec.h>
#include <los_base.h>
#include <los_base.h>
#include <cmsis_os.h>
#include <cmsis_os.h>
#include "time_adapter.h"
#include "hctest.h"
#define TEST_LEN 10
#define TEST_LEN 10
#define WAIT_PUB_PROC 1000
#define WAIT_PUB_PROC 1000
...
...
app/samgr/feature_example.c
浏览文件 @
571cdc58
...
@@ -22,6 +22,8 @@
...
@@ -22,6 +22,8 @@
#include "feature.h"
#include "feature.h"
#include "service.h"
#include "service.h"
#include "samgr_lite.h"
#include "samgr_lite.h"
#include "time_adapter.h"
#include "hctest.h"
#define WAIT_FEATURE_PROC 1000
#define WAIT_FEATURE_PROC 1000
enum
MessageId
{
enum
MessageId
{
...
...
app/samgr/maintenance_example.c
浏览文件 @
571cdc58
...
@@ -111,7 +111,7 @@ static TaskConfig GetTaskConfig(Service *service)
...
@@ -111,7 +111,7 @@ static TaskConfig GetTaskConfig(Service *service)
TaskConfig
config
=
{
LEVEL_HIGH
,
PRI_NORMAL
,
TaskConfig
config
=
{
LEVEL_HIGH
,
PRI_NORMAL
,
0x800
,
16
,
SHARED_TASK
};
0x800
,
16
,
SHARED_TASK
};
if
(
service
==
&
g_maintenExample4
)
{
if
(
service
==
&
g_maintenExample4
)
{
config
.
priority
=
PRI_
HIGH
;
config
.
priority
=
PRI_
ABOVE_NORMAL
;
config
.
stackSize
=
0x400
;
config
.
stackSize
=
0x400
;
}
}
return
config
;
return
config
;
...
...
app/samgr/service_example.c
浏览文件 @
571cdc58
...
@@ -21,6 +21,8 @@
...
@@ -21,6 +21,8 @@
#include "feature.h"
#include "feature.h"
#include "service.h"
#include "service.h"
#include "samgr_lite.h"
#include "samgr_lite.h"
#include "time_adapter.h"
#include "hctest.h"
typedef
struct
DefaultFeatureApi
{
typedef
struct
DefaultFeatureApi
{
INHERIT_IUNKNOWN
;
INHERIT_IUNKNOWN
;
...
...
app/samgr/specified_task_example.c
浏览文件 @
571cdc58
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
#include <cmsis_os.h>
#include <cmsis_os.h>
#include "service.h"
#include "service.h"
#include "samgr_lite.h"
#include "samgr_lite.h"
#include "time_adapter.h"
#define TOTAL_SPEC_TASK_NUM 19
#define TOTAL_SPEC_TASK_NUM 19
static
const
char
*
g_specTaskService
[]
=
{
static
const
char
*
g_specTaskService
[]
=
{
...
...
app/samgr/task_example.c
浏览文件 @
571cdc58
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
#include <ohos_init.h>
#include <ohos_init.h>
#include <samgr_lite.h>
#include <samgr_lite.h>
#include <cmsis_os.h>
#include <cmsis_os.h>
#include "time_adapter.h"
static
const
char
*
GetName
(
Service
*
service
);
static
const
char
*
GetName
(
Service
*
service
);
static
BOOL
Initialize
(
Service
*
service
,
Identity
identity
);
static
BOOL
Initialize
(
Service
*
service
,
Identity
identity
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录