Skip to content

Commit 3b32f52

Browse files
authored
Merge pull request #613 from stm32-rs/dma-i2c-fix
dma channel 3.7 i2c fix
2 parents 4f30ac2 + 38e9919 commit 3b32f52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dma/traits.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ dma_map!(
369369
(Stream0<DMA1>, 1, pac::I2C1 | i2c::Rx<pac::I2C1>, PeripheralToMemory), //I2C1_RX
370370
(Stream2<DMA1>, 7, pac::I2C2 | i2c::Rx<pac::I2C2>, PeripheralToMemory), //I2C2_RX
371371
(Stream3<DMA1>, 0, pac::SPI2 | spi::Rx<pac::SPI2>, PeripheralToMemory), //SPI2_RX
372-
(Stream3<DMA1>, 7, pac::I2C2 | spi::Rx<pac::I2C2>, PeripheralToMemory), //I2C2_RX
372+
(Stream3<DMA1>, 7, pac::I2C2 | i2c::Rx<pac::I2C2>, PeripheralToMemory), //I2C2_RX
373373
(Stream4<DMA1>, 0, pac::SPI2 | spi::Tx<pac::SPI2>, MemoryToPeripheral), // SPI2_TX
374374
(Stream5<DMA1>, 1, pac::I2C1 | i2c::Rx<pac::I2C1>, PeripheralToMemory), //I2C1_RX
375375
(Stream5<DMA1>, 4, pac::USART2 | serial::Rx<pac::USART2>, PeripheralToMemory), //USART2_RX

0 commit comments

Comments
 (0)