diff --git a/os/hal/ports/STM32/STM32L4xx/stm32_registry.h b/os/hal/ports/STM32/STM32L4xx/stm32_registry.h index c2acbe680..95563d393 100644 --- a/os/hal/ports/STM32/STM32L4xx/stm32_registry.h +++ b/os/hal/ports/STM32/STM32L4xx/stm32_registry.h @@ -1173,9 +1173,9 @@ #define STM32_I2C3_TX_DMA_CHN 0x00000030 #define STM32_HAS_I2C4 TRUE -#define STM32_I2C4_RX_DMA_MSK (STM32_DMA_STREAM_ID_MSK(2, 2)) +#define STM32_I2C4_RX_DMA_MSK (STM32_DMA_STREAM_ID_MSK(2, 1)) #define STM32_I2C4_RX_DMA_CHN 0x00000000 -#define STM32_I2C4_TX_DMA_MSK (STM32_DMA_STREAM_ID_MSK(2, 1)) +#define STM32_I2C4_TX_DMA_MSK (STM32_DMA_STREAM_ID_MSK(2, 2)) #define STM32_I2C4_TX_DMA_CHN 0x00000000 /* QUADSPI attributes.*/ diff --git a/readme.txt b/readme.txt index 3070f3552..ad6cdbd2a 100644 --- a/readme.txt +++ b/readme.txt @@ -76,6 +76,7 @@ *** 20.3.5 *** - FIX: Fixed wrong number of CAN filters for STM32L496/9A6 (bug #1204). - FIX: Fixed DMA stream not disabled in STM32 QUADSPIv1 driver (bug #1203). +- FIX: Fixed I2C4 DMA streams for STM32L496 (bug #1202). - FIX: Fixed STM32_SDMMC2_NUMBER on STM32H7 (bug #1201). *** 20.3.4 ***