Add IRQ-driven buffered USART implementation for STM32 v2 usart (#356)

* Add IRQ-driven buffered USART implementation for STM32 v2 usart

* Implementation based on nRF UARTE, but simplified to not use DMA to
  avoid complex interaction between DMA and USART.
* Implementation of AsyncBufRead and AsyncWrite traits
* Some unit tests to ring buffer
* Update polyfill version
* Update sub module to get usart IRQ fix
This commit is contained in:
Ulf Lilleengen
2021-08-16 17:16:49 +02:00
committed by GitHub
parent c310f18aaf
commit cbff0398bb
7 changed files with 325 additions and 16 deletions

View File

@ -23,7 +23,7 @@ sdio-host = { version = "0.5.0" }
embedded-sdmmc = { git = "https://github.com/thalesfragoso/embedded-sdmmc-rs", branch = "async", optional = true }
critical-section = "0.2.1"
bare-metal = "1.0.0"
atomic-polyfill = "0.1.2"
atomic-polyfill = "0.1.3"
stm32-metapac = { version = "0.1.0", path = "../stm32-metapac", features = ["rt"] }
vcell = { version = "0.1.3", optional = true }