diff --git a/app/samgr/BUILD.gn b/app/samgr/BUILD.gn index 73b4bd822f99fcb4e346a942ca218204b1be009d..ea85b0c0cd5730fdadc52b9945932cf1d7db7a0d 100755 --- a/app/samgr/BUILD.gn +++ b/app/samgr/BUILD.gn @@ -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 diff --git a/app/samgr/bootstrap_example.c b/app/samgr/bootstrap_example.c index 934441df7449ff62c63007621db66ce147e136bf..05ceab74191e91717de5b29bc4e3bccbbbe5712f 100755 --- a/app/samgr/bootstrap_example.c +++ b/app/samgr/bootstrap_example.c @@ -18,6 +18,7 @@ #include #include #include +#include "time_adapter.h" typedef struct BootTestExample { Service service; diff --git a/app/samgr/broadcast_example.c b/app/samgr/broadcast_example.c index 18d2bba3475042a9170da2f649c596e2f9eaf1ab..47080dc2f61298dea5bb0460445ddf05b41f1e3c 100755 --- a/app/samgr/broadcast_example.c +++ b/app/samgr/broadcast_example.c @@ -18,6 +18,8 @@ #include #include #include +#include "time_adapter.h" +#include "hctest.h" #define TEST_LEN 10 #define WAIT_PUB_PROC 1000 diff --git a/app/samgr/feature_example.c b/app/samgr/feature_example.c index c84abdeddfdb3caf8e3f535cd174d935e88fe0ea..39d73bb102178f756d5939960e75c7418f532f37 100755 --- a/app/samgr/feature_example.c +++ b/app/samgr/feature_example.c @@ -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 { diff --git a/app/samgr/maintenance_example.c b/app/samgr/maintenance_example.c index 160179d29c52d7e768b8de46131aad2e1606bb66..33d677fd3646a7fc716c64ed11c1a2ae3507ee9b 100755 --- a/app/samgr/maintenance_example.c +++ b/app/samgr/maintenance_example.c @@ -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; diff --git a/app/samgr/service_example.c b/app/samgr/service_example.c index 6ec994f83e9c5fd10a28a9bece77dc973e31d683..77027d72a0eba2790287224242988a07d75253b0 100755 --- a/app/samgr/service_example.c +++ b/app/samgr/service_example.c @@ -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; diff --git a/app/samgr/specified_task_example.c b/app/samgr/specified_task_example.c index 4e188cd0cb8930f16027fd17209063c89cd764dc..8c61574d83cb0ce5b8691f1d4d78732d59ba91c9 100755 --- a/app/samgr/specified_task_example.c +++ b/app/samgr/specified_task_example.c @@ -18,6 +18,7 @@ #include #include "service.h" #include "samgr_lite.h" +#include "time_adapter.h" #define TOTAL_SPEC_TASK_NUM 19 static const char *g_specTaskService[] = { diff --git a/app/samgr/task_example.c b/app/samgr/task_example.c index 1d20994c1f17ff0da25e1fc311f334604e1f3f18..5c9061dc763372fefe0fd2e73c942c3ad87f5a04 100755 --- a/app/samgr/task_example.c +++ b/app/samgr/task_example.c @@ -18,6 +18,7 @@ #include #include #include +#include "time_adapter.h" static const char *GetName(Service *service); static BOOL Initialize(Service *service, Identity identity);