diff --git a/en/readme/utils.md b/en/readme/utils.md index 17c81e3abc86fdd1f3643efc9c2b76ba52d62a69..f475a527bd10e3b44405859baefe66e12bbb2ed3 100755 --- a/en/readme/utils.md +++ b/en/readme/utils.md @@ -11,7 +11,7 @@ The Utils repository stores basic components of OpenHarmony. These basic compone The Utils library provides the following capabilities on different platforms: -- LiteOS Cortex-M \(Hi3861 platform\): key value \(KV\) store, file operations, timer, IoT peripheral control, and system attribute dumping +- LiteOS Cortex-M \(Hi3861 platform\): key value \(KV\) store, file operations, timer, and system attribute dumping - LiteOS Cortex-A \(Hi3516 or Hi3518 platform\): KV store, timer, JavaScript APIs for device query and data storage, and system attribute dumping **Table 1** Utils capabilities @@ -53,13 +53,6 @@ The Utils library provides the following capabilities on different platforms:

Provides JavaScript APIs for obtaining device information and storing data.

-

IoT peripheral control

- -

LiteOS Cortex-M

- -

Provides the capability of performing operations for peripherals.

- -

System attribute dumping

LiteOS Cortex-M and LiteOS Cortex-A

@@ -73,38 +66,26 @@ The Utils library provides the following capabilities on different platforms: ## Directory Structure ``` -utils/native/lite/ # Root directory +utils/native/lite/ # Root directory ├── file # Implementation of the file system APIs ├── hals # HAL directory -│ └── file # Header files of the hardware abstraction layer for file operations +│ └── file # Header files of the hardware abstraction layer for file operations ├── include # Header files of external APIs ├── js # JavaScript APIs -│ └── builtin +│ └── builtin │ ├── common │ ├── deviceinfokit # Device information kit │ ├── filekit # File kit │ └── kvstorekit # KV store kit -├── kal # KAL directory +├── kal # KAL directory │ └── timer # KAL implementation of the timer -├── kv_store # KV store implementation +├── kv_store # KV store implementation │ ├── innerkits # Internal KV store APIs │ └── src # KV store source file ├── memory │ └── include # Memory pool management APIs -├── os_dump # System attribute dumping -├── timer_task # Timer implementation -└── unittest # Self-test cases - -base/iot_hardware # IoT peripheral control -├── frameworks -│ └── wifiiot_lite # Implementation of the IoT peripheral control module -├── hals -│ └── wifiiot_lite # HAL API declaration -└── interfaces - └── kits # APIs of the IoT peripheral control module - -vendor/hisi/hi3861/hi3861_adapter/hals/iot_hardware # HAL for IoT peripheral control -└── wifiiot_lite # Implementation of the APIs at the HAL +├── os_dump # System attribute dumping +└── timer_task # Timer implementation ``` ## Usage @@ -176,9 +157,7 @@ vendor/hisi/hi3861/hi3861_adapter/hals/iot_hardware # HAL for IoT peripheral co ## Repositories Involved -**utils** +**Utils** [utils\_native\_lite](https://gitee.com/openharmony/utils_native_lite/blob/master/README.md) -[iothardware\_peripheral](https://gitee.com/openharmony/iothardware_peripheral/blob/master/README.md) - diff --git "a/zh-cn/readme/\345\205\254\345\205\261\345\237\272\347\241\200.md" "b/zh-cn/readme/\345\205\254\345\205\261\345\237\272\347\241\200.md" old mode 100644 new mode 100755 index 4b6ecc14b1af267259a5d46033ed50a0a7e0bf66..3dfaebe6bfb6bd8bfb938e025707de3708e63699 --- "a/zh-cn/readme/\345\205\254\345\205\261\345\237\272\347\241\200.md" +++ "b/zh-cn/readme/\345\205\254\345\205\261\345\237\272\347\241\200.md" @@ -11,7 +11,7 @@ 公共基础库在不同平台上提供的能力: -- LiteOS-M内核\(Hi3861平台\):KV\(key value\)存储、文件操作、定时器、IoT外设控制、Dump系统属性。 +- LiteOS-M内核\(Hi3861平台\):KV\(key value\)存储、文件操作、定时器、Dump系统属性。 - LiteOS-A内核\(Hi3516、Hi3518平台\):KV\(key value\)存储、定时器、JS API\(设备查询,数据存储\)、Dump系统属性。 **表 1** 公共基础库功能 @@ -53,13 +53,6 @@

提供获取设备信息,数据存储的JS API。

-

IoT外设控制

- -

LiteOS-M内核

- -

IoT外设控制模块提供对外围设备的操作能力。

- -

Dump系统属性

LiteOS-M内核、LiteOS-A内核

@@ -73,38 +66,26 @@ ## 目录 ``` -utils/native/lite/ # 公共基础库根目录 +utils/native/lite/ # 公共基础库根目录 ├── file # 文件接口实现 ├── hals # HAL目录 -│ └── file # 文件操作硬件抽象层头文件 +│ └── file # 文件操作硬件抽象层头文件 ├── include # 公共基础库对外接口文件 ├── js # JS API目录 -│ └── builtin +│ └── builtin │ ├── common │ ├── deviceinfokit # 设备信息Kit │ ├── filekit # 文件Kit │ └── kvstorekit # KV存储Kit -├── kal # KAL目录 +├── kal # KAL目录 │ └── timer # Timer的KAL实现 -├── kv_store # KV存储实现 +├── kv_store # KV存储实现 │ ├── innerkits # KV存储内部接口 │ └── src # KV存储源文件 ├── memory │ └── include # 内存池管理接口 -├── os_dump # Dump系统属性 -├── timer_task # Timer实现 -└── unittest # 公共基础库自测试用例 - -base/iot_hardware #IoT外设控制 -├── frameworks -│ └── wifiiot_lite #IoT外设控制模块实现 -├── hals -│ └── wifiiot_lite #HAL适配层接口声明 -└── interfaces - └── kits #IoT外设控制模块接口 - -vendor/hisi/hi3861/hi3861_adapter/hals/iot_hardware #IoT外设控制HAL层 -└── wifiiot_lite #HAL适配层接口实现 +├── os_dump # Dump系统属性 +└── timer_task # Timer实现 ``` ## 使用 @@ -176,9 +157,7 @@ vendor/hisi/hi3861/hi3861_adapter/hals/iot_hardware #IoT外设控制HAL层 ## 涉及仓 -**公共基础库** +**公共基础** [utils\_native\_lite](https://gitee.com/openharmony/utils_native_lite/blob/master/README_zh.md) -[iothardware\_peripheral](https://gitee.com/openharmony/iothardware_peripheral/blob/master/README_zh.md) -