1 Star 0 Fork 5.1K

youguilin / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
overview-10.md 1.22 KB
一键复制 编辑 原始数据 按行查看 历史
mamingshuai 提交于 2021-06-02 01:00 . update OpenHarmony 2.0 Canary

Overview

This document uses the I2C driver as an example to describe how to develop platform drivers based on the hardware driver foundation (HDF).

CAUTION: The sample code in this document is for reference only and cannot be directly used for commercial integration.

When to Use

The HDF provides a standard driver framework for common peripherals. To use the APIs provided by the HDF to perform operations on peripherals, you only need to adapt the specific driver to the HDF.

In this example, an I2C driver is used. Figure 1 shows the sequence diagram of the I2C driver.

Figure 1 I2C driver sequence diagram

  • User Business: business-triggered driver
  • i2cManagerEntry: entry to the I2C manager, which is used to register the I2C manager with the HDF
  • I2cManager: I2C manager, which manages the I2C controller
  • I2cCntlr: I2C controller
  • i2cDriverEntry: entry to the I2C controller, which is used to register the I2C controller with the HDF
1
https://gitee.com/yougl/docs.git
git@gitee.com:yougl/docs.git
yougl
docs
docs
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891