From 2feacb57b1c6d75f51a58679035fd00ab3e0ccbb Mon Sep 17 00:00:00 2001 From: akscram Date: Thu, 25 Nov 2021 03:17:58 +0000 Subject: [PATCH] L4xx: fixed DMA streams for I2C4 on L496 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15132 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/hal/ports/STM32/STM32L4xx/stm32_registry.h | 4 ++-- readme.txt | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/os/hal/ports/STM32/STM32L4xx/stm32_registry.h b/os/hal/ports/STM32/STM32L4xx/stm32_registry.h index 556aa99fb..1c6d8073d 100644 --- a/os/hal/ports/STM32/STM32L4xx/stm32_registry.h +++ b/os/hal/ports/STM32/STM32L4xx/stm32_registry.h @@ -1534,9 +1534,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 1f1a1d1e0..894ba118e 100644 --- a/readme.txt +++ b/readme.txt @@ -93,6 +93,7 @@ ARMv7-M and ARMv8-M-ML. - NEW: On STM32WBxx added a check on STM32_LSI_ENABLE required by IWDG. - NEW: Added SPIv2 support also to STM32WB and STM32WL. +- FIX: Fixed I2C4 DMA streams for STM32L496 (bug #1202) - FIX: Fixed STM32_SDMMC2_NUMBER on STM32H7 (bug #1201) (backported to 20.3.5)(backported to 21.11.1). - FIX: Fixed STM32G0B1 demo application hangs debuggers (bug #1200)