未验证 提交 1e47a805 编写于 作者: O openharmony_ci 提交者: Gitee

!9080 移植GPIO适配更新#I5OCFB--不涉及翻译

Merge pull request !9080 from Austin/master
......@@ -358,7 +358,7 @@ In addition, you need to add the hardware configuration description file of the
#### GPIO Adaptation
1. The chip driver adaptation file is stored in the `//drivers/adapter/platform` directory. Add the `gpio_asr.c` and `gpio_asr.h` files to the `gpio` directory, and add the compilation conditions of the new driver file to `BUILD.gn`.
1. The chip driver adaptation file is stored in the `//drivers/hdf_core/adapter/platform` directory. Add the `gpio_asr.c` file to the `gpio` directory, and add the compilation conditions of the new driver file to `BUILD.gn`.
```
if (defined(LOSCFG_SOC_COMPANY_ASRMICRO)) {
......@@ -473,7 +473,7 @@ The compilation option entry of the subsystem is in the `config.json` file of th
The source code of the lwIP component is stored in `//third_party/lwip`. The kernel in OpenHarmony is customized in `//kernel/liteos_m/components/net/lwip-2.1`, including the redefinition of some interfaces and structures.
For details about the porting process, see [lwIP Module Adaptation](porting-chip-board-lwip.md ).
For details about the porting process, see [lwIP Module Adaptation](porting-chip-board-lwip.md).
In this example, the path for setting lwip in the `config.json` file is as follows:
......
......@@ -358,7 +358,7 @@ LOSCFG_DRIVERS_HDF_PLATFORM=y
#### GPIO适配
1. 芯片驱动适配文件位于`//drivers/adapter/platform`目录,在gpio目录增加gpio_asr.c和gpio_asr.h文件,在BUILD.gn中增加新增的驱动文件编译条件:
1. 芯片驱动适配文件位于`//drivers/hdf_core/adapter/platform`目录,在gpio目录增加gpio_asr.c文件,在BUILD.gn中增加新增的驱动文件编译条件:
```
if (defined(LOSCFG_SOC_COMPANY_ASRMICRO)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册