Skip to content

Commit

Permalink
g491 and g4a1 does not have ADC4 and 5
Browse files Browse the repository at this point in the history
  • Loading branch information
usbalbin committed Nov 7, 2024
1 parent d3744e6 commit 698b932
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/adc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2844,6 +2844,15 @@ adc_opamp!(
))]
adc_opamp!(
opamp::Opamp3 => (ADC3, 13),
);

#[cfg(any(
feature = "stm32g473",
feature = "stm32g474",
feature = "stm32g483",
feature = "stm32g484",
))]
adc_opamp!(
opamp::Opamp4 => (ADC5, 5),
opamp::Opamp5 => (ADC5, 3),
opamp::Opamp6 => (ADC4, 17),
Expand Down

0 comments on commit 698b932

Please sign in to comment.