File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ mod time_driver;
23
23
mod chip;
24
24
25
25
#[ cfg( feature = "lpc55-core0" ) ]
26
- pub use chip:: interrupt;
26
+ pub use chip:: interrupt;
27
27
#[ cfg( feature = "unstable-pac" ) ]
28
28
pub use chip:: pac;
29
29
#[ cfg( not( feature = "unstable-pac" ) ) ]
Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ impl<'d> UsartTx<'d, Blocking> {
187
187
impl < ' d > UsartTx < ' d , Async > {
188
188
/// Write to UART TX from the provided buffer using DMA.
189
189
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
191
191
let ch = self . tx_dma . as_mut ( ) . unwrap ( ) . reborrow ( ) ;
192
192
let transfer = unsafe {
193
193
// Enable to pace DMA transfers.
@@ -337,7 +337,7 @@ impl<'d> UsartRx<'d, Async> {
337
337
// Start a DMA transfer. If errors have happened in the interim some error
338
338
// interrupt flags will have been raised, and those will be picked up immediately
339
339
// 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
341
341
let ch = self . rx_dma . as_mut ( ) . unwrap ( ) . reborrow ( ) ;
342
342
343
343
self . info . usart_reg . intenset ( ) . write ( |w| {
You can’t perform that action at this time.
0 commit comments