From 7cc438df2e97756204216516ad651396a2b1c3fd Mon Sep 17 00:00:00 2001 From: annie_wangli Date: Thu, 9 Sep 2021 16:09:34 +0800 Subject: [PATCH 1/3] 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/3] 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/3] 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