@@ -365,11 +365,11 @@ macro_rules! hal {
365
365
}
366
366
#[ inline( always) ]
367
367
fn start_one_pulse( & mut self ) {
368
- self . cr1. write ( | w| unsafe { w. bits( 1 << 3 ) } . cen( ) . set_bit( ) ) ;
368
+ self . cr1. modify ( |_ , w| unsafe { w. bits( 1 << 3 ) } . cen( ) . set_bit( ) ) ;
369
369
}
370
370
#[ inline( always) ]
371
371
fn start_no_update( & mut self ) {
372
- self . cr1. write ( | w| w. cen( ) . set_bit( ) . udis( ) . set_bit( ) ) ;
372
+ self . cr1. modify ( |_ , w| w. cen( ) . set_bit( ) . udis( ) . set_bit( ) ) ;
373
373
}
374
374
#[ inline( always) ]
375
375
fn cr1_reset( & mut self ) {
@@ -445,7 +445,7 @@ macro_rules! with_pwm {
445
445
446
446
#[ inline( always) ]
447
447
fn start_pwm( & mut self ) {
448
- self . cr1. write ( | w| w. cen( ) . set_bit( ) ) ;
448
+ self . cr1. modify ( |_ , w| w. cen( ) . set_bit( ) ) ;
449
449
}
450
450
451
451
#[ inline( always) ]
@@ -495,7 +495,7 @@ macro_rules! with_pwm {
495
495
496
496
#[ inline( always) ]
497
497
fn start_pwm( & mut self ) {
498
- self . cr1. write ( | w| w. cen( ) . set_bit( ) ) ;
498
+ self . cr1. modify ( |_ , w| w. cen( ) . set_bit( ) ) ;
499
499
}
500
500
501
501
#[ inline( always) ]
@@ -553,7 +553,7 @@ macro_rules! with_pwm {
553
553
#[ inline( always) ]
554
554
fn start_pwm( & mut self ) {
555
555
$( let $aoe = self . bdtr. modify( |_, w| w. aoe( ) . set_bit( ) ) ; ) ?
556
- self . cr1. write ( | w| w. cen( ) . set_bit( ) ) ;
556
+ self . cr1. modify ( |_ , w| w. cen( ) . set_bit( ) ) ;
557
557
}
558
558
559
559
#[ inline( always) ]
0 commit comments