Skip to content

Commit ca67567

Browse files
committed
woops
1 parent f999811 commit ca67567

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

examples/pwm_complementary.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ use cortex_m_rt::entry;
1010

1111
use stm32f0xx_hal as hal;
1212

13-
use hal::{delay::Delay, pac, prelude::*, pwm};
13+
use hal::{
14+
delay::Delay,
15+
pac,
16+
prelude::*,
17+
pwm::{ self, DTInterval::*, * }
18+
};
1419

1520
#[entry]
1621
fn main() -> ! {
@@ -31,6 +36,8 @@ fn main() -> ! {
3136
let max_duty = ch1.get_max_duty();
3237
ch1.set_duty(max_duty / 2);
3338
ch1.enable();
39+
40+
ch1n.set_dead_time(DT_2);
3441
ch1n.enable();
3542

3643
// simple duty sweep
@@ -57,4 +64,4 @@ fn main() -> ! {
5764
loop {
5865
cortex_m::asm::nop();
5966
}
60-
}
67+
}

0 commit comments

Comments
 (0)