Skip to content

Commit 1fbe8db

Browse files
committed
Add more comparator impls
1 parent 4e52055 commit 1fbe8db

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

src/comparator.rs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,32 @@ macro_rules! impl_comparator {
563563

564564
impl_comparator!(COMP1, comp1, ExtiEvent::COMP1);
565565
impl_comparator!(COMP2, comp2, ExtiEvent::COMP2);
566+
impl_comparator!(COMP3, comp1, ExtiEvent::COMP3);
567+
impl_comparator!(COMP4, comp2, ExtiEvent::COMP4);
568+
569+
#[cfg(any(
570+
feature = "stm32g473",
571+
feature = "stm32g483",
572+
feature = "stm32g474",
573+
feature = "stm32g484"
574+
))]
575+
impl_comparator!(COMP5, comp1, ExtiEvent::COMP5);
576+
577+
#[cfg(any(
578+
feature = "stm32g473",
579+
feature = "stm32g483",
580+
feature = "stm32g474",
581+
feature = "stm32g484"
582+
))]
583+
impl_comparator!(COMP6, comp2, ExtiEvent::COMP6);
584+
585+
#[cfg(any(
586+
feature = "stm32g473",
587+
feature = "stm32g483",
588+
feature = "stm32g474",
589+
feature = "stm32g484"
590+
))]
591+
impl_comparator!(COMP7, comp2, ExtiEvent::COMP7);
566592

567593
/*
568594
/// Uses two comparators to implement a window comparator.

0 commit comments

Comments
 (0)