From fe4e190371defd5f45ac1f25c1d8834768a1b4bb Mon Sep 17 00:00:00 2001 From: David O'Connor Date: Thu, 25 Jan 2024 10:04:24 -0500 Subject: [PATCH] update --- src/adc.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/adc.rs b/src/adc.rs index bea6f1e..2dca2be 100644 --- a/src/adc.rs +++ b/src/adc.rs @@ -433,10 +433,10 @@ macro_rules! hal { // ...The software is allowed to write this bit only when ADSTART=0 and JADSTART=0 (which // ensures that no conversion is ongoing)." // todo: On H7, allow disabling boost, either manually, or by checking the clock speed. - #[cfg(all(feature = "h7", not(feature = "h753")))] + #[cfg(all(feature = "h7", not(any(feature = "h743", feature = "h753"))))] result.regs.cr.modify(|_, w| w.boost().bits(1)); - #[cfg(feature = "h753")] + #[cfg(any(feature = "h743", feature = "h753"))] result.regs.cr.modify(|_, w| w.boost().bit(true)); result.enable();