From 7cc438df2e97756204216516ad651396a2b1c3fd Mon Sep 17 00:00:00 2001 From: annie_wangli Date: Thu, 9 Sep 2021 16:09:34 +0800 Subject: [PATCH 1/7] update docs Signed-off-by: annie_wangli --- en/device-dev/driver/driver-peripherals.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/device-dev/driver/driver-peripherals.md b/en/device-dev/driver/driver-peripherals.md index 02e7a9e357a..2269b5f9dde 100644 --- a/en/device-dev/driver/driver-peripherals.md +++ b/en/device-dev/driver/driver-peripherals.md @@ -1,4 +1,4 @@ -# Peripherals +# Peripheral Driver Development - **[LCD](driver-peripherals-lcd-des.md)** -- Gitee From c134225a6ab9a14fc3c8a36a905c9a01afadeed1 Mon Sep 17 00:00:00 2001 From: annie_wangli Date: Sat, 18 Sep 2021 14:18:48 +0800 Subject: [PATCH 2/7] update cods Signed-off-by: annie_wangli --- en/device-dev/kernel/kernel-mini-appx-lib-posix.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/en/device-dev/kernel/kernel-mini-appx-lib-posix.md b/en/device-dev/kernel/kernel-mini-appx-lib-posix.md index ebed9d85d51..e5cc7ba886d 100644 --- a/en/device-dev/kernel/kernel-mini-appx-lib-posix.md +++ b/en/device-dev/kernel/kernel-mini-appx-lib-posix.md @@ -250,7 +250,8 @@ The OpenHarmony kernel uses the **musl libc** library and self-developed APIs

Deletes a file.

-

#include <fcntl.h

+

#include <fcntl.h>

int open(const char *path, int oflags, ...);

