We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f51452f commit 913ba1cCopy full SHA for 913ba1c
src/comparator.rs
@@ -444,6 +444,10 @@ macro_rules! impl_comparator {
444
}
445
446
447
+ pub fn set_inverted(&mut self, inverted: bool) {
448
+ self.regs.csr().modify(|_, w| w.pol().bit(inverted));
449
+ }
450
+
451
/// Enables raising the `ADC_COMP` interrupt at the specified output signal edge
452
pub fn listen(&self, edge: SignalEdge, exti: &EXTI) {
453
exti.listen($Event, edge);
0 commit comments