File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -307,8 +307,11 @@ where
307
307
)
308
308
}
309
309
310
- /// Split into implementations of embedded_hal::serial traits. The size of the slices passed to this
311
- /// method will determine the size of the DMA transfers performed.
310
+ /// Split into implementations of embedded_hal::serial traits.
311
+ /// The size of the `tx_buf` slice passed to this method will determine
312
+ /// the size of the DMA transfers performed.
313
+ /// The `rx_buf` slice is an array of size 1 since the embedded_hal
314
+ /// traits only allow reading one byte at a time.
312
315
pub fn split (
313
316
self ,
314
317
tx_buf : & ' static mut [ u8 ] ,
@@ -578,6 +581,7 @@ where
578
581
// Reset events
579
582
uarte. events_endtx . reset ( ) ;
580
583
uarte. events_txstopped . reset ( ) ;
584
+ uarte. events_txstarted . reset ( ) ;
581
585
582
586
// Ensure the above is done
583
587
compiler_fence ( SeqCst ) ;
@@ -599,6 +603,7 @@ where
599
603
600
604
// Reset events
601
605
uarte. events_endrx . reset ( ) ;
606
+ uarte. events_rxstarted . reset ( ) ;
602
607
603
608
// Ensure the above is done
604
609
compiler_fence ( SeqCst ) ;
You can’t perform that action at this time.
0 commit comments