-
Notifications
You must be signed in to change notification settings - Fork 3k
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
STM: Add separate flags for I2C slave transfer in progress #15499
Conversation
The result of rebuilding https://github.com/agausmann/mbed-i2c-stall-repro with this patch: |
76c24dd
to
8b342eb
Compare
Nice catch on this, and this seems like a good fix! We'd love to have this PR over at mbed-ce/mbed-os! By the way, as to regression tests, I actually have some ideas about that. I've been putting together a PCB which can test lots of different communications busses, and I also put together an I2C master test suite (which is what let me rewrite and fix all the STM32 I2C master mode code a year or two ago). Haven't really worked on slave mode yet I'm afraid... |
@ARMmbed/team-st-mcd Please review |
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.
can you extend the commit message ? Th details provided in this PR should be also part of the commit message.
Do you want like a 1 paragraph summary, or the entire post? EDIT: oops I thought this notification was for my other PR |
Fixes ARMmbed#15498 Adds 2 boolean flags to the STM32 `i2c_s` object to indicate whether a transfer is in progress, separate from the existing "transfer pending" flags. `i2c_slave_write`, `i2c_slave_read` and their associated callbacks are modified to use these flags in addition to the pending flags. The original behavior of the pending flags is preserved.
8b342eb
to
dc49c2b
Compare
I assume it's just the summary section. Updated |
I am having issues now with Github (cant run the CI checks). I'll try tomorrow |
CI started |
Jenkins CI Test : ❌ FAILEDBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
I need to restart CI, lot of devices were not available |
Jenkins CI Test : ❌ FAILEDBuild Number: 2 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Summary of changes
Fixes #15498
Adds 2 boolean flags to the STM32
i2c_s
object, to indicate whether a transfer is in progress, separate from the existing "transfer pending" flags.i2c_slave_write
,i2c_slave_read
and their associated callbacks are modified to use these flags in addition to the pending flags.The original behavior of the pending flags is preserved.
Impact of changes
Migration actions required
Documentation
None
Pull request type
Test results
Not sure what to do for regression tests for this patch.
Reviewers