fix case when chip has multiple iwdg

This commit is contained in:
Vincent Stakenburg 2022-06-28 13:15:23 +02:00
parent f2ad9c2d9d
commit d1d07cd9e3

View File

@ -40,10 +40,14 @@ mod sealed {
pub trait Instance: sealed::Instance {} pub trait Instance: sealed::Instance {}
impl sealed::Instance for crate::peripherals::IWDG { foreach_peripheral!(
(iwdg, $inst:ident) => {
impl sealed::Instance for crate::peripherals::$inst {
fn regs() -> crate::pac::iwdg::Iwdg { fn regs() -> crate::pac::iwdg::Iwdg {
crate::pac::IWDG crate::pac::$inst
}
} }
}
impl Instance for crate::peripherals::IWDG {} impl Instance for crate::peripherals::$inst {}
};
);