-
Notifications
You must be signed in to change notification settings - Fork 13
feat(i2c): Add end-to-end I2C support for RmcsBoard and CBoard #43
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
Closed
Closed
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
df5cc1b
feat(i2c): Add I2C0 protocol and RmcsBoard support
44ff397
feat(c_board): Add I2C2 transport support
12bce2b
fix(c_board): Replace queued I2C with blocking transfers
20ea882
fix(c_board): Recover i2c dma transfers on timeout
gqsdjhh 9e7d481
refactor(c_board): Clarify logical i2c0 to i2c2 mapping
gqsdjhh c561efe
fix(c_board): Lower i2c irq priority to avoid usb conflicts
gqsdjhh 13b60a8
fix(rmcs_board): Update hpm_sdk to restore hpm5300evk board definitions
gqsdjhh 2b2895d
fix(i2c): Harden Error Handling And Preserve Uplink Responses
gqsdjhh 15a6b43
fix(i2c): Preserve Error Context And Harden Invalid Request Handling
gqsdjhh 31f06e3
fix(protocol): Reject Empty I2C Transfers
gqsdjhh f04f753
Merge remote-tracking branch 'upstream/main' into i2c
gqsdjhh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Empty file.
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
i2c_error_callback现在把新增错误上下文全丢掉了。协议层和反序列化层已经有
I2cErrorView,其中包含is_read、reg_address和data_length,但这里仍只把slave_address往上抛。这样从host/src/protocol/handler.cpp:98-107到host/include/librmcs/agent/c_board.hpp:151-160/host/include/librmcs/agent/rmcs_board.hpp:151-163这条链路都会丢失新增信息,SDK 使用者拿不到 PR 里补充的错误上下文。建议把回调签名改成传const I2cErrorView&。建议修改
🤖 Prompt for AI Agents