Skip to content

Commit

Permalink
Add missing opamp external outputs for STM32G4
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Levine authored Dec 10, 2024
1 parent 406d377 commit cfe6bc1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions embassy-stm32/src/opamp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,12 @@ foreach_peripheral!(
impl_opamp_external_output!(OPAMP2, ADC2, 3);
};
(opamp, OPAMP3) => {
impl_opamp_external_output!(OPAMP3, ADC1, 12);
impl_opamp_external_output!(OPAMP3, ADC3, 1);
};
// OPAMP4 only in STM32G4 Cat 3 devices
(opamp, OPAMP4) => {
impl_opamp_external_output!(OPAMP4, ADC1, 11);
impl_opamp_external_output!(OPAMP4, ADC4, 3);
};
// OPAMP5 only in STM32G4 Cat 3 devices
Expand All @@ -264,6 +266,7 @@ foreach_peripheral!(
// OPAMP6 only in STM32G4 Cat 3/4 devices
(opamp, OPAMP6) => {
impl_opamp_external_output!(OPAMP6, ADC1, 14);
impl_opamp_external_output!(OPAMP6, ADC2, 14);
};
);

Expand Down

0 comments on commit cfe6bc1

Please sign in to comment.