@@ -206,7 +206,7 @@ macro_rules! pwm_4_channels {
206
206
207
207
//NOTE(unsafe) atomic read with no side effects
208
208
fn get_duty( & self ) -> u16 {
209
- unsafe { ( * $TIMX:: ptr( ) ) . ccr1. read( ) . ccr( ) . bits( ) as u16 }
209
+ unsafe { ( * $TIMX:: ptr( ) ) . ccr1( ) . read( ) . ccr( ) . bits( ) as u16 }
210
210
}
211
211
212
212
//NOTE(unsafe) atomic read with no side effects
@@ -216,7 +216,7 @@ macro_rules! pwm_4_channels {
216
216
217
217
//NOTE(unsafe) atomic write with no side effects
218
218
fn set_duty( & mut self , duty: u16 ) {
219
- unsafe { ( * $TIMX:: ptr( ) ) . ccr1. write( |w| w. ccr( ) . bits( duty. into( ) ) ) }
219
+ unsafe { ( * $TIMX:: ptr( ) ) . ccr1( ) . write( |w| w. ccr( ) . bits( duty. into( ) ) ) }
220
220
}
221
221
}
222
222
@@ -235,7 +235,7 @@ macro_rules! pwm_4_channels {
235
235
236
236
//NOTE(unsafe) atomic read with no side effects
237
237
fn get_duty( & self ) -> u16 {
238
- unsafe { ( * $TIMX:: ptr( ) ) . ccr2. read( ) . ccr( ) . bits( ) as u16 }
238
+ unsafe { ( * $TIMX:: ptr( ) ) . ccr2( ) . read( ) . ccr( ) . bits( ) as u16 }
239
239
}
240
240
241
241
//NOTE(unsafe) atomic read with no side effects
@@ -245,7 +245,7 @@ macro_rules! pwm_4_channels {
245
245
246
246
//NOTE(unsafe) atomic write with no side effects
247
247
fn set_duty( & mut self , duty: u16 ) {
248
- unsafe { ( * $TIMX:: ptr( ) ) . ccr2. write( |w| w. ccr( ) . bits( duty. into( ) ) ) }
248
+ unsafe { ( * $TIMX:: ptr( ) ) . ccr2( ) . write( |w| w. ccr( ) . bits( duty. into( ) ) ) }
249
249
}
250
250
}
251
251
@@ -264,7 +264,7 @@ macro_rules! pwm_4_channels {
264
264
265
265
//NOTE(unsafe) atomic read with no side effects
266
266
fn get_duty( & self ) -> u16 {
267
- unsafe { ( * $TIMX:: ptr( ) ) . ccr3. read( ) . ccr( ) . bits( ) as u16 }
267
+ unsafe { ( * $TIMX:: ptr( ) ) . ccr3( ) . read( ) . ccr( ) . bits( ) as u16 }
268
268
}
269
269
270
270
//NOTE(unsafe) atomic read with no side effects
@@ -274,7 +274,7 @@ macro_rules! pwm_4_channels {
274
274
275
275
//NOTE(unsafe) atomic write with no side effects
276
276
fn set_duty( & mut self , duty: u16 ) {
277
- unsafe { ( * $TIMX:: ptr( ) ) . ccr3. write( |w| w. ccr( ) . bits( duty. into( ) ) ) }
277
+ unsafe { ( * $TIMX:: ptr( ) ) . ccr3( ) . write( |w| w. ccr( ) . bits( duty. into( ) ) ) }
278
278
}
279
279
}
280
280
@@ -293,7 +293,7 @@ macro_rules! pwm_4_channels {
293
293
294
294
//NOTE(unsafe) atomic read with no side effects
295
295
fn get_duty( & self ) -> u16 {
296
- unsafe { ( * $TIMX:: ptr( ) ) . ccr4. read( ) . ccr( ) . bits( ) as u16 }
296
+ unsafe { ( * $TIMX:: ptr( ) ) . ccr4( ) . read( ) . ccr( ) . bits( ) as u16 }
297
297
}
298
298
299
299
//NOTE(unsafe) atomic read with no side effects
@@ -303,7 +303,7 @@ macro_rules! pwm_4_channels {
303
303
304
304
//NOTE(unsafe) atomic write with no side effects
305
305
fn set_duty( & mut self , duty: u16 ) {
306
- unsafe { ( * $TIMX:: ptr( ) ) . ccr4. write( |w| w. ccr( ) . bits( duty. into( ) ) ) }
306
+ unsafe { ( * $TIMX:: ptr( ) ) . ccr4( ) . write( |w| w. ccr( ) . bits( duty. into( ) ) ) }
307
307
}
308
308
}
309
309
) +
@@ -395,7 +395,7 @@ macro_rules! pwm_4_channels_with_3_complementary_outputs {
395
395
396
396
//NOTE(unsafe) atomic read with no side effects
397
397
fn get_duty( & self ) -> u16 {
398
- unsafe { ( * $TIMX:: ptr( ) ) . ccr1. read( ) . ccr( ) . bits( ) as u16 }
398
+ unsafe { ( * $TIMX:: ptr( ) ) . ccr1( ) . read( ) . ccr( ) . bits( ) as u16 }
399
399
}
400
400
401
401
//NOTE(unsafe) atomic read with no side effects
@@ -405,7 +405,7 @@ macro_rules! pwm_4_channels_with_3_complementary_outputs {
405
405
406
406
//NOTE(unsafe) atomic write with no side effects
407
407
fn set_duty( & mut self , duty: u16 ) {
408
- unsafe { ( * $TIMX:: ptr( ) ) . ccr1. write( |w| w. ccr( ) . bits( duty. into( ) ) ) }
408
+ unsafe { ( * $TIMX:: ptr( ) ) . ccr1( ) . write( |w| w. ccr( ) . bits( duty. into( ) ) ) }
409
409
}
410
410
}
411
411
@@ -424,7 +424,7 @@ macro_rules! pwm_4_channels_with_3_complementary_outputs {
424
424
425
425
//NOTE(unsafe) atomic read with no side effects
426
426
fn get_duty( & self ) -> u16 {
427
- unsafe { ( * $TIMX:: ptr( ) ) . ccr1. read( ) . ccr( ) . bits( ) as u16 }
427
+ unsafe { ( * $TIMX:: ptr( ) ) . ccr1( ) . read( ) . ccr( ) . bits( ) as u16 }
428
428
}
429
429
430
430
//NOTE(unsafe) atomic read with no side effects
@@ -434,7 +434,7 @@ macro_rules! pwm_4_channels_with_3_complementary_outputs {
434
434
435
435
//NOTE(unsafe) atomic write with no side effects
436
436
fn set_duty( & mut self , duty: u16 ) {
437
- unsafe { ( * $TIMX:: ptr( ) ) . ccr1. write( |w| w. ccr( ) . bits( duty. into( ) ) ) }
437
+ unsafe { ( * $TIMX:: ptr( ) ) . ccr1( ) . write( |w| w. ccr( ) . bits( duty. into( ) ) ) }
438
438
}
439
439
}
440
440
@@ -453,7 +453,7 @@ macro_rules! pwm_4_channels_with_3_complementary_outputs {
453
453
454
454
//NOTE(unsafe) atomic read with no side effects
455
455
fn get_duty( & self ) -> u16 {
456
- unsafe { ( * $TIMX:: ptr( ) ) . ccr2. read( ) . ccr( ) . bits( ) as u16 }
456
+ unsafe { ( * $TIMX:: ptr( ) ) . ccr2( ) . read( ) . ccr( ) . bits( ) as u16 }
457
457
}
458
458
459
459
//NOTE(unsafe) atomic read with no side effects
@@ -463,7 +463,7 @@ macro_rules! pwm_4_channels_with_3_complementary_outputs {
463
463
464
464
//NOTE(unsafe) atomic write with no side effects
465
465
fn set_duty( & mut self , duty: u16 ) {
466
- unsafe { ( * $TIMX:: ptr( ) ) . ccr2. write( |w| w. ccr( ) . bits( duty. into( ) ) ) }
466
+ unsafe { ( * $TIMX:: ptr( ) ) . ccr2( ) . write( |w| w. ccr( ) . bits( duty. into( ) ) ) }
467
467
}
468
468
}
469
469
@@ -482,7 +482,7 @@ macro_rules! pwm_4_channels_with_3_complementary_outputs {
482
482
483
483
//NOTE(unsafe) atomic read with no side effects
484
484
fn get_duty( & self ) -> u16 {
485
- unsafe { ( * $TIMX:: ptr( ) ) . ccr2. read( ) . ccr( ) . bits( ) as u16 }
485
+ unsafe { ( * $TIMX:: ptr( ) ) . ccr2( ) . read( ) . ccr( ) . bits( ) as u16 }
486
486
}
487
487
488
488
//NOTE(unsafe) atomic read with no side effects
@@ -492,7 +492,7 @@ macro_rules! pwm_4_channels_with_3_complementary_outputs {
492
492
493
493
//NOTE(unsafe) atomic write with no side effects
494
494
fn set_duty( & mut self , duty: u16 ) {
495
- unsafe { ( * $TIMX:: ptr( ) ) . ccr2. write( |w| w. ccr( ) . bits( duty. into( ) ) ) }
495
+ unsafe { ( * $TIMX:: ptr( ) ) . ccr2( ) . write( |w| w. ccr( ) . bits( duty. into( ) ) ) }
496
496
}
497
497
}
498
498
@@ -511,7 +511,7 @@ macro_rules! pwm_4_channels_with_3_complementary_outputs {
511
511
512
512
//NOTE(unsafe) atomic read with no side effects
513
513
fn get_duty( & self ) -> u16 {
514
- unsafe { ( * $TIMX:: ptr( ) ) . ccr3. read( ) . ccr( ) . bits( ) as u16 }
514
+ unsafe { ( * $TIMX:: ptr( ) ) . ccr3( ) . read( ) . ccr( ) . bits( ) as u16 }
515
515
}
516
516
517
517
//NOTE(unsafe) atomic read with no side effects
@@ -521,7 +521,7 @@ macro_rules! pwm_4_channels_with_3_complementary_outputs {
521
521
522
522
//NOTE(unsafe) atomic write with no side effects
523
523
fn set_duty( & mut self , duty: u16 ) {
524
- unsafe { ( * $TIMX:: ptr( ) ) . ccr3. write( |w| w. ccr( ) . bits( duty. into( ) ) ) }
524
+ unsafe { ( * $TIMX:: ptr( ) ) . ccr3( ) . write( |w| w. ccr( ) . bits( duty. into( ) ) ) }
525
525
}
526
526
}
527
527
@@ -540,7 +540,7 @@ macro_rules! pwm_4_channels_with_3_complementary_outputs {
540
540
541
541
//NOTE(unsafe) atomic read with no side effects
542
542
fn get_duty( & self ) -> u16 {
543
- unsafe { ( * $TIMX:: ptr( ) ) . ccr3. read( ) . ccr( ) . bits( ) as u16 }
543
+ unsafe { ( * $TIMX:: ptr( ) ) . ccr3( ) . read( ) . ccr( ) . bits( ) as u16 }
544
544
}
545
545
546
546
//NOTE(unsafe) atomic read with no side effects
@@ -550,7 +550,7 @@ macro_rules! pwm_4_channels_with_3_complementary_outputs {
550
550
551
551
//NOTE(unsafe) atomic write with no side effects
552
552
fn set_duty( & mut self , duty: u16 ) {
553
- unsafe { ( * $TIMX:: ptr( ) ) . ccr3. write( |w| w. ccr( ) . bits( duty. into( ) ) ) }
553
+ unsafe { ( * $TIMX:: ptr( ) ) . ccr3( ) . write( |w| w. ccr( ) . bits( duty. into( ) ) ) }
554
554
}
555
555
}
556
556
@@ -569,7 +569,7 @@ macro_rules! pwm_4_channels_with_3_complementary_outputs {
569
569
570
570
//NOTE(unsafe) atomic read with no side effects
571
571
fn get_duty( & self ) -> u16 {
572
- unsafe { ( * $TIMX:: ptr( ) ) . ccr4. read( ) . ccr( ) . bits( ) as u16 }
572
+ unsafe { ( * $TIMX:: ptr( ) ) . ccr4( ) . read( ) . ccr( ) . bits( ) as u16 }
573
573
}
574
574
575
575
//NOTE(unsafe) atomic read with no side effects
@@ -579,7 +579,7 @@ macro_rules! pwm_4_channels_with_3_complementary_outputs {
579
579
580
580
//NOTE(unsafe) atomic write with no side effects
581
581
fn set_duty( & mut self , duty: u16 ) {
582
- unsafe { ( * $TIMX:: ptr( ) ) . ccr4. write( |w| w. ccr( ) . bits( duty. into( ) ) ) }
582
+ unsafe { ( * $TIMX:: ptr( ) ) . ccr4( ) . write( |w| w. ccr( ) . bits( duty. into( ) ) ) }
583
583
}
584
584
}
585
585
) +
@@ -666,7 +666,7 @@ macro_rules! pwm_2_channels {
666
666
667
667
//NOTE(unsafe) atomic read with no side effects
668
668
fn get_duty( & self ) -> u16 {
669
- unsafe { ( * $TIMX:: ptr( ) ) . ccr1. read( ) . ccr( ) . bits( ) as u16 }
669
+ unsafe { ( * $TIMX:: ptr( ) ) . ccr1( ) . read( ) . ccr( ) . bits( ) as u16 }
670
670
}
671
671
672
672
//NOTE(unsafe) atomic read with no side effects
@@ -676,7 +676,7 @@ macro_rules! pwm_2_channels {
676
676
677
677
//NOTE(unsafe) atomic write with no side effects
678
678
fn set_duty( & mut self , duty: u16 ) {
679
- unsafe { ( * $TIMX:: ptr( ) ) . ccr1. write( |w| w. ccr( ) . bits( duty. into( ) ) ) }
679
+ unsafe { ( * $TIMX:: ptr( ) ) . ccr1( ) . write( |w| w. ccr( ) . bits( duty. into( ) ) ) }
680
680
}
681
681
}
682
682
@@ -695,7 +695,7 @@ macro_rules! pwm_2_channels {
695
695
696
696
//NOTE(unsafe) atomic read with no side effects
697
697
fn get_duty( & self ) -> u16 {
698
- unsafe { ( * $TIMX:: ptr( ) ) . ccr2. read( ) . ccr( ) . bits( ) as u16 }
698
+ unsafe { ( * $TIMX:: ptr( ) ) . ccr2( ) . read( ) . ccr( ) . bits( ) as u16 }
699
699
}
700
700
701
701
//NOTE(unsafe) atomic read with no side effects
@@ -705,7 +705,7 @@ macro_rules! pwm_2_channels {
705
705
706
706
//NOTE(unsafe) atomic write with no side effects
707
707
fn set_duty( & mut self , duty: u16 ) {
708
- unsafe { ( * $TIMX:: ptr( ) ) . ccr2. write( |w| w. ccr( ) . bits( duty. into( ) ) ) }
708
+ unsafe { ( * $TIMX:: ptr( ) ) . ccr2( ) . write( |w| w. ccr( ) . bits( duty. into( ) ) ) }
709
709
}
710
710
}
711
711
) +
@@ -775,7 +775,7 @@ macro_rules! pwm_1_channel {
775
775
776
776
//NOTE(unsafe) atomic read with no side effects
777
777
fn get_duty( & self ) -> u16 {
778
- unsafe { ( * $TIMX:: ptr( ) ) . ccr1. read( ) . ccr( ) . bits( ) as u16 }
778
+ unsafe { ( * $TIMX:: ptr( ) ) . ccr1( ) . read( ) . ccr( ) . bits( ) as u16 }
779
779
}
780
780
781
781
//NOTE(unsafe) atomic read with no side effects
@@ -785,7 +785,7 @@ macro_rules! pwm_1_channel {
785
785
786
786
//NOTE(unsafe) atomic write with no side effects
787
787
fn set_duty( & mut self , duty: u16 ) {
788
- unsafe { ( * $TIMX:: ptr( ) ) . ccr1. write( |w| w. ccr( ) . bits( duty. into( ) ) ) }
788
+ unsafe { ( * $TIMX:: ptr( ) ) . ccr1( ) . write( |w| w. ccr( ) . bits( duty. into( ) ) ) }
789
789
}
790
790
}
791
791
) +
@@ -858,7 +858,7 @@ macro_rules! pwm_1_channel_with_complementary_outputs {
858
858
859
859
//NOTE(unsafe) atomic read with no side effects
860
860
fn get_duty( & self ) -> u16 {
861
- unsafe { ( * $TIMX:: ptr( ) ) . ccr1. read( ) . ccr( ) . bits( ) as u16 }
861
+ unsafe { ( * $TIMX:: ptr( ) ) . ccr1( ) . read( ) . ccr( ) . bits( ) as u16 }
862
862
}
863
863
864
864
//NOTE(unsafe) atomic read with no side effects
@@ -868,7 +868,7 @@ macro_rules! pwm_1_channel_with_complementary_outputs {
868
868
869
869
//NOTE(unsafe) atomic write with no side effects
870
870
fn set_duty( & mut self , duty: u16 ) {
871
- unsafe { ( * $TIMX:: ptr( ) ) . ccr1. write( |w| w. ccr( ) . bits( duty. into( ) ) ) }
871
+ unsafe { ( * $TIMX:: ptr( ) ) . ccr1( ) . write( |w| w. ccr( ) . bits( duty. into( ) ) ) }
872
872
}
873
873
}
874
874
@@ -887,7 +887,7 @@ macro_rules! pwm_1_channel_with_complementary_outputs {
887
887
888
888
//NOTE(unsafe) atomic read with no side effects
889
889
fn get_duty( & self ) -> u16 {
890
- unsafe { ( * $TIMX:: ptr( ) ) . ccr1. read( ) . ccr( ) . bits( ) as u16 }
890
+ unsafe { ( * $TIMX:: ptr( ) ) . ccr1( ) . read( ) . ccr( ) . bits( ) as u16 }
891
891
}
892
892
893
893
//NOTE(unsafe) atomic read with no side effects
@@ -897,7 +897,7 @@ macro_rules! pwm_1_channel_with_complementary_outputs {
897
897
898
898
//NOTE(unsafe) atomic write with no side effects
899
899
fn set_duty( & mut self , duty: u16 ) {
900
- unsafe { ( * $TIMX:: ptr( ) ) . ccr1. write( |w| w. ccr( ) . bits( duty. into( ) ) ) }
900
+ unsafe { ( * $TIMX:: ptr( ) ) . ccr1( ) . write( |w| w. ccr( ) . bits( duty. into( ) ) ) }
901
901
}
902
902
}
903
903
) +
0 commit comments