From 88f664b434fd062faee923129d8814ef9c16036d Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Sat, 15 May 2021 00:02:35 +0200 Subject: [PATCH] nrf/pwm: set initial value to Low, according to the PS --- embassy-nrf/src/pwm.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/embassy-nrf/src/pwm.rs b/embassy-nrf/src/pwm.rs index b79c4bc3..ec589e8d 100644 --- a/embassy-nrf/src/pwm.rs +++ b/embassy-nrf/src/pwm.rs @@ -53,19 +53,19 @@ impl<'d, T: Instance> Pwm<'d, T> { let s = T::state(); if let Some(pin) = ch0.pin_mut() { - pin.set_high(); + pin.set_low(); pin.conf().write(|w| w.dir().output()); } if let Some(pin) = ch1.pin_mut() { - pin.set_high(); + pin.set_low(); pin.conf().write(|w| w.dir().output()); } if let Some(pin) = ch2.pin_mut() { - pin.set_high(); + pin.set_low(); pin.conf().write(|w| w.dir().output()); } if let Some(pin) = ch3.pin_mut() { - pin.set_high(); + pin.set_low(); pin.conf().write(|w| w.dir().output()); } r.psel.out[0].write(|w| unsafe { w.bits(ch0.psel_bits()) });