diff --git a/embassy-rp/src/gpio.rs b/embassy-rp/src/gpio.rs index 33bc58a0..ee7e03e9 100644 --- a/embassy-rp/src/gpio.rs +++ b/embassy-rp/src/gpio.rs @@ -222,7 +222,6 @@ fn IO_IRQ_QSPI() { #[must_use = "futures do nothing unless you `.await` or poll them"] struct InputFuture<'a, T: Pin> { pin: PeripheralRef<'a, T>, - level: InterruptTrigger, } impl<'d, T: Pin> InputFuture<'d, T> { @@ -249,7 +248,6 @@ impl<'d, T: Pin> InputFuture<'d, T> { .inte((pin.pin() / 8) as usize) .write_set(|w| match level { InterruptTrigger::LevelHigh => { - trace!("InputFuture::new enable LevelHigh for pin {}", pin.pin()); w.set_level_high(pin_group, true); } InterruptTrigger::LevelLow => { @@ -267,7 +265,7 @@ impl<'d, T: Pin> InputFuture<'d, T> { } }); - Self { pin, level } + Self { pin } } } @@ -303,14 +301,8 @@ impl<'d, T: Pin> Future for InputFuture<'d, T> { && !inte.level_high(pin_group) && !inte.level_low(pin_group) { - trace!( - "{:?} for pin {} was cleared, return Poll::Ready", - self.level, - self.pin.pin() - ); return Poll::Ready(()); } - trace!("InputFuture::poll return Poll::Pending"); Poll::Pending } } diff --git a/embassy-rp/src/uart/buffered.rs b/embassy-rp/src/uart/buffered.rs index e57b7259..645d703d 100644 --- a/embassy-rp/src/uart/buffered.rs +++ b/embassy-rp/src/uart/buffered.rs @@ -490,8 +490,6 @@ impl interrupt::typelevel::Handler for BufferedInterr w.set_oeic(ris.oeris()); }); - trace!("on_interrupt ris={:#X}", ris.0); - // Errors if ris.feris() { warn!("Framing error"); diff --git a/tests/stm32/src/bin/dac.rs b/tests/stm32/src/bin/dac.rs index 67a7d5b5..fb7a84b1 100644 --- a/tests/stm32/src/bin/dac.rs +++ b/tests/stm32/src/bin/dac.rs @@ -54,7 +54,7 @@ async fn main(_spawner: Spawner) { // Calibrate and normalize the measurement to get close to the dac_output_val let measured_normalized = ((measured as i32 - offset as i32) / normalization_factor) as i16; - info!("value / measured: {} / {}", dac_output_val, measured_normalized); + //info!("value / measured: {} / {}", dac_output_val, measured_normalized); // The deviations are quite enormous but that does not matter since this is only a quick test assert!((dac_output_val as i16 - measured_normalized).abs() < 15);