aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2019-03-15 13:42:48 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2019-03-15 13:42:48 +0000
commitb69a36edd22a1aa2c97cc79a71071a009fb87c29 (patch)
tree59250cdf027f440061dc4123c52c30b4b16919fc /os/hal
parent031d3262c3078bf3ba7397997486a5a6c1f37fdc (diff)
downloadChibiOS-b69a36edd22a1aa2c97cc79a71071a009fb87c29.tar.gz
ChibiOS-b69a36edd22a1aa2c97cc79a71071a009fb87c29.tar.bz2
ChibiOS-b69a36edd22a1aa2c97cc79a71071a009fb87c29.zip
Fixed bug #1019.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_19.1.x@12693 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
Diffstat (limited to 'os/hal')
-rw-r--r--os/hal/ports/STM32/LLD/I2Cv3/hal_i2c_lld.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/os/hal/ports/STM32/LLD/I2Cv3/hal_i2c_lld.c b/os/hal/ports/STM32/LLD/I2Cv3/hal_i2c_lld.c
index 30abebadb..b7e0b480b 100644
--- a/os/hal/ports/STM32/LLD/I2Cv3/hal_i2c_lld.c
+++ b/os/hal/ports/STM32/LLD/I2Cv3/hal_i2c_lld.c
@@ -981,8 +981,8 @@ void i2c_lld_stop(I2CDriver *i2cp) {
#endif
#if defined(STM32_I2C_BDMA_REQUIRED)
{
- bdmaStreamRelease(i2cp->rx.bdma);
- bdmaStreamRelease(i2cp->tx.bdma);
+ bdmaStreamFreeI(i2cp->rx.bdma);
+ bdmaStreamFreeI(i2cp->tx.bdma);
}
#endif
#if defined(STM32_I2C_DMA_REQUIRED) && defined(STM32_I2C_BDMA_REQUIRED)
@@ -990,8 +990,8 @@ void i2c_lld_stop(I2CDriver *i2cp) {
#endif
#if defined(STM32_I2C_DMA_REQUIRED)
{
- dmaStreamRelease(i2cp->rx.dma);
- dmaStreamRelease(i2cp->tx.dma);
+ dmaStreamFreeI(i2cp->rx.dma);
+ dmaStreamFreeI(i2cp->tx.dma);
}
#endif