Merge pull request #3636 from G-Levine/stm32g4-missing-opamp-output-fix

Add missing opamp external outputs for STM32G4
This commit is contained in:
Dario Nieuwenhuis 2024-12-13 11:26:29 +00:00 committed by GitHub
commit 45d9bd5757
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
@ -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);
};
);