drivers: merge the software i2c driver #9886
Merged
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)
Ps:主线已经将软件i2c驱动合并到drivers中,因此各大bsp下的软件i2c驱动没有存在的必要,删除进一步减少代码体量
你的解决方案是什么 (what is your solution)
Ps:目前主线的软件i2c驱动已经合并到drivers中,用户可以通过env配置软件i2c,同时删除各bsp中的软件i2c驱动,这个pr作为一个模板,后续等夏令营同学把其他bsp的软件i2c驱动删除
另外对于有些bsp中可能依赖已经配置好的软件i2c设备,比如说HMI-Board的Arduino配置使能,并且对于不同的厂商pin驱动的取值可能有所不同(比如瑞萨pin引脚类型获取为hex,ST引脚类型为int),可以参考如下方法保留并重写配置信息,并且仅当用户主动使能RT_USING_I2C,对应的配置项才会显示;同样当用户使能之前存在对软件i2c设备依赖的项目时也需要自动选中:
请提供验证的bsp和config (provide the config and bsp)
]
当前拉取/合并请求的状态 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