-
Couldn't load subscription status.
- Fork 5.3k
bsp: k230: add i2c driver #10861
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bsp: k230: add i2c driver #10861
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 <[email protected]>
|
👋 感谢您对 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
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
只有一个小问题见下,其他 LGTM
另外记得以后 pr 时要从 master 上拉一个自己的开发分支,不要用master 分支开发,容易引起混淆。
| return k230_i2c_xfer_finish(dev); | ||
| } | ||
|
|
||
| static int _k230_i2c_write(struct k230_i2c_dev *dev) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
为啥这个函数的函数名要以下划线开头?和其他 static 函数有啥区别?如果没有请统一风格。
其他下划线开头的函数都检查一下。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
当时想的是这两个是服务xfer的内部函数就在前边加了下划线
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
为啥这个函数的函数名要以下划线开头?和其他 static 函数有啥区别?如果没有请统一风格。
其他下划线开头的函数都检查一下。
那这个问题要统一吗
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
为啥这个函数的函数名要以下划线开头?和其他 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