From 55b5dbe167e47ba25284b0751daee241cc60e95c Mon Sep 17 00:00:00 2001 From: duangavin123 Date: Fri, 20 Aug 2021 18:06:53 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=AF=BC=E5=85=A5OpenHarmony=E5=B7=A5?= =?UTF-8?q?=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: duangavin123 --- en/device-dev/get-code/sourcecode-acquire.md | 43 +++++++++---------- .../porting/porting-smallchip-driver-oom.md | 4 +- .../porting-smallchip-driver-overview.md | 4 +- .../device-dev/get-code/sourcecode-acquire.md | 32 +++++++------- .../porting/porting-smallchip-driver-oom.md | 4 +- .../porting-smallchip-driver-overview.md | 2 +- 6 files changed, 43 insertions(+), 46 deletions(-) diff --git a/en/device-dev/get-code/sourcecode-acquire.md b/en/device-dev/get-code/sourcecode-acquire.md index 3560b5acc2..6e7d6a63ba 100644 --- a/en/device-dev/get-code/sourcecode-acquire.md +++ b/en/device-dev/get-code/sourcecode-acquire.md @@ -21,9 +21,6 @@ OpenHarmony is an open-source project launched by the OpenAtom Foundation. The p The open-source code repositories are available at [https://openharmony.gitee.com](https://openharmony.gitee.com). ->![](../public_sys-resources/icon-note.gif) **NOTE:** ->At present, OpenHarmony source code can only be compiled in the Linux environment. - ## Overview of Source Code Acquisition This document describes how to acquire OpenHarmony source code and provides its directory structure. The OpenHarmony code is open to you as [bundles](../bundles/bundles-standard-rules.md), which can be obtained in any of the following ways: @@ -51,7 +48,7 @@ This document describes how to acquire OpenHarmony source code and provides its 1. Register your account with Gitee. 2. Register an SSH public key for access to Gitee. -3. Install the [git client](http://git-scm.com/book/en/v2/Getting-Started-Installing-Git) and [git-lfs](https://gitee.com/vcs-all-in-one/git-lfs?_from=gitee_search#downloading), and configure basic user information. +3. Install the [git client](http://git-scm.com/book/zh/v2/%E8%B5%B7%E6%AD%A5-%E5%AE%89%E8%A3%85-Git) and [git-lfs](https://gitee.com/vcs-all-in-one/git-lfs?_from=gitee_search#downloading), and configure basic user information. ``` git config --global user.name "yourname" @@ -195,7 +192,7 @@ You must install **Node.js** and HPM on your local PC. The installation proced To ensure the download performance, you are advised to download the source code or the corresponding solution from the image library of the respective site listed in the table below. >![](../public_sys-resources/icon-note.gif) **NOTE:** ->- The table below provides only the sites for downloading the latest OpenHarmony master and LTS code. For details about how to obtain the source code of earlier versions, see the [Release Notes](https://gitee.com/openharmony/docs/tree/master/en/release-notes/Readme.md). +>- The table below provides only the sites for downloading the latest OpenHarmony master and LTS code. For details about how to obtain the source code of earlier versions, see the [Release Notes](https://gitee.com/openharmony/docs/blob/master/en/release-notes/Readme.md). >- The Master 1.0 version is no longer maintained. **Table 1** Sites for acquiring source code from image sites @@ -212,56 +209,56 @@ To ensure the download performance, you are advised to download the source code

Full code (for mini and small systems)

-

1.1.1

+

1.1.2

-

Download

+

Download

-

Download

+

Download

Hi3861 solution (binary)

-

1.1.1

+

1.1.2

-

Download

+

Download

-

Download

+

Download

Hi3518 solution (binary)

-

1.1.1

+

1.1.2

-

Download

+

Download

-

Download

+

Download

Hi3516 solution (binary)

-

1.1.1

+

1.1.2

-

Download

+

Download

-

Download

+

Download

RELEASE-NOTES

-

1.1.1

+

1.1.2

-

Download

+

Download

-

-

+

-

Master Code

Version Information

-

Site

+

Site

-

SHA-256 Verification Code

+

SHA-256 Verification Code

Full code (for standard systems)

@@ -322,7 +319,7 @@ To ensure the download performance, you are advised to download the source code

Version Information

-

Site

+

Site

SHA-256 Verification Code

diff --git a/en/device-dev/porting/porting-smallchip-driver-oom.md b/en/device-dev/porting/porting-smallchip-driver-oom.md index 76c1b0741c..7c70502ce1 100644 --- a/en/device-dev/porting/porting-smallchip-driver-oom.md +++ b/en/device-dev/porting/porting-smallchip-driver-oom.md @@ -65,7 +65,7 @@ The LCD drivers are stored in **//drivers/framework/model/display/driver/panel* This section describes how to port a touchscreen driver. The touchscreen drivers are stored in the source code directory **//drivers/framework/model/input/driver/touchscreen**. To port a touchscreen driver, register a **ChipDevice** model instance with the system. -For details about how to develop a touchscreen driver, see [Touchscreen Development Guidelines](https://gitee.com/openharmony/docs/blob/master/en/device-dev/driver/touchscreen.md). +For details about how to develop a touchscreen driver, see [Touchscreen Development Guidelines](../driver/driver-peripherals-touch-des.md). 1. Create a touchscreen driver. @@ -199,7 +199,7 @@ As shown in [Figure 1](#fig155920160203), the part on the left manages WLAN dev >![](../public_sys-resources/icon-note.gif) **NOTE:** ->For details about the API development, see [WLAN Development Guidelines](https://gitee.com/openharmony/docs/blob/master/en/device-dev/driver/wlan.md). +>For details about the API development, see [WLAN Development Guidelines](../driver/driver-peripherals-external-des.md). The porting procedure is as follows: diff --git a/en/device-dev/porting/porting-smallchip-driver-overview.md b/en/device-dev/porting/porting-smallchip-driver-overview.md index f0d29c9930..c6de1de721 100644 --- a/en/device-dev/porting/porting-smallchip-driver-overview.md +++ b/en/device-dev/porting/porting-smallchip-driver-overview.md @@ -1,11 +1,11 @@ # Overview -Drivers can be classified as platform drivers or device drivers. The platform drivers are generally in the SoC, such as the GPIO, I2C, and SPI drivers. The device drivers are typically ouside of the SoC, such as the LCD, TP, and WLAN drivers. +Drivers can be classified as platform drivers or device drivers. The platform drivers are generally in the SoC, such as the GPIO, I2C, and SPI drivers. The device drivers are typically outside of the SoC, such as the LCD, TP, and WLAN drivers. **Figure 1** OpenHarmony driver classification ![](figure/分类.png) -The Hardware Driver Foundation \(HDF\) is designed to work across OSs. The HDF driver framework provides strong support for drivers to achieve this goal. During HDF driver development, you are advised to use only the APIs provided by the HDF driver framework. Otherwise, the driver cannot be used across OSs. Before driver development, familiarize yourself with the [HDF](https://gitee.com/openharmony/docs/blob/master/en/device-dev/driver/hdf.md). +The Hardware Driver Foundation \(HDF\) is designed to work across OSs. The HDF driver framework provides strong support for drivers to achieve this goal. During HDF driver development, you are advised to use only the APIs provided by the HDF driver framework. Otherwise, the driver cannot be used across OSs. Before driver development, familiarize yourself with the [HDF](../driver/driver-hdf-overview.md). diff --git a/zh-cn/device-dev/get-code/sourcecode-acquire.md b/zh-cn/device-dev/get-code/sourcecode-acquire.md index 34ec29314c..66b9a1ff68 100644 --- a/zh-cn/device-dev/get-code/sourcecode-acquire.md +++ b/zh-cn/device-dev/get-code/sourcecode-acquire.md @@ -189,7 +189,7 @@ OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及 为了获得更好的下载性能,您可以选择从以下站点的镜像库获取源码或者对应的解决方案。 >![](../public_sys-resources/icon-note.gif) **说明:** ->- 本部分只提供OpenHarmony Master最新版本和LTS最新版本的源码获取方式, 其他版本源码获取方式以及具体版本信息请参考[Release-Notes](https://gitee.com/openharmony/docs/blob/master/zh-cn/release-notes/Readme.md) +>- 本部分只提供OpenHarmony Master最新版本和LTS最新版本的源码获取方式, 其他版本源码获取方式以及具体版本信息请参考[Release-Notes](https://gitee.com/openharmony/docs/blob/master/zh-cn/release-notes/Readme.md)。 >- 当前Master 1.0版本已经不再维护。 **表 1** 源码获取路径 @@ -206,47 +206,47 @@ OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及

全量代码(轻量和小型系统)

-

1.1.1

+

1.1.2

-

站点

+

站点

-

SHA256 校验码

+

SHA256校验码

Hi3861解决方案(二进制)

-

1.1.1

+

1.1.2

-

站点

+

站点

-

SHA256 校验码

+

SHA256校验码

Hi3518解决方案(二进制)

-

1.1.1

+

1.1.2

-

站点

+

站点

-

SHA256 校验码

+

SHA256校验码

Hi3516解决方案(二进制)

-

1.1.1

+

1.1.2

-

站点

+

站点

-

SHA256 校验码

+

SHA256校验码

RELEASE-NOTES

-

1.1.1

+

1.1.2

-

站点

+

站点

-

-

+

-

Master版本源码

diff --git a/zh-cn/device-dev/porting/porting-smallchip-driver-oom.md b/zh-cn/device-dev/porting/porting-smallchip-driver-oom.md index 353aa15d2a..1f8e6c641f 100644 --- a/zh-cn/device-dev/porting/porting-smallchip-driver-oom.md +++ b/zh-cn/device-dev/porting/porting-smallchip-driver-oom.md @@ -65,7 +65,7 @@ 本节描述如何移植触摸屏驱动。触摸屏的器件驱动被放置在源码目录//drivers/framework/model/input/driver/touchscreen中。 移植触摸屏驱动主要工作是向系统注册ChipDevice模型实例。 -详细的驱动开发指导,请参考 [TOUCHSCREEN开发指导](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/driver/TOUCHSCREEN.md)。 +详细的驱动开发指导,请参考 [TOUCHSCREEN开发指导](../driver/driver-peripherals-touch-des.md)。 1. 创建触摸屏器件驱动 @@ -199,7 +199,7 @@ WLAN驱动分为两部分,一部分负责管理WLAN设备,另一个部分负 >![](../public_sys-resources/icon-note.gif) **说明:** ->详细的接口开发指导,请参考[WLAN开发](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/driver/WLAN.md)。 +>详细的接口开发指导,请参考[WLAN开发](../driver/driver-peripherals-external-des.md)。 具体的移植步骤如下: diff --git a/zh-cn/device-dev/porting/porting-smallchip-driver-overview.md b/zh-cn/device-dev/porting/porting-smallchip-driver-overview.md index bba3736632..699970df8f 100644 --- a/zh-cn/device-dev/porting/porting-smallchip-driver-overview.md +++ b/zh-cn/device-dev/porting/porting-smallchip-driver-overview.md @@ -7,5 +7,5 @@ ![](figure/分类.png) -HDF驱动被设计为可以跨OS使用的驱动程序,HDF驱动框架会为驱动达成这个目标提供有力的支撑。开发HDF驱动中,请尽可能只使用HDF驱动框架提供的接口,否则会导致驱动丧失跨OS使用的特性。在开始驱动开发前,建议先了解[HDF驱动框架](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/driver/HDF%E9%A9%B1%E5%8A%A8%E6%A1%86%E6%9E%B6.md)。 +HDF驱动被设计为可以跨OS使用的驱动程序,HDF驱动框架会为驱动达成这个目标提供有力的支撑。开发HDF驱动中,请尽可能只使用HDF驱动框架提供的接口,否则会导致驱动丧失跨OS使用的特性。在开始驱动开发前,建议先了解[HDF驱动框架](../driver/driver-hdf-overview.md)。 -- GitLab