Skip to content
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

Fixes for i2c Read #72

Merged
merged 1 commit into from
Mar 19, 2020
Merged

Fixes for i2c Read #72

merged 1 commit into from
Mar 19, 2020

Conversation

tstellanova
Copy link
Contributor

@tstellanova tstellanova commented Mar 13, 2020

  • Use automatic mode for autoend with Read
  • Check for variant success first in busy_wait macro

Tested with the following embedded hal i2c drivers:

  • bmp280 (barometer)
  • em7180 (imu/ahrs)
  • bno080 (ahrs wip)

@Sh3Rm4n
Copy link
Member

Sh3Rm4n commented Mar 14, 2020

Cool! 👍 Thanks for this PR. I'll have a closer look later today (i hope)

@tstellanova
Copy link
Contributor Author

And an example trace from where read was failing due to an incorrect autoend setting:
read_4a_ack_fail

@tstellanova tstellanova changed the title Fixes for i2c Read and WriteRead: Fixes for i2c Read Mar 15, 2020
src/i2c.rs Show resolved Hide resolved
src/i2c.rs Show resolved Hide resolved
@Sh3Rm4n
Copy link
Member

Sh3Rm4n commented Mar 15, 2020

Thank you for your logic analyzer proves btw :)

If you want, you could a a FIX note to the CHANGELOG :)

@Sh3Rm4n
Copy link
Member

Sh3Rm4n commented Mar 18, 2020

The CI is currently stuck. I don't know, how to rerun it, but as conflicts have to be resolved anyways, this should retrigger the CI. I hope it will work then :)

- Use automatic mode for autoend with Read
- Update CHANGELOG.md
@tstellanova
Copy link
Contributor Author

Fixed the merge conflicts and re-squashed the PR

@Sh3Rm4n Sh3Rm4n merged commit cfdb6fa into stm32-rs:master Mar 19, 2020
@tstellanova tstellanova deleted the debug_i2c branch April 20, 2020 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants