Skip to content

Commit 4dca584

Browse files
committed
I2c DMA: move common traits for I2C DMA in prelude
Also adapt example to changes
1 parent d1ad89b commit 4dca584

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

examples/stopwatch-with-ssd1306-and-interrupts-and-dma-i2c.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use stm32f4xx_hal as hal;
2424
use crate::hal::{
2525
dma::{Stream1, StreamsTuple},
2626
gpio::*,
27-
i2c::dma::{I2CMasterDma, I2CMasterHandleIT, I2CMasterWriteDMA, NoDMA, TxDMA},
27+
i2c::dma::{I2CMasterDma, NoDMA, TxDMA},
2828
i2c::I2c,
2929
interrupt, pac,
3030
pac::{DMA1, I2C1},

src/prelude.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ pub use crate::dac::DacExt as _stm32f4xx_hal_dac_DacExt;
6363
pub use crate::gpio::outport::OutPort as _;
6464
pub use crate::gpio::ExtiPin as _stm32f4xx_hal_gpio_ExtiPin;
6565
pub use crate::gpio::GpioExt as _stm32f4xx_hal_gpio_GpioExt;
66+
pub use crate::i2c::dma::I2CMasterHandleIT as _stm32f4xx_hal_i2c_dma_I2CMasterHandleIT;
67+
pub use crate::i2c::dma::I2CMasterReadDMA as _stm32f4xx_hal_i2c_dma_I2CMasterReadDMA;
68+
pub use crate::i2c::dma::I2CMasterWriteDMA as _stm32f4xx_hal_i2c_dma_I2CMasterWriteDMA;
69+
pub use crate::i2c::dma::I2CMasterWriteReadDMA as _stm32f4xx_hal_i2c_dma_I2CMasterWriteReadDMA;
6670
pub use crate::i2c::I2cExt as _stm32f4xx_hal_i2c_I2cExt;
6771
pub use crate::i2s::I2sExt as _stm32f4xx_hal_i2s_I2sExt;
6872
pub use crate::qei::QeiExt as _stm32f4xx_hal_QeiExt;

0 commit comments

Comments
 (0)