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

USART additions #267

Merged
merged 4 commits into from
Oct 30, 2021
Merged

USART additions #267

merged 4 commits into from
Oct 30, 2021

Conversation

richardeoin
Copy link
Member

Follow on from #261

  • Add synchronous flag to serial_unchecked method
  • Set synchronous bits on USART peripherals only, for others they are reserved
  • Add builder methods for USART configuration fields
  • Add an example of synchronous USART operation

@richardeoin
Copy link
Member Author

bors r+

bors bot added a commit that referenced this pull request Oct 30, 2021
247: Make ethernet::DesRing generic over the number of buffers r=richardeoin a=richardeoin

This allows users to decide how many transmit and receive buffers they wish to have the the `ethernet::DesRing`. Typically this allows a trade-off in performance vs memory usage.

The number of buffers need to be annotated on both `ethernet::DesRing` and `ethernet::EthernetDMA`. Requiring it on both is a slight usability downside. However this is small compared to the previous solution, which was making a local copy of the HAL in order to edit a constant value in `src/ethernet/eth.rs`.

262: Add glue to make embedded-sdmmc work nicely r=richardeoin a=olback

It would have been nice to implement `embedded:BlockDevice` directly on `Sdmmc<$SDMMCX>` but that is not possible since `BlockDevice` takes `&self` and the methods that already exist take `&mut self`.

267: USART additions r=richardeoin a=richardeoin

Follow on from #261 

* Add synchronous flag to serial_unchecked method
* Set synchronous bits on USART peripherals only, for others they are reserved
* Add builder methods for USART configuration fields
* Add an example of synchronous USART operation

Co-authored-by: Richard Meadows <962920+richardeoin@users.noreply.github.com>
Co-authored-by: Edwin Svensson <git@olback.net>
@bors
Copy link
Contributor

bors bot commented Oct 30, 2021

Build failed (retrying...):

@bors bors bot merged commit e73199a into stm32-rs:master Oct 30, 2021
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.

1 participant