remove dead code when v1
This commit is contained in:
parent
bec0eac5ab
commit
8b50f2a58b
@ -46,12 +46,6 @@ impl From<u16> for Address {
|
||||
}
|
||||
}
|
||||
impl Address {
|
||||
pub(super) fn add_mode(&self) -> stm32_metapac::i2c::vals::Addmode {
|
||||
match self {
|
||||
Address::SevenBit(_) => stm32_metapac::i2c::vals::Addmode::BIT7,
|
||||
Address::TenBit(_) => stm32_metapac::i2c::vals::Addmode::BIT10,
|
||||
}
|
||||
}
|
||||
/// Get the inner address as a u16.
|
||||
///
|
||||
/// For 7 bit addresses, the u8 that was used to store the address is returned as a u16.
|
||||
|
||||
@ -27,6 +27,15 @@ impl From<AddrMask> for Oamsk {
|
||||
}
|
||||
}
|
||||
|
||||
impl Address {
|
||||
pub(super) fn add_mode(&self) -> stm32_metapac::i2c::vals::Addmode {
|
||||
match self {
|
||||
Address::SevenBit(_) => stm32_metapac::i2c::vals::Addmode::BIT7,
|
||||
Address::TenBit(_) => stm32_metapac::i2c::vals::Addmode::BIT10,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) unsafe fn on_interrupt<T: Instance>() {
|
||||
let regs = T::info().regs;
|
||||
let isr = regs.isr().read();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user