From 0158f0d28a7acfca43085caba1356c0aa518f376 Mon Sep 17 00:00:00 2001 From: Annie_wang Date: Wed, 3 Nov 2021 08:06:33 +0000 Subject: [PATCH] update en/device-dev/driver/driver-platform-rtc-develop.md. Signed-off-by: Annie_wang --- en/device-dev/driver/driver-platform-rtc-develop.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/en/device-dev/driver/driver-platform-rtc-develop.md b/en/device-dev/driver/driver-platform-rtc-develop.md index 4041f5453d8..7be78974d7a 100644 --- a/en/device-dev/driver/driver-platform-rtc-develop.md +++ b/en/device-dev/driver/driver-platform-rtc-develop.md @@ -200,7 +200,7 @@ struct RtcMethod {

HDF_STATUS

-

Configure the RTC register based on the register index. One index corresponds to one byte of the configuration value.

+

Configures the RTC register based on the register index. One index corresponds to one byte of the configuration value.

@@ -287,11 +287,11 @@ The following uses **rtc\_hi35xx.c** as an example to present the contents tha uint32_t spiBaseAddr; // Used for address mapping volatile void *remapBaseAddr; // Used for address mapping uint16_t regAddrLength; // Used for address mapping - uint8_t supportAnaCtrl; // Indicates whether anaCtrl is supported. + uint8_t supportAnaCtrl; // Indicates whether ANACTRL is supported. uint8_t supportLock; // Indicates whether lock is supported. uint8_t irq; // Interrupt number uint8_t alarmIndex; // Clock alarm index - uint8_t anaCtrlAddr; // anaCtrl address + uint8_t anaCtrlAddr; // ANACTRL address struct RtcLockAddr lockAddr; // Lock address RtcAlarmCallback cb; // Callback struct OsalMutex mutex; // Mutex @@ -425,7 +425,7 @@ The following uses **rtc\_hi35xx.c** as an example to present the contents tha if (HiRtcSwInit(rtcInfo)! = 0) {// Related to address mapping and interrupt registration ... } - if (HiRtcHwInit(rtcInfo)! = 0) {// Initialize anaCtrl and lockAddr. + if (HiRtcHwInit(rtcInfo)! = 0) {// Initialize ANACTRL and lockAddr. ... } -- Gitee