diff options
| author | Alexandros Liarokapis <[email protected]> | 2024-08-17 00:26:33 +0300 |
|---|---|---|
| committer | Alexandros Liarokapis <[email protected]> | 2024-08-17 16:54:41 +0300 |
| commit | 2b7e76efe9916170cba69da964d53c19a246ae45 (patch) | |
| tree | 10f1b8973e80af44dd81a65aad4f1e7456a3ca30 /embassy-stm32/src/rcc/f247.rs | |
| parent | 6d9ed4c0807c977aa6d3c852360d52128f8c459a (diff) | |
Fix dma nvic issues on dual core lines
This commit addresses #3256 by disabling dma NVIC interrupt enablement at startup.
Instead, per-channel NVIC interrupt enablement is now done with the rest of the dma channel configuration.
This ensures that each core will only handle the interrupts of the DMA channels that it uses.
Diffstat (limited to 'embassy-stm32/src/rcc/f247.rs')
| -rw-r--r-- | embassy-stm32/src/rcc/f247.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/embassy-stm32/src/rcc/f247.rs b/embassy-stm32/src/rcc/f247.rs index 61f687d30..58056301a 100644 --- a/embassy-stm32/src/rcc/f247.rs +++ b/embassy-stm32/src/rcc/f247.rs | |||
| @@ -63,6 +63,7 @@ pub struct Pll { | |||
| 63 | /// Used to calculate flash waitstates. See | 63 | /// Used to calculate flash waitstates. See |
| 64 | /// RM0033 - Table 3. Number of wait states according to Cortex®-M3 clock frequency | 64 | /// RM0033 - Table 3. Number of wait states according to Cortex®-M3 clock frequency |
| 65 | #[cfg(stm32f2)] | 65 | #[cfg(stm32f2)] |
| 66 | #[derive(Clone, Copy)] | ||
| 66 | pub enum VoltageScale { | 67 | pub enum VoltageScale { |
| 67 | /// 2.7 to 3.6 V | 68 | /// 2.7 to 3.6 V |
| 68 | Range0, | 69 | Range0, |
| @@ -76,6 +77,7 @@ pub enum VoltageScale { | |||
| 76 | 77 | ||
| 77 | /// Configuration of the core clocks | 78 | /// Configuration of the core clocks |
| 78 | #[non_exhaustive] | 79 | #[non_exhaustive] |
| 80 | #[derive(Clone, Copy)] | ||
| 79 | pub struct Config { | 81 | pub struct Config { |
| 80 | pub hsi: bool, | 82 | pub hsi: bool, |
| 81 | pub hse: Option<Hse>, | 83 | pub hse: Option<Hse>, |
