@@ -411,6 +411,7 @@ pub trait SerialExt<USART>: Sized {
411
411
config : impl Into < config:: Config > ,
412
412
prec : Self :: Rec ,
413
413
clocks : & CoreClocks ,
414
+ synchronous : bool ,
414
415
) -> Result < Serial < USART > , config:: InvalidConfig > ;
415
416
416
417
#[ deprecated( since = "0.7.0" , note = "Deprecated in favour of .serial(..)" ) ]
@@ -433,8 +434,9 @@ pub trait SerialExt<USART>: Sized {
433
434
config : impl Into < config:: Config > ,
434
435
prec : Self :: Rec ,
435
436
clocks : & CoreClocks ,
437
+ synchronous : bool ,
436
438
) -> Result < Serial < USART > , config:: InvalidConfig > {
437
- self . serial_unchecked ( config, prec, clocks)
439
+ self . serial_unchecked ( config, prec, clocks, synchronous )
438
440
}
439
441
}
440
442
@@ -679,10 +681,11 @@ macro_rules! usart {
679
681
fn serial_unchecked( self ,
680
682
config: impl Into <config:: Config >,
681
683
prec: rec:: $Rec,
682
- clocks: & CoreClocks
684
+ clocks: & CoreClocks ,
685
+ synchronous: bool ,
683
686
) -> Result <Serial <$USARTX>, config:: InvalidConfig >
684
687
{
685
- Serial :: $usartX( self , config, prec, clocks, false )
688
+ Serial :: $usartX( self , config, prec, clocks, synchronous )
686
689
}
687
690
}
688
691
0 commit comments