diff options
| author | OueslatiGhaith <[email protected]> | 2023-04-28 10:17:01 +0100 |
|---|---|---|
| committer | OueslatiGhaith <[email protected]> | 2023-04-28 10:17:01 +0100 |
| commit | 29cc661dca449e404fa37ba4d8aff3580eb6fe78 (patch) | |
| tree | 6614628c0f59285ccb177f0ff1bc8b9f7ed29707 /embassy-stm32/src/ipcc.rs | |
| parent | 91cddd50f6a2deb3ae88007dfae50972ab7852d1 (diff) | |
removed constrain method
Diffstat (limited to 'embassy-stm32/src/ipcc.rs')
| -rw-r--r-- | embassy-stm32/src/ipcc.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/embassy-stm32/src/ipcc.rs b/embassy-stm32/src/ipcc.rs index a54cf8faf..903aeca30 100644 --- a/embassy-stm32/src/ipcc.rs +++ b/embassy-stm32/src/ipcc.rs | |||
| @@ -170,16 +170,6 @@ impl sealed::Instance for crate::peripherals::IPCC { | |||
| 170 | } | 170 | } |
| 171 | } | 171 | } |
| 172 | 172 | ||
| 173 | /// extension trait that constrains the [`Ipcc`] peripheral | ||
| 174 | pub trait IpccExt<'d> { | ||
| 175 | fn constrain(self) -> Ipcc<'d>; | ||
| 176 | } | ||
| 177 | impl<'d> IpccExt<'d> for IPCC { | ||
| 178 | fn constrain(self) -> Ipcc<'d> { | ||
| 179 | Ipcc { _peri: self.into_ref() } | ||
| 180 | } | ||
| 181 | } | ||
| 182 | |||
| 183 | unsafe fn _configure_pwr() { | 173 | unsafe fn _configure_pwr() { |
| 184 | let rcc = crate::pac::RCC; | 174 | let rcc = crate::pac::RCC; |
| 185 | 175 | ||
