Trait ComparatorSplit
stm32g0xx_hal::analog::comparator
pub trait ComparatorSplit { fn split(self, rcc: &mut Rcc) -> (COMP1, COMP2); }
fn split(self, rcc: &mut Rcc) -> (COMP1, COMP2)
Enables the comparator peripheral, and splits the COMP into independent COMP1 and COMP2
COMP
COMP1
COMP2
impl ComparatorSplit for COMP