-- Gitee From 9bdf6acb1dca19217305da285bd26a0fccb7270a Mon Sep 17 00:00:00 2001 From: annie_wangli Date: Sat, 18 Sep 2021 16:25:00 +0800 Subject: [PATCH 3/7] update docs Signed-off-by: annie_wangli --- en/device-dev/driver/driver-platform-watchdog-des.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/en/device-dev/driver/driver-platform-watchdog-des.md b/en/device-dev/driver/driver-platform-watchdog-des.md index ddaddc1abe0..6b907fcdf0d 100644 --- a/en/device-dev/driver/driver-platform-watchdog-des.md +++ b/en/device-dev/driver/driver-platform-watchdog-des.md @@ -104,7 +104,7 @@ A watchdog, also called a watchdog timer, is a hardware timing device. If an err Use **WatchdogOpen** to open a watchdog. A system may have multiple watchdogs. You can open the specified watchdog by using the ID. -int32\_t WatchdogOpen\(int16\_t wdtId\); +DevHandle WatchdogOpen\(int16\_t wdtId\); **Table 2** Description of WatchdogOpen @@ -201,7 +201,7 @@ if (ret != 0) { ### Setting the Timeout Duration -int32\_t WatchdogSetTimeout\(PalHandle \*handle, uint32\_t seconds\); +int32\_t WatchdogSetTimeout\(DevHandle \*handle, uint32\_t seconds\); **Table 4** Description of WatchdogSetTimeout @@ -253,7 +253,7 @@ if (ret != 0) { ### Obtaining the Timeout Duration -int32\_t WatchdogGetTimeout\(PalHandle \*handle, uint32\_t \*seconds\); +int32\_t WatchdogGetTimeout\(DevHandle \*handle, uint32\_t \*seconds\); **Table 5** Description of WatchdogGetTimeout -- Gitee From a148b95bf7774871027626a7a933ed6e772b8f11 Mon Sep 17 00:00:00 2001 From: annie_wangli Date: Sat, 18 Sep 2021 19:16:48 +0800 Subject: [PATCH 4/7] update docs Signed-off-by: annie_wangli --- en/device-dev/subsystems/oem_subsys_toolchain_hdc_guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/device-dev/subsystems/oem_subsys_toolchain_hdc_guide.md b/en/device-dev/subsystems/oem_subsys_toolchain_hdc_guide.md index 8116d317a2f..dda96ed5570 100644 --- a/en/device-dev/subsystems/oem_subsys_toolchain_hdc_guide.md +++ b/en/device-dev/subsystems/oem_subsys_toolchain_hdc_guide.md @@ -45,7 +45,7 @@ This section describes how to set up the hdc\_std environment and use its common **Obtaining hdc\_std:** -Obtain hdc\_std from the **developtools\_hdc\_standard** repository in the **prebuilt** directory. +Obtain hdc\_std in the **prebuilt** directory at the **developtools\_hdc\_standard** repository[hdc标准开发工具](https://gitee.com/openharmony/developtools_hdc_standard). **Example:** -- Gitee From 3887608199bb4597cfdbe4c5360cc6ab832a7470 Mon Sep 17 00:00:00 2001 From: annie_wangli Date: Sat, 18 Sep 2021 19:29:00 +0800 Subject: [PATCH 5/7] update docs Signed-off-by: annie_wangli --- en/device-dev/subsystems/oem_subsys_toolchain_hdc_guide.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/en/device-dev/subsystems/oem_subsys_toolchain_hdc_guide.md b/en/device-dev/subsystems/oem_subsys_toolchain_hdc_guide.md index dda96ed5570..9ff16c8be46 100644 --- a/en/device-dev/subsystems/oem_subsys_toolchain_hdc_guide.md +++ b/en/device-dev/subsystems/oem_subsys_toolchain_hdc_guide.md @@ -45,7 +45,7 @@ This section describes how to set up the hdc\_std environment and use its common **Obtaining hdc\_std:** -Obtain hdc\_std in the **prebuilt** directory at the **developtools\_hdc\_standard** repository[hdc标准开发工具](https://gitee.com/openharmony/developtools_hdc_standard). +Obtain **hdc_std** from the **prebuilt** directory at **developtools\_hdc\_standard**(https://gitee.com/openharmony/developtools_hdc_standard). **Example:** @@ -702,5 +702,3 @@ hdc\_std shell - **Solutions** **hdc\_std.exe** requires no installation. It can be directly used on a disk or added to environment variables. Open the cmd window and run the **hdc\_std** command to use **hdc\_std.exe**. - - -- Gitee From 0c603ba63c46a61b864e4c1feda21feaed67d780 Mon Sep 17 00:00:00 2001 From: annie_wangli Date: Sat, 18 Sep 2021 19:33:18 +0800 Subject: [PATCH 6/7] update docs Signed-off-by: annie_wangli --- en/device-dev/subsystems/oem_subsys_toolchain_hdc_guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/device-dev/subsystems/oem_subsys_toolchain_hdc_guide.md b/en/device-dev/subsystems/oem_subsys_toolchain_hdc_guide.md index 9ff16c8be46..60c8b47309c 100644 --- a/en/device-dev/subsystems/oem_subsys_toolchain_hdc_guide.md +++ b/en/device-dev/subsystems/oem_subsys_toolchain_hdc_guide.md @@ -45,7 +45,7 @@ This section describes how to set up the hdc\_std environment and use its common **Obtaining hdc\_std:** -Obtain **hdc_std** from the **prebuilt** directory at **developtools\_hdc\_standard**(https://gitee.com/openharmony/developtools_hdc_standard). +Obtain **hdc_std** from the **prebuilt** directory at **[developtools\_hdc\_standard]**(https://gitee.com/openharmony/developtools_hdc_standard). **Example:** -- Gitee From 129e735e1013c1d385b52f4ce6b6047f54e1b788 Mon Sep 17 00:00:00 2001 From: annie_wangli Date: Sat, 18 Sep 2021 19:38:54 +0800 Subject: [PATCH 7/7] update docs Signed-off-by: annie_wangli --- en/device-dev/subsystems/oem_subsys_toolchain_hdc_guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/device-dev/subsystems/oem_subsys_toolchain_hdc_guide.md b/en/device-dev/subsystems/oem_subsys_toolchain_hdc_guide.md index 60c8b47309c..8cb18fe497b 100644 --- a/en/device-dev/subsystems/oem_subsys_toolchain_hdc_guide.md +++ b/en/device-dev/subsystems/oem_subsys_toolchain_hdc_guide.md @@ -45,7 +45,7 @@ This section describes how to set up the hdc\_std environment and use its common **Obtaining hdc\_std:** -Obtain **hdc_std** from the **prebuilt** directory at **[developtools\_hdc\_standard]**(https://gitee.com/openharmony/developtools_hdc_standard). +Obtain **hdc\_std** from the **prebuilt** directory at [developtools\_hdc\_standard](https://gitee.com/openharmony/developtools_hdc_standard). **Example:** -- Gitee