diff options
| author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-10-04 14:52:48 +0000 | 
|---|---|---|
| committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-10-04 14:52:48 +0000 | 
| commit | af9964c018672a3735a7d5b4b81ff6a2e89c7e39 (patch) | |
| tree | 6a0820c898c070baaee5616de09d6aa63cf8fb98 /os | |
| parent | 426c5edcd872ade0c619e4caa0930ea9ab68484d (diff) | |
| download | ChibiOS-af9964c018672a3735a7d5b4b81ff6a2e89c7e39.tar.gz ChibiOS-af9964c018672a3735a7d5b4b81ff6a2e89c7e39.tar.bz2 ChibiOS-af9964c018672a3735a7d5b4b81ff6a2e89c7e39.zip | |
More bug #889.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10770 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
| -rw-r--r-- | os/hal/ports/STM32/STM32F0xx/stm32_registry.h | 10 | 
1 files changed, 6 insertions, 4 deletions
| 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
 | 
