Skip to content

Commit

Permalink
Merge pull request #3636 from G-Levine/stm32g4-missing-opamp-output-fix
Browse files Browse the repository at this point in the history
Add missing opamp external outputs for STM32G4
  • Loading branch information
Dirbaio authored Dec 13, 2024
2 parents bfec5c1 + cfe6bc1 commit 45d9bd5
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 45d9bd5

Please sign in to comment.