From aedbab2ce3e6b6d5ccbc863bc20422d1040af51c Mon Sep 17 00:00:00 2001 From: Annie_wang Date: Wed, 3 Nov 2021 08:39:49 +0000 Subject: [PATCH] update en/device-dev/driver/driver-platform-i2c-develop.md. Signed-off-by: Annie_wang --- en/device-dev/driver/driver-platform-i2c-develop.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/en/device-dev/driver/driver-platform-i2c-develop.md b/en/device-dev/driver/driver-platform-i2c-develop.md index 695b0ec78f6..b60188cfdd6 100644 --- a/en/device-dev/driver/driver-platform-i2c-develop.md +++ b/en/device-dev/driver/driver-platform-i2c-develop.md @@ -8,7 +8,7 @@ ## Overview -The Inter-Integrated Circuit \(I2C\) bus is a simple and bidirectional two-wire synchronous serial bus developed by Philips. In the HDF framework, the I2C module uses the unified service mode for API adaptation. In this mode, a device service is used as the I2C manager to handle external access requests in a unified manner, which is reflected in the configuration file. The unified service mode applies to the scenario where there are many device objects of the same type, for example, when the I2C module has more than 10 controllers. If the independent service mode is used, more device nodes need to be configured and memory resources will be consumed by services. +The Inter-Integrated Circuit \(I2C\) bus is a simple and bidirectional two-wire synchronous serial bus developed by Philips. In the Hardware Driver Foundation (HDF) framework, the I2C module uses the unified service mode for API adaptation. In this mode, a device service is used as the I2C manager to handle external access requests in a unified manner, which is reflected in the configuration file. The unified service mode applies to the scenario where there are many device objects of the same type, for example, when the I2C module has more than 10 controllers. If the independent service mode is used, more device nodes need to be configured and memory resources will be consumed by services. **Figure 1** Unified service mode ![](figures/unified-service-mode-8.png "unified-service-mode-8") @@ -380,7 +380,7 @@ The following uses **i2c\_hi35xx.c** as an example to present the contents tha static void Hi35xxI2cRemoveByNode(const struct DeviceResourceNode *node) { ... - // (Mandatory) Call the I2cCntlrGet function obtain the I2cCntlr object based on busid of the device, and call the I2cCntlrRemove function to release the I2cCntlr object. + // (Mandatory) Call the I2cCntlrGet function to obtain the I2cCntlr object based on busid of the device, and call the I2cCntlrRemove function to release the I2cCntlr object. cntlr = I2cCntlrGet(bus); if (cntlr != NULL && cntlr->priv == node) { ... -- Gitee