aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F4xx/FSMC_SRAM/memcpy_dma.c
diff options
context:
space:
mode:
authorDiego Ismirlian <dismirlian@gmail.com>2019-10-02 11:38:05 -0300
committerDiego Ismirlian <dismirlian@gmail.com>2019-10-02 11:38:05 -0300
commit6f817a029807c07668d41b33faa3512df129710a (patch)
tree9502da2e070e245b51af4ed51b8c681fe13df416 /testhal/STM32/STM32F4xx/FSMC_SRAM/memcpy_dma.c
parentd685cfd0c27252b77fe3cb5416d3921f37033e81 (diff)
parent51910c3551c2a4232ba3defcef063e2f745f925a (diff)
downloadChibiOS-Contrib-6f817a029807c07668d41b33faa3512df129710a.tar.gz
ChibiOS-Contrib-6f817a029807c07668d41b33faa3512df129710a.tar.bz2
ChibiOS-Contrib-6f817a029807c07668d41b33faa3512df129710a.zip
Merge branch 'master' of https://github.com/ChibiOS/ChibiOS-Contrib
Diffstat (limited to 'testhal/STM32/STM32F4xx/FSMC_SRAM/memcpy_dma.c')
-rw-r--r--testhal/STM32/STM32F4xx/FSMC_SRAM/memcpy_dma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testhal/STM32/STM32F4xx/FSMC_SRAM/memcpy_dma.c b/testhal/STM32/STM32F4xx/FSMC_SRAM/memcpy_dma.c
index 4961c7c..2da592e 100644
--- a/testhal/STM32/STM32F4xx/FSMC_SRAM/memcpy_dma.c
+++ b/testhal/STM32/STM32F4xx/FSMC_SRAM/memcpy_dma.c
@@ -68,7 +68,7 @@ void memcpy_dma_start(void) {
bool b;
engine.dma = STM32_DMA_STREAM(STM32_MEMCPY_DMA_STREAM);
- b = dmaStreamAllocate(engine.dma, STM32_MEMCPY_DMA_PRIORITY, NULL, NULL);
+ b = dmaStreamAlloc(engine.dma, STM32_MEMCPY_DMA_PRIORITY, NULL, NULL);
osalDbgAssert(!b, "stream already allocated");
}
@@ -76,7 +76,7 @@ void memcpy_dma_start(void) {
*
*/
void memcpy_dma_stop(void) {
- dmaStreamRelease(engine.dma);
+ dmaStreamFree(engine.dma);
}
/*