提交 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") { ...@@ -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
...@@ -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;
......
...@@ -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
......
...@@ -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 {
......
...@@ -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;
......
...@@ -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;
......
...@@ -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[] = {
......
...@@ -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.
先完成此消息的编辑!
想要评论请 注册