fix case when chip has multiple iwdg
This commit is contained in:
parent
f2ad9c2d9d
commit
d1d07cd9e3
@ -40,10 +40,14 @@ mod sealed {
|
||||
|
||||
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 {
|
||||
crate::pac::IWDG
|
||||
crate::pac::$inst
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Instance for crate::peripherals::IWDG {}
|
||||
impl Instance for crate::peripherals::$inst {}
|
||||
};
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user