提交 59bbbd98 编写于 作者: M mamingshuai

update openharmony 1.0.1

上级 4cca93f7
### 该问题是怎么引起的?
### 重现步骤
### 报错信息
### 相关的Issue
### 原因(目的、解决的问题等)
### 描述(做了什么,变更了什么)
### 测试用例(新增、改动、可能影响的功能)
文件模式从 100755 更改为 100644
# IoT Subsystem<a name="EN-US_TOPIC_0000001085756528"></a>
- [Introduction](#section11660541593)
- [Directory Structure](#section1464106163817)
- [Repositories Involved](#section1718733212019)
## Introduction<a name="section11660541593"></a>
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<a name="section1464106163817"></a>
```
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<a name="section1718733212019"></a>
iot\_link
# IOT子系统<a name="ZH-CN_TOPIC_0000001085756528"></a>
- [简介](#section11660541593)
- [目录](#section1464106163817)
- [涉及仓](#section1718733212019)
## 简介<a name="section11660541593"></a>
IOT子系统为平台开发者提供了集成三方SDK的示例参考,具体集成方法参见《[集成三方SDK](https://device.harmonyos.com/cn/docs/develop/demo/oem_device_wifi_sdk-0000001054412155)》指导文档。
## 目录<a name="section1464106163817"></a>
```
domains/iot/ # 仓目录
└── link
├── BUILD.gn # 构建脚本
├── demolink # 三方厂商与平台接口的适配层构建目录
│ ├── BUILD.gn
│ ├── demosdk_adapter.c
│ └── demosdk_adapter.h
└── libbuild # 三方厂商SDK构建目录
├── BUILD.gn
├── demosdk.c
└── demosdk.h
```
## 涉及仓<a name="section1718733212019"></a>
iot\_link
......@@ -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",
]
}
......@@ -16,8 +16,6 @@
#include "demosdk_adapter.h"
#include <stdio.h>
#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);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册