diff options
| author | goueslati <[email protected]> | 2023-06-12 14:27:53 +0100 |
|---|---|---|
| committer | goueslati <[email protected]> | 2023-06-12 14:27:53 +0100 |
| commit | 2d89cfb18f00aefbfa108728dfea3398e80ea3e4 (patch) | |
| tree | 6485dacac7e61c4378ac522e709edb0a86bd7523 /embassy-stm32/src/dcmi.rs | |
| parent | 2dd5ce83ec0421564e85b667f5dabd592f313e5c (diff) | |
| parent | ab86b060500ceda1c80e39f35af69cb08a7b63a2 (diff) | |
fix merge conflict
Diffstat (limited to 'embassy-stm32/src/dcmi.rs')
| -rw-r--r-- | embassy-stm32/src/dcmi.rs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/embassy-stm32/src/dcmi.rs b/embassy-stm32/src/dcmi.rs index c13915a1b..41305d273 100644 --- a/embassy-stm32/src/dcmi.rs +++ b/embassy-stm32/src/dcmi.rs | |||
| @@ -8,7 +8,7 @@ use embassy_sync::waitqueue::AtomicWaker; | |||
| 8 | use crate::dma::Transfer; | 8 | use crate::dma::Transfer; |
| 9 | use crate::gpio::sealed::AFType; | 9 | use crate::gpio::sealed::AFType; |
| 10 | use crate::gpio::Speed; | 10 | use crate::gpio::Speed; |
| 11 | use crate::interrupt::Interrupt; | 11 | use crate::interrupt::typelevel::Interrupt; |
| 12 | use crate::{interrupt, Peripheral}; | 12 | use crate::{interrupt, Peripheral}; |
| 13 | 13 | ||
| 14 | /// Interrupt handler. | 14 | /// Interrupt handler. |
| @@ -16,7 +16,7 @@ pub struct InterruptHandler<T: Instance> { | |||
| 16 | _phantom: PhantomData<T>, | 16 | _phantom: PhantomData<T>, |
| 17 | } | 17 | } |
| 18 | 18 | ||
| 19 | impl<T: Instance> interrupt::Handler<T::Interrupt> for InterruptHandler<T> { | 19 | impl<T: Instance> interrupt::typelevel::Handler<T::Interrupt> for InterruptHandler<T> { |
| 20 | unsafe fn on_interrupt() { | 20 | unsafe fn on_interrupt() { |
| 21 | let ris = crate::pac::DCMI.ris().read(); | 21 | let ris = crate::pac::DCMI.ris().read(); |
| 22 | if ris.err_ris() { | 22 | if ris.err_ris() { |
| @@ -119,7 +119,7 @@ where | |||
| 119 | pub fn new_8bit( | 119 | pub fn new_8bit( |
| 120 | peri: impl Peripheral<P = T> + 'd, | 120 | peri: impl Peripheral<P = T> + 'd, |
| 121 | dma: impl Peripheral<P = Dma> + 'd, | 121 | dma: impl Peripheral<P = Dma> + 'd, |
| 122 | _irq: impl interrupt::Binding<T::Interrupt, InterruptHandler<T>> + 'd, | 122 | _irq: impl interrupt::typelevel::Binding<T::Interrupt, InterruptHandler<T>> + 'd, |
| 123 | d0: impl Peripheral<P = impl D0Pin<T>> + 'd, | 123 | d0: impl Peripheral<P = impl D0Pin<T>> + 'd, |
| 124 | d1: impl Peripheral<P = impl D1Pin<T>> + 'd, | 124 | d1: impl Peripheral<P = impl D1Pin<T>> + 'd, |
| 125 | d2: impl Peripheral<P = impl D2Pin<T>> + 'd, | 125 | d2: impl Peripheral<P = impl D2Pin<T>> + 'd, |
| @@ -143,7 +143,7 @@ where | |||
| 143 | pub fn new_10bit( | 143 | pub fn new_10bit( |
| 144 | peri: impl Peripheral<P = T> + 'd, | 144 | peri: impl Peripheral<P = T> + 'd, |
| 145 | dma: impl Peripheral<P = Dma> + 'd, | 145 | dma: impl Peripheral<P = Dma> + 'd, |
| 146 | _irq: impl interrupt::Binding<T::Interrupt, InterruptHandler<T>> + 'd, | 146 | _irq: impl interrupt::typelevel::Binding<T::Interrupt, InterruptHandler<T>> + 'd, |
| 147 | d0: impl Peripheral<P = impl D0Pin<T>> + 'd, | 147 | d0: impl Peripheral<P = impl D0Pin<T>> + 'd, |
| 148 | d1: impl Peripheral<P = impl D1Pin<T>> + 'd, | 148 | d1: impl Peripheral<P = impl D1Pin<T>> + 'd, |
| 149 | d2: impl Peripheral<P = impl D2Pin<T>> + 'd, | 149 | d2: impl Peripheral<P = impl D2Pin<T>> + 'd, |
| @@ -169,7 +169,7 @@ where | |||
| 169 | pub fn new_12bit( | 169 | pub fn new_12bit( |
| 170 | peri: impl Peripheral<P = T> + 'd, | 170 | peri: impl Peripheral<P = T> + 'd, |
| 171 | dma: impl Peripheral<P = Dma> + 'd, | 171 | dma: impl Peripheral<P = Dma> + 'd, |
| 172 | _irq: impl interrupt::Binding<T::Interrupt, InterruptHandler<T>> + 'd, | 172 | _irq: impl interrupt::typelevel::Binding<T::Interrupt, InterruptHandler<T>> + 'd, |
| 173 | d0: impl Peripheral<P = impl D0Pin<T>> + 'd, | 173 | d0: impl Peripheral<P = impl D0Pin<T>> + 'd, |
| 174 | d1: impl Peripheral<P = impl D1Pin<T>> + 'd, | 174 | d1: impl Peripheral<P = impl D1Pin<T>> + 'd, |
| 175 | d2: impl Peripheral<P = impl D2Pin<T>> + 'd, | 175 | d2: impl Peripheral<P = impl D2Pin<T>> + 'd, |
| @@ -197,7 +197,7 @@ where | |||
| 197 | pub fn new_14bit( | 197 | pub fn new_14bit( |
| 198 | peri: impl Peripheral<P = T> + 'd, | 198 | peri: impl Peripheral<P = T> + 'd, |
| 199 | dma: impl Peripheral<P = Dma> + 'd, | 199 | dma: impl Peripheral<P = Dma> + 'd, |
| 200 | _irq: impl interrupt::Binding<T::Interrupt, InterruptHandler<T>> + 'd, | 200 | _irq: impl interrupt::typelevel::Binding<T::Interrupt, InterruptHandler<T>> + 'd, |
| 201 | d0: impl Peripheral<P = impl D0Pin<T>> + 'd, | 201 | d0: impl Peripheral<P = impl D0Pin<T>> + 'd, |
| 202 | d1: impl Peripheral<P = impl D1Pin<T>> + 'd, | 202 | d1: impl Peripheral<P = impl D1Pin<T>> + 'd, |
| 203 | d2: impl Peripheral<P = impl D2Pin<T>> + 'd, | 203 | d2: impl Peripheral<P = impl D2Pin<T>> + 'd, |
| @@ -227,7 +227,7 @@ where | |||
| 227 | pub fn new_es_8bit( | 227 | pub fn new_es_8bit( |
| 228 | peri: impl Peripheral<P = T> + 'd, | 228 | peri: impl Peripheral<P = T> + 'd, |
| 229 | dma: impl Peripheral<P = Dma> + 'd, | 229 | dma: impl Peripheral<P = Dma> + 'd, |
| 230 | _irq: impl interrupt::Binding<T::Interrupt, InterruptHandler<T>> + 'd, | 230 | _irq: impl interrupt::typelevel::Binding<T::Interrupt, InterruptHandler<T>> + 'd, |
| 231 | d0: impl Peripheral<P = impl D0Pin<T>> + 'd, | 231 | d0: impl Peripheral<P = impl D0Pin<T>> + 'd, |
| 232 | d1: impl Peripheral<P = impl D1Pin<T>> + 'd, | 232 | d1: impl Peripheral<P = impl D1Pin<T>> + 'd, |
| 233 | d2: impl Peripheral<P = impl D2Pin<T>> + 'd, | 233 | d2: impl Peripheral<P = impl D2Pin<T>> + 'd, |
| @@ -249,7 +249,7 @@ where | |||
| 249 | pub fn new_es_10bit( | 249 | pub fn new_es_10bit( |
| 250 | peri: impl Peripheral<P = T> + 'd, | 250 | peri: impl Peripheral<P = T> + 'd, |
| 251 | dma: impl Peripheral<P = Dma> + 'd, | 251 | dma: impl Peripheral<P = Dma> + 'd, |
| 252 | _irq: impl interrupt::Binding<T::Interrupt, InterruptHandler<T>> + 'd, | 252 | _irq: impl interrupt::typelevel::Binding<T::Interrupt, InterruptHandler<T>> + 'd, |
| 253 | d0: impl Peripheral<P = impl D0Pin<T>> + 'd, | 253 | d0: impl Peripheral<P = impl D0Pin<T>> + 'd, |
| 254 | d1: impl Peripheral<P = impl D1Pin<T>> + 'd, | 254 | d1: impl Peripheral<P = impl D1Pin<T>> + 'd, |
| 255 | d2: impl Peripheral<P = impl D2Pin<T>> + 'd, | 255 | d2: impl Peripheral<P = impl D2Pin<T>> + 'd, |
| @@ -273,7 +273,7 @@ where | |||
| 273 | pub fn new_es_12bit( | 273 | pub fn new_es_12bit( |
| 274 | peri: impl Peripheral<P = T> + 'd, | 274 | peri: impl Peripheral<P = T> + 'd, |
| 275 | dma: impl Peripheral<P = Dma> + 'd, | 275 | dma: impl Peripheral<P = Dma> + 'd, |
| 276 | _irq: impl interrupt::Binding<T::Interrupt, InterruptHandler<T>> + 'd, | 276 | _irq: impl interrupt::typelevel::Binding<T::Interrupt, InterruptHandler<T>> + 'd, |
| 277 | d0: impl Peripheral<P = impl D0Pin<T>> + 'd, | 277 | d0: impl Peripheral<P = impl D0Pin<T>> + 'd, |
| 278 | d1: impl Peripheral<P = impl D1Pin<T>> + 'd, | 278 | d1: impl Peripheral<P = impl D1Pin<T>> + 'd, |
| 279 | d2: impl Peripheral<P = impl D2Pin<T>> + 'd, | 279 | d2: impl Peripheral<P = impl D2Pin<T>> + 'd, |
| @@ -299,7 +299,7 @@ where | |||
| 299 | pub fn new_es_14bit( | 299 | pub fn new_es_14bit( |
| 300 | peri: impl Peripheral<P = T> + 'd, | 300 | peri: impl Peripheral<P = T> + 'd, |
| 301 | dma: impl Peripheral<P = Dma> + 'd, | 301 | dma: impl Peripheral<P = Dma> + 'd, |
| 302 | _irq: impl interrupt::Binding<T::Interrupt, InterruptHandler<T>> + 'd, | 302 | _irq: impl interrupt::typelevel::Binding<T::Interrupt, InterruptHandler<T>> + 'd, |
| 303 | d0: impl Peripheral<P = impl D0Pin<T>> + 'd, | 303 | d0: impl Peripheral<P = impl D0Pin<T>> + 'd, |
| 304 | d1: impl Peripheral<P = impl D1Pin<T>> + 'd, | 304 | d1: impl Peripheral<P = impl D1Pin<T>> + 'd, |
| 305 | d2: impl Peripheral<P = impl D2Pin<T>> + 'd, | 305 | d2: impl Peripheral<P = impl D2Pin<T>> + 'd, |
| @@ -570,7 +570,7 @@ mod sealed { | |||
| 570 | } | 570 | } |
| 571 | 571 | ||
| 572 | pub trait Instance: sealed::Instance + 'static { | 572 | pub trait Instance: sealed::Instance + 'static { |
| 573 | type Interrupt: Interrupt; | 573 | type Interrupt: interrupt::typelevel::Interrupt; |
| 574 | } | 574 | } |
| 575 | 575 | ||
| 576 | pin_trait!(D0Pin, Instance); | 576 | pin_trait!(D0Pin, Instance); |
| @@ -602,7 +602,7 @@ macro_rules! impl_peripheral { | |||
| 602 | } | 602 | } |
| 603 | 603 | ||
| 604 | impl Instance for crate::peripherals::$inst { | 604 | impl Instance for crate::peripherals::$inst { |
| 605 | type Interrupt = crate::interrupt::$irq; | 605 | type Interrupt = crate::interrupt::typelevel::$irq; |
| 606 | } | 606 | } |
| 607 | }; | 607 | }; |
| 608 | } | 608 | } |
