From af9964c018672a3735a7d5b4b81ff6a2e89c7e39 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Wed, 4 Oct 2017 14:52:48 +0000 Subject: More bug #889. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10770 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/STM32F0xx/stm32_registry.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'os/hal') diff --git a/os/hal/ports/STM32/STM32F0xx/stm32_registry.h b/os/hal/ports/STM32/STM32F0xx/stm32_registry.h index adba521a0..12e79b0a5 100644 --- a/os/hal/ports/STM32/STM32F0xx/stm32_registry.h +++ b/os/hal/ports/STM32/STM32F0xx/stm32_registry.h @@ -1880,10 +1880,12 @@ #define STM32_I2C1_TX_DMA_CHN 0x00200020 #define STM32_HAS_I2C2 TRUE -#define STM32_I2C2_RX_DMA_MSK STM32_DMA_STREAM_ID_MSK(1, 5) -#define STM32_I2C2_RX_DMA_CHN 0x00000000 -#define STM32_I2C2_TX_DMA_MSK STM32_DMA_STREAM_ID_MSK(1, 4) -#define STM32_I2C2_TX_DMA_CHN 0x00000000 +#define STM32_I2C2_RX_DMA_MSK (STM32_DMA_STREAM_ID_MSK(1, 5) |\ + STM32_DMA_STREAM_ID_MSK(2, 2)) +#define STM32_I2C2_RX_DMA_CHN 0x00020020 +#define STM32_I2C2_TX_DMA_MSK (STM32_DMA_STREAM_ID_MSK(1, 4) |\ + STM32_DMA_STREAM_ID_MSK(2, 1)) +#define STM32_I2C2_TX_DMA_CHN 0x00002002 #define STM32_HAS_I2C3 FALSE #define STM32_HAS_I2C4 FALSE -- cgit v1.2.3