@@ -2,7 +2,12 @@ use avr_hal_generic::simple_pwm::Prescaler;
2
2
3
3
use crate :: port:: * ;
4
4
5
- #[ cfg( any( feature = "atmega48p" , feature = "atmega168" , feature = "atmega328p" , feature = "atmega328pb" ) ) ]
5
+ #[ cfg( any(
6
+ feature = "atmega48p" ,
7
+ feature = "atmega168" ,
8
+ feature = "atmega328p" ,
9
+ feature = "atmega328pb"
10
+ ) ) ]
6
11
avr_hal_generic:: impl_simple_pwm! {
7
12
/// Use `TC0` for PWM (pins `PD5`, `PD6`)
8
13
///
@@ -50,7 +55,12 @@ avr_hal_generic::impl_simple_pwm! {
50
55
}
51
56
}
52
57
53
- #[ cfg( any( feature = "atmega48p" , feature = "atmega168" , feature = "atmega328p" , feature = "atmega328pb" ) ) ]
58
+ #[ cfg( any(
59
+ feature = "atmega48p" ,
60
+ feature = "atmega168" ,
61
+ feature = "atmega328p" ,
62
+ feature = "atmega328pb"
63
+ ) ) ]
54
64
avr_hal_generic:: impl_simple_pwm! {
55
65
/// Use `TC1` for PWM (pins `PB1`, `PB2`)
56
66
///
@@ -102,7 +112,12 @@ avr_hal_generic::impl_simple_pwm! {
102
112
}
103
113
}
104
114
105
- #[ cfg( any( feature = "atmega48p" , feature = "atmega168" , feature = "atmega328p" , feature = "atmega328pb" ) ) ]
115
+ #[ cfg( any(
116
+ feature = "atmega48p" ,
117
+ feature = "atmega168" ,
118
+ feature = "atmega328p" ,
119
+ feature = "atmega328pb"
120
+ ) ) ]
106
121
avr_hal_generic:: impl_simple_pwm! {
107
122
/// Use `TC2` for PWM (pins `PB3`, `PD3`)
108
123
///
@@ -232,8 +247,7 @@ avr_hal_generic::impl_simple_pwm! {
232
247
}
233
248
}
234
249
235
-
236
- #[ cfg( any( feature = "atmega1280" , feature="atmega2560" ) ) ]
250
+ #[ cfg( any( feature = "atmega1280" , feature = "atmega2560" ) ) ]
237
251
avr_hal_generic:: impl_simple_pwm! {
238
252
/// Use `TC0` for PWM (pins `PB7`, `PG5`)
239
253
///
@@ -281,7 +295,7 @@ avr_hal_generic::impl_simple_pwm! {
281
295
}
282
296
}
283
297
284
- #[ cfg( any( feature = "atmega1280" , feature= "atmega2560" ) ) ]
298
+ #[ cfg( any( feature = "atmega1280" , feature = "atmega2560" ) ) ]
285
299
avr_hal_generic:: impl_simple_pwm! {
286
300
/// Use `TC1` for PWM (pins `PB5`, `PB6`, `PB7`)
287
301
///
@@ -339,7 +353,7 @@ avr_hal_generic::impl_simple_pwm! {
339
353
}
340
354
}
341
355
342
- #[ cfg( any( feature = "atmega1280" , feature= "atmega2560" ) ) ]
356
+ #[ cfg( any( feature = "atmega1280" , feature = "atmega2560" ) ) ]
343
357
avr_hal_generic:: impl_simple_pwm! {
344
358
/// Use `TC2` for PWM (pins `PB4`, `PH6`)
345
359
///
@@ -392,7 +406,7 @@ avr_hal_generic::impl_simple_pwm! {
392
406
}
393
407
}
394
408
395
- #[ cfg( any( feature = "atmega1280" , feature= "atmega2560" ) ) ]
409
+ #[ cfg( any( feature = "atmega1280" , feature = "atmega2560" ) ) ]
396
410
avr_hal_generic:: impl_simple_pwm! {
397
411
/// Use `TC3` for PWM (pins `PE3`, `PE4`, `PE5`)
398
412
///
@@ -455,7 +469,7 @@ avr_hal_generic::impl_simple_pwm! {
455
469
}
456
470
}
457
471
458
- #[ cfg( any( feature = "atmega1280" , feature= "atmega2560" ) ) ]
472
+ #[ cfg( any( feature = "atmega1280" , feature = "atmega2560" ) ) ]
459
473
avr_hal_generic:: impl_simple_pwm! {
460
474
/// Use `TC4` for PWM (pins `PH3`, `PH4`, `PH5`)
461
475
///
@@ -518,7 +532,7 @@ avr_hal_generic::impl_simple_pwm! {
518
532
}
519
533
}
520
534
521
- #[ cfg( any( feature = "atmega1280" , feature= "atmega2560" ) ) ]
535
+ #[ cfg( any( feature = "atmega1280" , feature = "atmega2560" ) ) ]
522
536
avr_hal_generic:: impl_simple_pwm! {
523
537
/// Use `TC5` for PWM (pins `PL3`, `PL4`, `PL5`)
524
538
///
0 commit comments