Skip to content

Commit

Permalink
Fix opamp for g431 etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
usbalbin committed Dec 23, 2024
1 parent 34aa3c6 commit 595723c
Showing 1 changed file with 37 additions and 37 deletions.
74 changes: 37 additions & 37 deletions src/opamp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -764,42 +764,42 @@ opamps! {
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,
crate::gpio::gpioa::PA3<crate::gpio::Analog>: Vinm0,
crate::gpio::gpioc::PC5<crate::gpio::Analog>: Vinm1,
},
non_inverting: {
crate::gpio::gpioa::PA1<crate::gpio::Analog>: vinp0,
crate::gpio::gpioa::PA3<crate::gpio::Analog>: vinp1,
crate::gpio::gpioa::PA7<crate::gpio::Analog>: vinp2,
crate::gpio::gpioa::PA1<crate::gpio::Analog>: Vinp0,
crate::gpio::gpioa::PA3<crate::gpio::Analog>: Vinp1,
crate::gpio::gpioa::PA7<crate::gpio::Analog>: Vinp2,
},
output: crate::gpio::gpioa::PA2<crate::gpio::Analog>,
},
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,
crate::gpio::gpioa::PA5<crate::gpio::Analog>: Vinm0,
crate::gpio::gpioc::PC5<crate::gpio::Analog>: Vinm1,
},
non_inverting: {
crate::gpio::gpioa::PA7<crate::gpio::Analog>: vinp0,
crate::gpio::gpiob::PB14<crate::gpio::Analog>: vinp1,
crate::gpio::gpiob::PB0<crate::gpio::Analog>: vinp2,
crate::gpio::gpiod::PD14<crate::gpio::Analog>: vinp3,
crate::gpio::gpioa::PA7<crate::gpio::Analog>: Vinp0,
crate::gpio::gpiob::PB14<crate::gpio::Analog>: Vinp1,
crate::gpio::gpiob::PB0<crate::gpio::Analog>: Vinp2,
crate::gpio::gpiod::PD14<crate::gpio::Analog>: Vinp3,
},
output: crate::gpio::gpioa::PA6<crate::gpio::Analog>,
},
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,
crate::gpio::gpiob::PB2<crate::gpio::Analog>: Vinm0,
crate::gpio::gpiob::PB10<crate::gpio::Analog>: Vinm1,
},
non_inverting: {
crate::gpio::gpiob::PB0<crate::gpio::Analog>: vinp0,
crate::gpio::gpiob::PB13<crate::gpio::Analog>: vinp1,
crate::gpio::gpioa::PA1<crate::gpio::Analog>: vinp2,
crate::gpio::gpiob::PB0<crate::gpio::Analog>: Vinp0,
crate::gpio::gpiob::PB13<crate::gpio::Analog>: Vinp1,
crate::gpio::gpioa::PA1<crate::gpio::Analog>: Vinp2,
},
output: crate::gpio::gpiob::PB1<crate::gpio::Analog>,
},
Expand All @@ -811,56 +811,56 @@ opamps! {
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,
crate::gpio::gpioa::PA3<crate::gpio::Analog>: Vinm0,
crate::gpio::gpioc::PC5<crate::gpio::Analog>: Vinm1,
},
non_inverting: {
crate::gpio::gpioa::PA1<crate::gpio::Analog>: vinp0,
crate::gpio::gpioa::PA3<crate::gpio::Analog>: vinp1,
crate::gpio::gpioa::PA7<crate::gpio::Analog>: vinp2,
crate::gpio::gpioa::PA1<crate::gpio::Analog>: Vinp0,
crate::gpio::gpioa::PA3<crate::gpio::Analog>: Vinp1,
crate::gpio::gpioa::PA7<crate::gpio::Analog>: Vinp2,
},
output: crate::gpio::gpioa::PA2<crate::gpio::Analog>,
},
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,
crate::gpio::gpioa::PA5<crate::gpio::Analog>: Vinm0,
crate::gpio::gpioc::PC5<crate::gpio::Analog>: Vinm1,
},
non_inverting: {
crate::gpio::gpioa::PA7<crate::gpio::Analog>: vinp0,
crate::gpio::gpiob::PB14<crate::gpio::Analog>: vinp1,
crate::gpio::gpiob::PB0<crate::gpio::Analog>: vinp2,
crate::gpio::gpiod::PD14<crate::gpio::Analog>: vinp3,
crate::gpio::gpioa::PA7<crate::gpio::Analog>: Vinp0,
crate::gpio::gpiob::PB14<crate::gpio::Analog>: Vinp1,
crate::gpio::gpiob::PB0<crate::gpio::Analog>: Vinp2,
crate::gpio::gpiod::PD14<crate::gpio::Analog>: Vinp3,
},
output: crate::gpio::gpioa::PA6<crate::gpio::Analog>,
},
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,
crate::gpio::gpiob::PB2<crate::gpio::Analog>: Vinm0,
crate::gpio::gpiob::PB10<crate::gpio::Analog>: Vinm1,
},
non_inverting: {
crate::gpio::gpiob::PB0<crate::gpio::Analog>: vinp0,
crate::gpio::gpiob::PB13<crate::gpio::Analog>: vinp1,
crate::gpio::gpioa::PA1<crate::gpio::Analog>: vinp2,
crate::gpio::gpiob::PB0<crate::gpio::Analog>: Vinp0,
crate::gpio::gpiob::PB13<crate::gpio::Analog>: Vinp1,
crate::gpio::gpioa::PA1<crate::gpio::Analog>: Vinp2,
},
output: crate::gpio::gpiob::PB1<crate::gpio::Analog>,
},
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,
crate::gpio::gpioa::PA1<crate::gpio::Analog>: Vinm0,
crate::gpio::gpiob::PB1<crate::gpio::Analog>: Vinm1,
},
non_inverting: {
crate::gpio::gpiob::PB12<crate::gpio::Analog>: vinp0,
crate::gpio::gpiod::PD9<crate::gpio::Analog>: vinp1,
crate::gpio::gpiob::PB13<crate::gpio::Analog>: vinp2,
crate::gpio::gpiob::PB12<crate::gpio::Analog>: Vinp0,
crate::gpio::gpiod::PD9<crate::gpio::Analog>: Vinp1,
crate::gpio::gpiob::PB13<crate::gpio::Analog>: Vinp2,
},
output: crate::gpio::gpiob::PB11<crate::gpio::Analog>,
},
Expand Down

0 comments on commit 595723c

Please sign in to comment.