There was an error fetching the commit references. Please try again later.
Merge #934
934: (embassy-rp): Add Buffered UART implementation r=MathiasKoch a=MathiasKoch ### Questions & concerns: - ~~Would it make sense to add `RxBufferedUart` and `TxBufferedUart`, for cases where you would want to only buffer one way?~~ - ~~Do I need to be monitoring more interrupt flags than `Receive` & `Receive timeout`?~~ This PR adds working `BufferedUart` implementation, along with `RxBufferedUart` and `TxBufferedUart`. The implementation leaves room for improvement with respect to performance, as it still does not utilize DMA nor the internal UART buffers. Co-authored-by:Mathias <mk@blackbird.online> Co-authored-by:
Dario Nieuwenhuis <dirbaio@dirbaio.net>
Showing
- embassy-rp/Cargo.toml 2 additions, 1 deletionembassy-rp/Cargo.toml
- embassy-rp/src/uart/buffered.rs 489 additions, 0 deletionsembassy-rp/src/uart/buffered.rs
- embassy-rp/src/uart/mod.rs 85 additions, 2 deletionsembassy-rp/src/uart/mod.rs
- tests/rp/.cargo/config.toml 1 addition, 1 deletiontests/rp/.cargo/config.toml
- tests/rp/Cargo.toml 1 addition, 0 deletionstests/rp/Cargo.toml
- tests/rp/src/bin/uart_buffered.rs 44 additions, 0 deletionstests/rp/src/bin/uart_buffered.rs
Please register or sign in to comment