removed constrain method

This commit is contained in:
OueslatiGhaith 2023-04-28 10:17:01 +01:00
parent 91cddd50f6
commit 29cc661dca

View File

@ -170,16 +170,6 @@ impl sealed::Instance for crate::peripherals::IPCC {
}
}
/// extension trait that constrains the [`Ipcc`] peripheral
pub trait IpccExt<'d> {
fn constrain(self) -> Ipcc<'d>;
}
impl<'d> IpccExt<'d> for IPCC {
fn constrain(self) -> Ipcc<'d> {
Ipcc { _peri: self.into_ref() }
}
}
unsafe fn _configure_pwr() {
let rcc = crate::pac::RCC;