Skip to content

Commit

Permalink
Update for new pac with write and modify not returning unit type - fo…
Browse files Browse the repository at this point in the history
…r G431 and friends
  • Loading branch information
usbalbin committed Nov 7, 2024
1 parent 369754d commit 851dd97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/opamp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,13 +333,13 @@ macro_rules! opamps {
#[inline(always)]
unsafe fn _disable_output() {
(*crate::stm32::OPAMP::ptr()).[<$opampreg _csr>]().modify(|_, w|
w.opaintoen().adcchannel())
w.opaintoen().adcchannel());
}

#[inline(always)]
unsafe fn _enable_output() {
(*crate::stm32::OPAMP::ptr()).[<$opampreg _csr>]().modify(|_, w|
w.opaintoen().output_pin())
w.opaintoen().output_pin());
}

#[inline(always)]
Expand All @@ -352,7 +352,7 @@ macro_rules! opamps {
// the user doesn't want anything changing if they care to set
// the lock bit.
(*crate::stm32::OPAMP::ptr()).[<$opampreg _tcmr>]().modify(|_, w|
w.lock().set_bit())
w.lock().set_bit());
}
}

Expand Down

0 comments on commit 851dd97

Please sign in to comment.