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

Stm32f4 I2C HAL #1968

Merged
merged 4 commits into from Jun 23, 2020
Merged

Stm32f4 I2C HAL #1968

merged 4 commits into from Jun 23, 2020

Conversation

alexandruradovici
Copy link
Contributor

Pull Request Overview

This pull request adds the I2C HAL for the stm32f4xx chip.

The implementation is without DMA as the I2C overlaps with SPI and USART. The DMA HAL should be rewritten to allocate the streams on a need basis.

Testing Strategy

This pull request was tested using an stm32f412g discovery kit.

TODO or Help Wanted

Testing on other devices would be useful.

Documentation Updated

  • Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make prepush.

Copy link
Member

@ppannuto ppannuto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly looks good; I don't wholly understand that loop -- is it just for reading out bytes from the RX buffer? It looks like it does it in a blocking manner as bytes arrive?

chips/stm32f4xx/src/i2c.rs Outdated Show resolved Hide resolved
chips/stm32f4xx/src/i2c.rs Show resolved Hide resolved
Copy link
Member

@ppannuto ppannuto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors r+

@bors bors bot merged commit 254b07a into tock:master Jun 23, 2020
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

3 participants