[bsp][drivers][soft_i2c] unify the software I2C driver#11404
Merged
Conversation
CYFS3
requested review from
Rbb666,
kurisaW,
mysterywolf and
supperthomas
as code owners
May 19, 2026 11:42
|
👋 感谢您对 RT-Thread 的贡献!Thank you for your contribution to RT-Thread! 为确保代码符合 RT-Thread 的编码规范,请在你的仓库中执行以下步骤运行代码格式化工作流(如果格式化CI运行失败)。 🛠 操作步骤 | Steps
完成后,提交将自动更新至 如有问题欢迎联系我们,再次感谢您的贡献!💐 |
CYFS3
force-pushed
the
soft_i2c
branch
2 times, most recently
from
May 19, 2026 12:41
4556e4f to
317dcd0
Compare
Contributor
Author
10 tasks
CYFS3
marked this pull request as draft
May 22, 2026 01:31
CYFS3
marked this pull request as ready for review
July 15, 2026 10:06
supperthomas
approved these changes
Jul 16, 2026
Rbb666
approved these changes
Jul 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

拉取/合并请求描述:(PR description)
[
为什么提交这份PR (why to submit this PR)
仓库中多个 BSP 各自维护软件 I2C 驱动,存在重复实现、配置入口不一致、板级默认引脚丢失风险以及软件总线名称不统一的问题。本 PR 统一使用组件层软件 I2C 实现,并保留原 BSP 的使用方式和引脚信息。
你的解决方案是什么 (what is your solution)
components/drivers/i2c。swi2c0至swi2c8,相关设备提示同步标注swi2cX。On-chip Peripheral Drivers中保留唯一板级入口;没有板级入口的 BSP 继续从组件菜单配置。RT_SOFT_I2Cx_SCL_PIN、RT_SOFT_I2Cx_SDA_PIN,保留原引脚默认值并允许用户修改。BSP_USING_SOFT_I2Cx,使板级菜单和组件菜单状态同步。master为单个提交。请提供验证的bsp和config (provide the config and bsp)
BSP:
.config:
验证结果:
git diff rtt/master..HEAD --check通过。BSP_USING_AHT21后,板级swi2c3与组件层配置同时启用,默认 SCL/SDA 为 64/65。BSP_USING_USBD依赖环。action:
]
当前拉取/合并请求的状态 Intent for your PR
必须选择一项 Choose one (Mandatory):
代码质量 Code Quality:
我在这个拉取/合并请求中已经考虑了 As part of this pull request, I've considered the following:
#if 0代码,不包含已经被注释了的代码 All redundant code is removed and cleaned up