Skip to content

Commit 7961a3b

Browse files
janschieferburrbull
authored andcommitted
Cargo fmt, update changelog.
1 parent 270da51 commit 7961a3b

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
- Improve SPI::new* docs [#587]
11+
- Add advanced timer dead time insertion example [#585]
12+
1013
## [v0.15.0] - 2023-03-13
1114

1215
### Changed

examples/pwm-dead-time.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,19 @@ fn main() -> ! {
2525
let mut pwm = dp.TIM1.pwm_hz(channels, 20.kHz(), &clocks);
2626

2727
let max_duty: u16 = pwm.get_max_duty();
28-
28+
2929
pwm.set_polarity(Channel::C1, Polarity::ActiveHigh);
3030
pwm.set_complementary_polarity(Channel::C1, Polarity::ActiveHigh);
3131

3232
pwm.set_duty(Channel::C1, max_duty / 2);
33-
34-
pwm.set_dead_time( 200 );
35-
33+
34+
pwm.set_dead_time(200);
35+
3636
pwm.enable(Channel::C1);
3737
pwm.enable_complementary(Channel::C1);
38+
}
3839

39-
}
40-
4140
loop {
4241
cortex_m::asm::nop();
4342
}
4443
}
45-

0 commit comments

Comments
 (0)