Skip to content

Commit

Permalink
OPAMP - Add more adc pin impls for opamp follower
Browse files Browse the repository at this point in the history
  • Loading branch information
usbalbin committed Nov 7, 2024
1 parent 0e471e9 commit d3fc23d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/adc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2863,6 +2863,21 @@ adc_opamp!(
opamp::Opamp6 => (ADC4, 17),
);

#[cfg(any(
feature = "stm32g473",
feature = "stm32g474",
feature = "stm32g483",
feature = "stm32g484",
feature = "stm32g491",
feature = "stm32g4a1",
))]
adc_op_follower!(
opamp::opamp3::Follower<A> => (ADC3, 13),
opamp::opamp4::Follower<A> => (ADC5, 5),
opamp::opamp5::Follower<A> => (ADC5, 3),
opamp::opamp6::Follower<A> => (ADC4, 17),
);

#[cfg(any(feature = "stm32g491", feature = "stm32g4a1",))]
adc_opamp!(
opamp::Opamp6 => (ADC3, 17),
Expand Down

0 comments on commit d3fc23d

Please sign in to comment.