diff options
| author | Lambert Sartory <[email protected]> | 2025-12-11 00:04:37 +0100 |
|---|---|---|
| committer | Lambert Sartory <[email protected]> | 2025-12-11 00:26:58 +0100 |
| commit | 86271ea39e841bfa7f8d74defc4aaa07a680be13 (patch) | |
| tree | 790b369664eda029a39dff0330356ca8cc309a22 /embassy-stm32/src/dma | |
| parent | 80a8859b2f4ad215ac04e4c55649f6f47191b035 (diff) | |
Enable STM32N6 DMA and I2C clock sources
Diffstat (limited to 'embassy-stm32/src/dma')
| -rw-r--r-- | embassy-stm32/src/dma/gpdma/mod.rs | 1 | ||||
| -rw-r--r-- | embassy-stm32/src/dma/mod.rs | 4 |
2 files changed, 0 insertions, 5 deletions
diff --git a/embassy-stm32/src/dma/gpdma/mod.rs b/embassy-stm32/src/dma/gpdma/mod.rs index 51c107cb4..afb18ec1a 100644 --- a/embassy-stm32/src/dma/gpdma/mod.rs +++ b/embassy-stm32/src/dma/gpdma/mod.rs | |||
| @@ -137,7 +137,6 @@ pub(crate) unsafe fn init(cs: critical_section::CriticalSection, irq_priority: c | |||
| 137 | 137 | ||
| 138 | impl AnyChannel { | 138 | impl AnyChannel { |
| 139 | /// Safety: Must be called with a matching set of parameters for a valid dma channel | 139 | /// Safety: Must be called with a matching set of parameters for a valid dma channel |
| 140 | #[cfg(not(stm32n6))] | ||
| 141 | pub(crate) unsafe fn on_irq(&self) { | 140 | pub(crate) unsafe fn on_irq(&self) { |
| 142 | let info = self.info(); | 141 | let info = self.info(); |
| 143 | #[cfg(feature = "_dual-core")] | 142 | #[cfg(feature = "_dual-core")] |
diff --git a/embassy-stm32/src/dma/mod.rs b/embassy-stm32/src/dma/mod.rs index 90feab167..05d9c2e51 100644 --- a/embassy-stm32/src/dma/mod.rs +++ b/embassy-stm32/src/dma/mod.rs | |||
| @@ -48,11 +48,9 @@ pub type Request = u8; | |||
| 48 | pub type Request = (); | 48 | pub type Request = (); |
| 49 | 49 | ||
| 50 | pub(crate) trait SealedChannel: StoppablePeripheral { | 50 | pub(crate) trait SealedChannel: StoppablePeripheral { |
| 51 | #[cfg(not(stm32n6))] | ||
| 52 | fn id(&self) -> u8; | 51 | fn id(&self) -> u8; |
| 53 | } | 52 | } |
| 54 | 53 | ||
| 55 | #[cfg(not(stm32n6))] | ||
| 56 | pub(crate) trait ChannelInterrupt { | 54 | pub(crate) trait ChannelInterrupt { |
| 57 | #[cfg_attr(not(feature = "rt"), allow(unused))] | 55 | #[cfg_attr(not(feature = "rt"), allow(unused))] |
| 58 | unsafe fn on_irq(); | 56 | unsafe fn on_irq(); |
| @@ -62,7 +60,6 @@ pub(crate) trait ChannelInterrupt { | |||
| 62 | #[allow(private_bounds)] | 60 | #[allow(private_bounds)] |
| 63 | pub trait Channel: SealedChannel + PeripheralType + Into<AnyChannel> + 'static {} | 61 | pub trait Channel: SealedChannel + PeripheralType + Into<AnyChannel> + 'static {} |
| 64 | 62 | ||
| 65 | #[cfg(not(stm32n6))] | ||
| 66 | macro_rules! dma_channel_impl { | 63 | macro_rules! dma_channel_impl { |
| 67 | ($channel_peri:ident, $index:expr, $stop_mode:ident) => { | 64 | ($channel_peri:ident, $index:expr, $stop_mode:ident) => { |
| 68 | impl crate::rcc::StoppablePeripheral for crate::peripherals::$channel_peri { | 65 | impl crate::rcc::StoppablePeripheral for crate::peripherals::$channel_peri { |
| @@ -125,7 +122,6 @@ impl StoppablePeripheral for AnyChannel { | |||
| 125 | } | 122 | } |
| 126 | 123 | ||
| 127 | impl SealedChannel for AnyChannel { | 124 | impl SealedChannel for AnyChannel { |
| 128 | #[cfg(not(stm32n6))] | ||
| 129 | fn id(&self) -> u8 { | 125 | fn id(&self) -> u8 { |
| 130 | self.id | 126 | self.id |
| 131 | } | 127 | } |
