File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
//! Direct memory access (DMA) controller
2
-
3
- // Currently DMA is only supported for STM32F303 MCUs.
4
- // Remove these `allow`s once all models have support.
5
- #![ cfg_attr( not( feature = "stm32f303" ) , allow( unused_imports, unused_macros) ) ]
2
+ //!
3
+ //! Currently DMA is only supported for STM32F303 MCUs.
6
4
7
5
use crate :: {
8
6
rcc:: AHB ,
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ pub use crate::pac::interrupt;
122
122
123
123
#[ cfg( feature = "device-selected" ) ]
124
124
pub mod delay;
125
- #[ cfg( feature = "device-selected " ) ]
125
+ #[ cfg( feature = "stm32f303 " ) ]
126
126
pub mod dma;
127
127
#[ cfg( feature = "device-selected" ) ]
128
128
pub mod flash;
Original file line number Diff line number Diff line change 1
1
//! Prelude
2
2
3
+ #[ cfg( feature = "stm32f303" ) ]
3
4
pub use crate :: dma:: DmaExt as _stm32f3xx_hal_dma_DmaExt;
4
5
pub use crate :: flash:: FlashExt as _stm32f3xx_hal_flash_FlashExt;
5
6
pub use crate :: gpio:: GpioExt as _stm32f3xx_hal_gpio_GpioExt;
You can’t perform that action at this time.
0 commit comments