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/g0.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/g0.rs')
| -rw-r--r-- | embassy-stm32/src/rcc/g0.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/embassy-stm32/src/rcc/g0.rs b/embassy-stm32/src/rcc/g0.rs index c2fa0ca39..c53c83b0e 100644 --- a/embassy-stm32/src/rcc/g0.rs +++ b/embassy-stm32/src/rcc/g0.rs | |||
| @@ -33,6 +33,7 @@ pub struct Hse { | |||
| 33 | /// Use this struct to configure the PLL source, input frequency, multiplication factor, and output | 33 | /// Use this struct to configure the PLL source, input frequency, multiplication factor, and output |
| 34 | /// dividers. Be sure to keep check the datasheet for your specific part for the appropriate | 34 | /// dividers. Be sure to keep check the datasheet for your specific part for the appropriate |
| 35 | /// frequency ranges for each of these settings. | 35 | /// frequency ranges for each of these settings. |
| 36 | #[derive(Clone, Copy)] | ||
| 36 | pub struct Pll { | 37 | pub struct Pll { |
| 37 | /// PLL Source clock selection. | 38 | /// PLL Source clock selection. |
| 38 | pub source: PllSource, | 39 | pub source: PllSource, |
| @@ -55,6 +56,7 @@ pub struct Pll { | |||
| 55 | 56 | ||
| 56 | /// Clocks configutation | 57 | /// Clocks configutation |
| 57 | #[non_exhaustive] | 58 | #[non_exhaustive] |
| 59 | #[derive(Clone, Copy)] | ||
| 58 | pub struct Config { | 60 | pub struct Config { |
| 59 | /// HSI Enable | 61 | /// HSI Enable |
| 60 | pub hsi: bool, | 62 | pub hsi: bool, |
