-
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
i2c: start()
should aquire the bus
#14675
Conversation
From the history it looks like aquire was not added explicitely to start. I do not see why as it's the condition that must be sent when communication is initiated. write/read/transfer invoke `aquire()`
@multiplemonomials As you mentioned it in the i2c issue, please review |
@0xc0170, thank you for your changes. |
This was highlighted in #14004 (not fixing it completely though, there is lpc1768 issue with recovery bus) |
This pull request has automatically been marked as stale because it has had no recent activity. @ARMmbed/mbed-os-maintainers, please complete review of the changes to move the PR forward. Thank you for your contributions. |
This pull request has automatically been marked as stale because it has had no recent activity. @ARMmbed/mbed-os-maintainers, @ARMmbed/mbed-os-core, please complete review of the changes to move the PR forward. Thank you for your contributions. |
Reviewers please review, if this makes sense. |
This pull request has automatically been marked as stale because it has had no recent activity. @ARMmbed/mbed-os-maintainers, please start CI to get the PR merged. |
CI started |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Summary of changes
From the history it looks like aquire was not added explicitely to start. I do not see
why as it's the condition that must be sent when communication is initiated.
write/read/transfer invoke
aquire()
This start() is rarely used, mainly in the old mbed 2 code when you wanted to construct i2c command all together. I found some code to illustrate; https://os.mbed.com/users/aquahika/code/MLX90614//file/dcd4fe76bd13/mlx90614.cpp/ . This change should not affect these sensors as if you send multiple starts, aquire is protected against it so no need to check in start().
Impact of changes
Migration actions required
Documentation
Pull request type
Test results
Reviewers