diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-10-12 14:29:23 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-12 14:29:23 +0000 |
| commit | debda2f52c320904755d89ef9c19fa6e54734fe8 (patch) | |
| tree | 20f7a2f1e27e0d30e530047e819b6efeaf2bd9cc /embassy-stm32/src/exti.rs | |
| parent | 66e399b5c61653f1f66cd3fd1592936e4085d6b5 (diff) | |
| parent | 97ca0e77bf6e6f36aae18cb57fbfa8e583597327 (diff) | |
Merge pull request #2045 from embassy-rs/stm32-cs-spam
Avoid creating many tiny critical sections in embassy-stm32::init
Diffstat (limited to 'embassy-stm32/src/exti.rs')
| -rw-r--r-- | embassy-stm32/src/exti.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/exti.rs b/embassy-stm32/src/exti.rs index 62f321709..538791a51 100644 --- a/embassy-stm32/src/exti.rs +++ b/embassy-stm32/src/exti.rs | |||
| @@ -367,7 +367,7 @@ macro_rules! enable_irq { | |||
| 367 | } | 367 | } |
| 368 | 368 | ||
| 369 | /// safety: must be called only once | 369 | /// safety: must be called only once |
| 370 | pub(crate) unsafe fn init() { | 370 | pub(crate) unsafe fn init(_cs: critical_section::CriticalSection) { |
| 371 | use crate::interrupt::typelevel::Interrupt; | 371 | use crate::interrupt::typelevel::Interrupt; |
| 372 | 372 | ||
| 373 | foreach_exti_irq!(enable_irq); | 373 | foreach_exti_irq!(enable_irq); |
