Skip to content

Commit

Permalink
Merge branch 'add-opamp-functionality' into add-pga-modes
Browse files Browse the repository at this point in the history
  • Loading branch information
stabler committed Jan 5, 2024
2 parents e24baa7 + 13d4631 commit c9648cb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/opamp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,13 +332,13 @@ macro_rules! opamps {

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

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

Expand Down Expand Up @@ -560,6 +560,7 @@ macro_rules! opamps {
IntoInput: Into<$input>,
IntoOutput: Into<$output>,
{
#[inline]
fn follower(
self,
input: IntoInput,
Expand Down Expand Up @@ -639,6 +640,7 @@ macro_rules! opamps {
IntoInverting: Into<$inverting>,
IntoOutput: Into<$output>,
{
#[inline]
fn open_loop(
self,
non_inverting: IntoNonInverting,
Expand Down

0 comments on commit c9648cb

Please sign in to comment.