Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
David-OConnor committed Jan 25, 2024
1 parent cdd0802 commit fe4e190
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/adc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit fe4e190

Please sign in to comment.