Skip to content

Commit

Permalink
Fix some leftover G491 things
Browse files Browse the repository at this point in the history
  • Loading branch information
usbalbin committed Nov 7, 2024
1 parent 851dd97 commit d3744e6
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/opamp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -914,8 +914,9 @@ opamps! {

#[cfg(any(feature = "stm32g471", feature = "stm32g491", feature = "stm32g4a1"))]
opamps! {
opamp1: {
vinm0: PA3,
Opamp1 => opamp1: {
vinm0: crate::gpio::gpioa::PA3<crate::gpio::Analog>,
vinm1: crate::gpio::gpioc::PC5<crate::gpio::Analog>,
inverting: {
crate::gpio::gpioa::PA3<crate::gpio::Analog>: vinm0,
crate::gpio::gpioc::PC5<crate::gpio::Analog>: vinm1,
Expand All @@ -927,8 +928,9 @@ opamps! {
},
output: crate::gpio::gpioa::PA2<crate::gpio::Analog>,
},
opamp2: {
vinm0: PA5,
Opamp2 => opamp2: {
vinm0: crate::gpio::gpioa::PA5<crate::gpio::Analog>,
vinm1: crate::gpio::gpioc::PC5<crate::gpio::Analog>,
inverting: {
crate::gpio::gpioa::PA5<crate::gpio::Analog>: vinm0,
crate::gpio::gpioc::PC5<crate::gpio::Analog>: vinm1,
Expand All @@ -941,8 +943,9 @@ opamps! {
},
output: crate::gpio::gpioa::PA6<crate::gpio::Analog>,
},
opamp3: {
vinm0: PB2,
Opamp3 => opamp3: {
vinm0: crate::gpio::gpiob::PB2<crate::gpio::Analog>,
vinm1: crate::gpio::gpiob::PB10<crate::gpio::Analog>,
inverting: {
crate::gpio::gpiob::PB2<crate::gpio::Analog>: vinm0,
crate::gpio::gpiob::PB10<crate::gpio::Analog>: vinm1,
Expand All @@ -954,8 +957,9 @@ opamps! {
},
output: crate::gpio::gpiob::PB1<crate::gpio::Analog>,
},
opamp6: {
vinm0: PA1,
Opamp6 => opamp6: {
vinm0: crate::gpio::gpioa::PA1<crate::gpio::Analog>,
vinm1: crate::gpio::gpiob::PB1<crate::gpio::Analog>,
inverting: {
crate::gpio::gpioa::PA1<crate::gpio::Analog>: vinm0,
crate::gpio::gpiob::PB1<crate::gpio::Analog>: vinm1,
Expand Down

0 comments on commit d3744e6

Please sign in to comment.