Skip to content

Commit 5b6ba4e

Browse files
sprhawkteskje
authored andcommitted
enable dma module for stm32f302xx
1 parent 788aedb commit 5b6ba4e

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

src/dma.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,10 +494,14 @@ dma!(
494494
);
495495

496496
#[cfg(any(
497+
feature = "stm32f302xb",
498+
feature = "stm32f302xc",
499+
feature = "stm32f302xd",
500+
feature = "stm32f302xe",
497501
feature = "stm32f303xb",
498502
feature = "stm32f303xc",
499503
feature = "stm32f303xd",
500-
feature = "stm32f303xe"
504+
feature = "stm32f303xe",
501505
))]
502506
dma!(
503507
DMA2, dma2, dma2en,

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ pub use crate::pac::interrupt;
116116
pub mod adc;
117117
#[cfg(feature = "device-selected")]
118118
pub mod delay;
119-
#[cfg(feature = "stm32f303")]
119+
#[cfg(any(feature = "stm32f303", feature = "stm32f302"))]
120120
pub mod dma;
121121
#[cfg(feature = "device-selected")]
122122
pub mod flash;

src/prelude.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Prelude
22
3-
#[cfg(feature = "stm32f303")]
3+
#[cfg(any(feature = "stm32f303", feature = "stm32f302"))]
44
pub use crate::dma::DmaExt as _stm32f3xx_hal_dma_DmaExt;
55
pub use crate::flash::FlashExt as _stm32f3xx_hal_flash_FlashExt;
66
pub use crate::gpio::GpioExt as _stm32f3xx_hal_gpio_GpioExt;

0 commit comments

Comments
 (0)