diff --git a/.gitee/ISSUE_TEMPLATE.zh-CN.md b/.gitee/ISSUE_TEMPLATE.zh-CN.md deleted file mode 100755 index f09d98d..0000000 --- a/.gitee/ISSUE_TEMPLATE.zh-CN.md +++ /dev/null @@ -1,13 +0,0 @@ -### 该问题是怎么引起的? - - - -### 重现步骤 - - - -### 报错信息 - - - - diff --git a/.gitee/PULL_REQUEST_TEMPLATE.zh-CN.md b/.gitee/PULL_REQUEST_TEMPLATE.zh-CN.md deleted file mode 100755 index 33948fd..0000000 --- a/.gitee/PULL_REQUEST_TEMPLATE.zh-CN.md +++ /dev/null @@ -1,15 +0,0 @@ -### 相关的Issue - - -### 原因(目的、解决的问题等) - - -### 描述(做了什么,变更了什么) - - -### 测试用例(新增、改动、可能影响的功能) - - - - - diff --git a/LICENSE b/LICENSE old mode 100755 new mode 100644 diff --git a/README.md b/README.md new file mode 100755 index 0000000..de3f0e4 --- /dev/null +++ b/README.md @@ -0,0 +1,30 @@ +# IoT Subsystem + +- [Introduction](#section11660541593) +- [Directory Structure](#section1464106163817) +- [Repositories Involved](#section1718733212019) + +## Introduction + +The IoT subsystem provides samples for integrating third-party SDKs. For details, see [Third-Party SDK Integration](https://device.harmonyos.com/en/docs/develop/demo/oem_device_wifi_sdk-0000001054412155). + +## Directory Structure + +``` +domains/iot/ # IoT subsystem +└── link + ├── BUILD.gn # Build script + ├── demolink # Code for adapting third-party APIs to OpenHarmonyOS + │ ├── BUILD.gn + │ ├── demosdk_adapter.c + │ └── demosdk_adapter.h + └── libbuild # Code for building third-party SDKs + ├── BUILD.gn + ├── demosdk.c + └── demosdk.h +``` + +## Repositories Involved + +iot\_link + diff --git a/README_zh.md b/README_zh.md new file mode 100755 index 0000000..e93492d --- /dev/null +++ b/README_zh.md @@ -0,0 +1,30 @@ +# IOT子系统 + +- [简介](#section11660541593) +- [目录](#section1464106163817) +- [涉及仓](#section1718733212019) + +## 简介 + +IOT子系统为平台开发者提供了集成三方SDK的示例参考,具体集成方法参见《[集成三方SDK](https://device.harmonyos.com/cn/docs/develop/demo/oem_device_wifi_sdk-0000001054412155)》指导文档。 + +## 目录 + +``` +domains/iot/ # 仓目录 +└── link + ├── BUILD.gn # 构建脚本 + ├── demolink # 三方厂商与平台接口的适配层构建目录 + │ ├── BUILD.gn + │ ├── demosdk_adapter.c + │ └── demosdk_adapter.h + └── libbuild # 三方厂商SDK构建目录 + ├── BUILD.gn + ├── demosdk.c + └── demosdk.h +``` + +## 涉及仓 + +iot\_link + diff --git a/demolink/BUILD.gn b/demolink/BUILD.gn index 8da7e7a..ad6cf1d 100755 --- a/demolink/BUILD.gn +++ b/demolink/BUILD.gn @@ -9,14 +9,14 @@ # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and -# limitations under the License. +# limitations under the License. import("//build/lite/config/component/lite_component.gni") static_library("demolinkadapter") { sources = [ "demosdk_adapter.c" ] include_dirs = [ - "//kernel/liteos_m/kal", + "//kernel/liteos_m/kal/cmsis", "//domains/iot/link/demolink", ] } diff --git a/demolink/demosdk_adapter.c b/demolink/demosdk_adapter.c index 7e81361..aecd2a7 100755 --- a/demolink/demosdk_adapter.c +++ b/demolink/demosdk_adapter.c @@ -16,8 +16,6 @@ #include "demosdk_adapter.h" #include -#include "kal.h" - #include "cmsis_os2.h" #define MS_CNT 1000 @@ -53,6 +51,6 @@ int DemoSdkCreateTask(unsigned int *handle, const struct TaskPara *para) void DemoSdkSleepMs(int ms) { - KalDelayUs(MS_CNT * ms); + usleep(MS_CNT * ms); }