aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2024-12-13 11:26:29 +0000
committerGitHub <[email protected]>2024-12-13 11:26:29 +0000
commit45d9bd57575d9391a68334a2f3966b92032d5dc6 (patch)
tree9f5665ecfebc571fca7c77d394cc39579e7cbceb
parentbfec5c1486951147479c259c0fa5786fc63f1262 (diff)
parentcfe6bc172404131cb03c3078cc6d91b1dd5a8014 (diff)
Merge pull request #3636 from G-Levine/stm32g4-missing-opamp-output-fix
Add missing opamp external outputs for STM32G4
-rw-r--r--embassy-stm32/src/opamp.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/embassy-stm32/src/opamp.rs b/embassy-stm32/src/opamp.rs
index c86c18e22..d1c53a740 100644
--- a/embassy-stm32/src/opamp.rs
+++ b/embassy-stm32/src/opamp.rs
@@ -251,10 +251,12 @@ foreach_peripheral!(
251 impl_opamp_external_output!(OPAMP2, ADC2, 3); 251 impl_opamp_external_output!(OPAMP2, ADC2, 3);
252 }; 252 };
253 (opamp, OPAMP3) => { 253 (opamp, OPAMP3) => {
254 impl_opamp_external_output!(OPAMP3, ADC1, 12);
254 impl_opamp_external_output!(OPAMP3, ADC3, 1); 255 impl_opamp_external_output!(OPAMP3, ADC3, 1);
255 }; 256 };
256 // OPAMP4 only in STM32G4 Cat 3 devices 257 // OPAMP4 only in STM32G4 Cat 3 devices
257 (opamp, OPAMP4) => { 258 (opamp, OPAMP4) => {
259 impl_opamp_external_output!(OPAMP4, ADC1, 11);
258 impl_opamp_external_output!(OPAMP4, ADC4, 3); 260 impl_opamp_external_output!(OPAMP4, ADC4, 3);
259 }; 261 };
260 // OPAMP5 only in STM32G4 Cat 3 devices 262 // OPAMP5 only in STM32G4 Cat 3 devices
@@ -264,6 +266,7 @@ foreach_peripheral!(
264 // OPAMP6 only in STM32G4 Cat 3/4 devices 266 // OPAMP6 only in STM32G4 Cat 3/4 devices
265 (opamp, OPAMP6) => { 267 (opamp, OPAMP6) => {
266 impl_opamp_external_output!(OPAMP6, ADC1, 14); 268 impl_opamp_external_output!(OPAMP6, ADC1, 14);
269 impl_opamp_external_output!(OPAMP6, ADC2, 14);
267 }; 270 };
268); 271);
269 272