From 5609843e9337092728ed2434172967fea5cf6097 Mon Sep 17 00:00:00 2001 From: cinsights Date: Sat, 11 Apr 2020 14:11:33 +0000 Subject: [PATCH] Fix bug #1082 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13524 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/hal/ports/STM32/LLD/I2Cv3/hal_i2c_lld.h | 6 +++--- readme.txt | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/os/hal/ports/STM32/LLD/I2Cv3/hal_i2c_lld.h b/os/hal/ports/STM32/LLD/I2Cv3/hal_i2c_lld.h index 351052f1b..906217233 100644 --- a/os/hal/ports/STM32/LLD/I2Cv3/hal_i2c_lld.h +++ b/os/hal/ports/STM32/LLD/I2Cv3/hal_i2c_lld.h @@ -482,7 +482,7 @@ struct I2CDriver { * @brief TX DMA mode bit mask. */ uint32_t txdmamode; -#if defined(STM32_I2C_DMA_REQUIRED) && defined(STM32_I2C_BDMA_REQUIRED) +#if defined(STM32_I2C_DMA_REQUIRED) && defined(STM32_BDMA_REQUIRED) /** * @brief DMA type for this instance. */ @@ -499,7 +499,7 @@ struct I2CDriver { const stm32_dma_stream_t *dma; #endif #if (STM32_I2C4_USE_BDMA == TRUE) || defined(__DOXYGEN__) -#if defined(STM32_I2C_BDMA_REQUIRED) || defined(__DOXYGEN__) +#if defined(STM32_BDMA_REQUIRED) || defined(__DOXYGEN__) /** * @brief Receive BDMA stream. */ @@ -518,7 +518,7 @@ struct I2CDriver { const stm32_dma_stream_t *dma; #endif #if (STM32_I2C4_USE_BDMA == TRUE) || defined(__DOXYGEN__) -#if defined(STM32_I2C_BDMA_REQUIRED) || defined(__DOXYGEN__) +#if defined(STM32_BDMA_REQUIRED) || defined(__DOXYGEN__) /** * @brief Transmit DMA stream. */ diff --git a/readme.txt b/readme.txt index a85d8ebcc..25e3080e5 100644 --- a/readme.txt +++ b/readme.txt @@ -74,6 +74,7 @@ ***************************************************************************** *** Next *** +- FIX: Corrected I2C4 BDMA #define conditional in I2Cv3 (bug #1082) - RT: Relocated the "ctx" field in the thread structure in order to save some RAM, it caused unused space in the "ch" variable. - EX: Added support for ADXL355 Low Noise, Low Drift, Low Power, 3-Axis