Conversation
Requirement: The BSP for the k230 platform in the RT-Thread repository
does not yet have an I2C driver.
Solution: Provide I2C driver for the k230 platform in the RT-Thread
repository.
1. support i2c master mode
Signed-off-by: Ze-Hou <yingkezhou@qq.com>
|
👋 感谢您对 RT-Thread 的贡献!Thank you for your contribution to RT-Thread! 为确保代码符合 RT-Thread 的编码规范,请在你的仓库中执行以下步骤运行代码格式化工作流(如果格式化CI运行失败)。 🛠 操作步骤 | Steps
完成后,提交将自动更新至 如有问题欢迎联系我们,再次感谢您的贡献!💐 |
📌 Code Review Assignment🏷️ Tag: bsp_k230Reviewers: @unicornx Changed Files (Click to expand)
📊 Current Review Status (Last Updated: 2025-10-28 15:22 CST)
📝 Review Instructions
|
| return k230_i2c_xfer_finish(dev); | ||
| } | ||
|
|
||
| static int _k230_i2c_write(struct k230_i2c_dev *dev) |
There was a problem hiding this comment.
为啥这个函数的函数名要以下划线开头?和其他 static 函数有啥区别?如果没有请统一风格。
其他下划线开头的函数都检查一下。
There was a problem hiding this comment.
当时想的是这两个是服务xfer的内部函数就在前边加了下划线
There was a problem hiding this comment.
为啥这个函数的函数名要以下划线开头?和其他 static 函数有啥区别?如果没有请统一风格。
其他下划线开头的函数都检查一下。
那这个问题要统一吗
There was a problem hiding this comment.
为啥这个函数的函数名要以下划线开头?和其他 static 函数有啥区别?如果没有请统一风格。
其他下划线开头的函数都检查一下。那这个问题要统一吗
你自己定吧,我已经 approve 了
好的 |
|
@Rbb666 请 review,如ok请 merge |
Continue from #10851
删除从机部分
Requirement: The BSP for the k230 platform in the RT-Thread repository
does not yet have an I2C driver.
拉取/合并请求描述:(PR description)
[
为什么提交这份PR (why to submit this PR)
你的解决方案是什么 (what is your solution)
请提供验证的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