aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32/f1/other/dma_mem2mem/dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/stm32/f1/other/dma_mem2mem/dma.c')
-rw-r--r--examples/stm32/f1/other/dma_mem2mem/dma.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/stm32/f1/other/dma_mem2mem/dma.c b/examples/stm32/f1/other/dma_mem2mem/dma.c
index fa411db..183a860 100644
--- a/examples/stm32/f1/other/dma_mem2mem/dma.c
+++ b/examples/stm32/f1/other/dma_mem2mem/dma.c
@@ -90,11 +90,11 @@ int main(void)
dma_enable_mem2mem_mode(DMA1, DMA_CHANNEL1);
/* Highest priority. */
- dma_set_priority(DMA1, DMA_CHANNEL1, DMA_CCR1_PL_VERY_HIGH);
+ dma_set_priority(DMA1, DMA_CHANNEL1, DMA_CCR_PL_VERY_HIGH);
/* 32Bit wide transfer for source and destination. */
- dma_set_memory_size(DMA1, DMA_CHANNEL1, DMA_CCR1_MSIZE_32BIT);
- dma_set_peripheral_size(DMA1, DMA_CHANNEL1, DMA_CCR1_PSIZE_32BIT);
+ dma_set_memory_size(DMA1, DMA_CHANNEL1, DMA_CCR_MSIZE_32BIT);
+ dma_set_peripheral_size(DMA1, DMA_CHANNEL1, DMA_CCR_PSIZE_32BIT);
/*
* After every 32bits we have to increase the address because