@@ -10,8 +10,8 @@ avr_hal_generic::impl_simple_pwm! {
10
10
/// ```
11
11
/// let mut timer0 = Timer0Pwm::new(dp.TC0, Prescaler::Prescale64);
12
12
///
13
- /// let mut d5 = portd .d5.into_output().into_pwm(&mut timer0);
14
- /// let mut d6 = portd .d6.into_output().into_pwm(&mut timer0);
13
+ /// let mut d5 = pins .d5.into_output().into_pwm(&mut timer0);
14
+ /// let mut d6 = pins .d6.into_output().into_pwm(&mut timer0);
15
15
///
16
16
/// d5.set_duty(128);
17
17
/// d5.enable();
@@ -58,8 +58,8 @@ avr_hal_generic::impl_simple_pwm! {
58
58
/// ```
59
59
/// let mut timer1 = Timer1Pwm::new(dp.TC1, Prescaler::Prescale64);
60
60
///
61
- /// let mut d9 = portb .d9.into_output().into_pwm(&mut timer1);
62
- /// let mut d10 = portb .d10.into_output().into_pwm(&mut timer1);
61
+ /// let mut d9 = pins .d9.into_output().into_pwm(&mut timer1);
62
+ /// let mut d10 = pins .d10.into_output().into_pwm(&mut timer1);
63
63
///
64
64
/// d9.set_duty(128);
65
65
/// d9.enable();
@@ -110,8 +110,8 @@ avr_hal_generic::impl_simple_pwm! {
110
110
/// ```
111
111
/// let mut timer2 = Timer2Pwm::new(dp.TC2, Prescaler::Prescale64);
112
112
///
113
- /// let mut d11 = portb .d11.into_output().into_pwm(&mut timer2);
114
- /// let mut d3 = portd .d3.into_output().into_pwm(&mut timer2);
113
+ /// let mut d11 = pins .d11.into_output().into_pwm(&mut timer2);
114
+ /// let mut d3 = pins .d3.into_output().into_pwm(&mut timer2);
115
115
///
116
116
/// d11.set_duty(128);
117
117
/// d11.enable();
@@ -241,8 +241,8 @@ avr_hal_generic::impl_simple_pwm! {
241
241
/// ```
242
242
/// let mut timer0 = Timer0Pwm::new(dp.TC0, Prescaler::Prescale64);
243
243
///
244
- /// let mut d13 = portb .d13.into_output().into_pwm(&mut timer0);
245
- /// let mut d4 = portg .d4.into_output().into_pwm(&mut timer0);
244
+ /// let mut d13 = pins .d13.into_output().into_pwm(&mut timer0);
245
+ /// let mut d4 = pins .d4.into_output().into_pwm(&mut timer0);
246
246
///
247
247
/// d13.set_duty(128);
248
248
/// d13.enable();
@@ -289,9 +289,9 @@ avr_hal_generic::impl_simple_pwm! {
289
289
/// ```
290
290
/// let mut timer1 = Timer1Pwm::new(dp.TC1, Prescaler::Prescale64);
291
291
///
292
- /// let mut d11 = portb .d11.into_output().into_pwm(&mut timer1);
293
- /// let mut d12 = portb .d12.into_output().into_pwm(&mut timer1);
294
- /// let mut d13 = portb .d13.into_output().into_pwm(&mut timer1);
292
+ /// let mut d11 = pins .d11.into_output().into_pwm(&mut timer1);
293
+ /// let mut d12 = pins .d12.into_output().into_pwm(&mut timer1);
294
+ /// let mut d13 = pins .d13.into_output().into_pwm(&mut timer1);
295
295
///
296
296
/// d11.set_duty(128);
297
297
/// d11.enable();
@@ -347,8 +347,8 @@ avr_hal_generic::impl_simple_pwm! {
347
347
/// ```
348
348
/// let mut timer2 = Timer2Pwm::new(dp.TC2, Prescaler::Prescale64);
349
349
///
350
- /// let mut d10 = portb .into_output().into_pwm(&mut timer2);
351
- /// let mut d9 = porth .into_output().into_pwm(&mut timer2);
350
+ /// let mut d10 = pins.d10 .into_output().into_pwm(&mut timer2);
351
+ /// let mut d9 = pins.d9 .into_output().into_pwm(&mut timer2);
352
352
///
353
353
/// d10.set_duty(128);
354
354
/// d10.enable();
@@ -400,9 +400,9 @@ avr_hal_generic::impl_simple_pwm! {
400
400
/// ```
401
401
/// let mut timer3 = Timer3Pwm::new(dp.TC3, Prescaler::Prescale64);
402
402
///
403
- /// let mut d5 = porte .d5.into_output().into_pwm(&mut timer3);
404
- /// let mut d2 = porte .d2.into_output().into_pwm(&mut timer3);
405
- /// let mut d3 = porte .d3.into_output().into_pwm(&mut timer3);
403
+ /// let mut d5 = pins .d5.into_output().into_pwm(&mut timer3);
404
+ /// let mut d2 = pins .d2.into_output().into_pwm(&mut timer3);
405
+ /// let mut d3 = pins .d3.into_output().into_pwm(&mut timer3);
406
406
///
407
407
/// d5.set_duty(128);
408
408
/// d5.enable();
@@ -463,9 +463,9 @@ avr_hal_generic::impl_simple_pwm! {
463
463
/// ```
464
464
/// let mut timer4 = Timer4Pwm::new(dp.TC4, Prescaler::Prescale64);
465
465
///
466
- /// let mut d6 = porth .d6.into_output().into_pwm(&mut timer4);
467
- /// let mut d7 = porth .d7.into_output().into_pwm(&mut timer4);
468
- /// let mut d8 = porth .d8.into_output().into_pwm(&mut timer4);
466
+ /// let mut d6 = pins .d6.into_output().into_pwm(&mut timer4);
467
+ /// let mut d7 = pins .d7.into_output().into_pwm(&mut timer4);
468
+ /// let mut d8 = pins .d8.into_output().into_pwm(&mut timer4);
469
469
///
470
470
/// d6.set_duty(128);
471
471
/// d6.enable();
@@ -526,9 +526,9 @@ avr_hal_generic::impl_simple_pwm! {
526
526
/// ```
527
527
/// let mut timer5 = Timer5Pwm::new(dp.TC5, Prescaler::Prescale64);
528
528
///
529
- /// let mut d46 = portl .d46.into_output().into_pwm(&mut timer5);
530
- /// let mut d45 = portl .d45.into_output().into_pwm(&mut timer5);
531
- /// let mut d44 = portl .d44.into_output().into_pwm(&mut timer5);
529
+ /// let mut d46 = pins .d46.into_output().into_pwm(&mut timer5);
530
+ /// let mut d45 = pins .d45.into_output().into_pwm(&mut timer5);
531
+ /// let mut d44 = pins .d44.into_output().into_pwm(&mut timer5);
532
532
///
533
533
/// d46.set_duty(128);
534
534
/// d46.enable();
0 commit comments