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 @@ -270,8 +270,11 @@ where
270
270
)
271
271
}
272
272
273
- /// Split into implementations of embedded_hal::serial traits. The size of the slices passed to this
274
- /// method will determine the size of the DMA transfers performed.
273
+ /// Split into implementations of embedded_hal::serial traits.
274
+ /// The size of the `tx_buf` slice passed to this method will determine
275
+ /// the size of the DMA transfers performed.
276
+ /// The `rx_buf` slice is an array of size 1 since the embedded_hal
277
+ /// traits only allow reading one byte at a time.
275
278
pub fn split (
276
279
self ,
277
280
tx_buf : & ' static mut [ u8 ] ,
@@ -541,6 +544,7 @@ where
541
544
// Reset events
542
545
uarte. events_endtx . reset ( ) ;
543
546
uarte. events_txstopped . reset ( ) ;
547
+ uarte. events_txstarted . reset ( ) ;
544
548
545
549
// Ensure the above is done
546
550
compiler_fence ( SeqCst ) ;
@@ -562,6 +566,7 @@ where
562
566
563
567
// Reset events
564
568
uarte. events_endrx . reset ( ) ;
569
+ uarte. events_rxstarted . reset ( ) ;
565
570
566
571
// Ensure the above is done
567
572
compiler_fence ( SeqCst ) ;
You can’t perform that action at this time.
0 commit comments