diff options
| author | Bob McWhirter <[email protected]> | 2021-07-27 13:23:33 -0400 |
|---|---|---|
| committer | Bob McWhirter <[email protected]> | 2021-07-27 13:23:33 -0400 |
| commit | 8759213fcc5ba154b1d39362d81da85164b3aab2 (patch) | |
| tree | 91656334307be31b954b85918de62d50e6593e0e | |
| parent | b910551c9ac9857e77eea79a4845a38f38111d83 (diff) | |
Use new interrupt! table format to /enable/ the IRQs also.
| -rw-r--r-- | embassy-stm32/src/dma/bdma.rs | 2 | ||||
| -rw-r--r-- | embassy-stm32/src/dma/dma.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/src/dma/bdma.rs b/embassy-stm32/src/dma/bdma.rs index 5b8f31c21..2aa00ebee 100644 --- a/embassy-stm32/src/dma/bdma.rs +++ b/embassy-stm32/src/dma/bdma.rs | |||
| @@ -143,7 +143,7 @@ unsafe fn on_irq() { | |||
| 143 | /// safety: must be called only once | 143 | /// safety: must be called only once |
| 144 | pub(crate) unsafe fn init() { | 144 | pub(crate) unsafe fn init() { |
| 145 | pac::interrupts! { | 145 | pac::interrupts! { |
| 146 | (BDMA, $irq:ident) => { | 146 | ($peri:ident, bdma, $block:ident, $signal_name:ident, $irq:ident) => { |
| 147 | crate::interrupt::$irq::steal().enable(); | 147 | crate::interrupt::$irq::steal().enable(); |
| 148 | }; | 148 | }; |
| 149 | } | 149 | } |
diff --git a/embassy-stm32/src/dma/dma.rs b/embassy-stm32/src/dma/dma.rs index c6d35dc46..47120c39d 100644 --- a/embassy-stm32/src/dma/dma.rs +++ b/embassy-stm32/src/dma/dma.rs | |||
| @@ -149,7 +149,7 @@ unsafe fn on_irq() { | |||
| 149 | /// safety: must be called only once | 149 | /// safety: must be called only once |
| 150 | pub(crate) unsafe fn init() { | 150 | pub(crate) unsafe fn init() { |
| 151 | pac::interrupts! { | 151 | pac::interrupts! { |
| 152 | (DMA, $irq:ident) => { | 152 | ($peri:ident, dma, $block:ident, $signal_name:ident, $irq:ident) => { |
| 153 | interrupt::$irq::steal().enable(); | 153 | interrupt::$irq::steal().enable(); |
| 154 | }; | 154 | }; |
| 155 | } | 155 | } |
