Skip to content

Commit d9fb293

Browse files
committed
final before review
1 parent 273ba44 commit d9fb293

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

embassy-nxp/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ mod time_driver;
2323
mod chip;
2424

2525
#[cfg(feature = "lpc55-core0")]
26-
pub use chip::interrupt;
26+
pub use chip::interrupt;
2727
#[cfg(feature = "unstable-pac")]
2828
pub use chip::pac;
2929
#[cfg(not(feature = "unstable-pac"))]

embassy-nxp/src/usart/lpc55.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ impl<'d> UsartTx<'d, Blocking> {
187187
impl<'d> UsartTx<'d, Async> {
188188
/// Write to UART TX from the provided buffer using DMA.
189189
pub async fn write(&mut self, buffer: &[u8]) -> Result<(), Error> {
190-
// Channel can be unwrapped because UsartTx::new() takes Some() of DMA channel as an argument.
190+
// Unwrap() can be used because UsartTx::new() in Async mode always sets it to Some
191191
let ch = self.tx_dma.as_mut().unwrap().reborrow();
192192
let transfer = unsafe {
193193
// Enable to pace DMA transfers.
@@ -337,7 +337,7 @@ impl<'d> UsartRx<'d, Async> {
337337
// Start a DMA transfer. If errors have happened in the interim some error
338338
// interrupt flags will have been raised, and those will be picked up immediately
339339
// by the interrupt handler.
340-
// Channel can be unwrapped because UsartRx::new() takes Some() of DMA channel as an argument.
340+
// Unwrap() can be used because UsartTx::new() in Async mode always sets it to Some
341341
let ch = self.rx_dma.as_mut().unwrap().reborrow();
342342

343343
self.info.usart_reg.intenset().write(|w| {

0 commit comments

Comments
 (0)