提交 b66a60f0 编写于 作者: O openharmony_ci 提交者: Gitee

!2 修复若干 sampel/wifi-iot example_samgr 编译问题

Merge pull request !2 from nonsolus/samgr-example
......@@ -28,5 +28,8 @@ static_library("example_samgr") {
"//kernel/liteos_m/components/cmsis",
"//foundation/distributedschedule/interfaces/kits/samgr_lite/samgr",
"//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
......@@ -18,6 +18,7 @@
#include <ohos_init.h>
#include <samgr_lite.h>
#include <cmsis_os.h>
#include "time_adapter.h"
typedef struct BootTestExample {
Service service;
......
......@@ -18,6 +18,8 @@
#include <securec.h>
#include <los_base.h>
#include <cmsis_os.h>
#include "time_adapter.h"
#include "hctest.h"
#define TEST_LEN 10
#define WAIT_PUB_PROC 1000
......
......@@ -22,6 +22,8 @@
#include "feature.h"
#include "service.h"
#include "samgr_lite.h"
#include "time_adapter.h"
#include "hctest.h"
#define WAIT_FEATURE_PROC 1000
enum MessageId {
......
......@@ -111,7 +111,7 @@ static TaskConfig GetTaskConfig(Service *service)
TaskConfig config = {LEVEL_HIGH, PRI_NORMAL,
0x800, 16, SHARED_TASK};
if (service == &g_maintenExample4) {
config.priority = PRI_HIGH;
config.priority = PRI_ABOVE_NORMAL;
config.stackSize = 0x400;
}
return config;
......
......@@ -21,6 +21,8 @@
#include "feature.h"
#include "service.h"
#include "samgr_lite.h"
#include "time_adapter.h"
#include "hctest.h"
typedef struct DefaultFeatureApi {
INHERIT_IUNKNOWN;
......
......@@ -18,6 +18,7 @@
#include <cmsis_os.h>
#include "service.h"
#include "samgr_lite.h"
#include "time_adapter.h"
#define TOTAL_SPEC_TASK_NUM 19
static const char *g_specTaskService[] = {
......
......@@ -18,6 +18,7 @@
#include <ohos_init.h>
#include <samgr_lite.h>
#include <cmsis_os.h>
#include "time_adapter.h"
static const char *GetName(Service *service);
static BOOL Initialize(Service *service, Identity identity);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册