General clean-up and removal of dead code.

This commit is contained in:
Bob McWhirter
2021-06-03 14:25:17 -04:00
parent d75bf143eb
commit 240616aa72
5 changed files with 7 additions and 60 deletions

View File

@ -40,13 +40,13 @@ pub trait SdaPin<T: Instance>: sealed::SdaPin<T> + 'static {}
crate::pac::peripherals!(
(i2c, $inst:ident) => {
impl crate::i2c::sealed::Instance for peripherals::$inst {
impl sealed::Instance for peripherals::$inst {
fn regs() -> &'static crate::pac::i2c::I2c {
&crate::pac::$inst
}
}
impl crate::i2c::Instance for peripherals::$inst {}
impl Instance for peripherals::$inst {}
};
);