aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorPiotr Esden-Tempski2012-02-29 16:02:51 -0800
committerPiotr Esden-Tempski2012-02-29 16:02:51 -0800
commitec904f176b014b611efa3c3fe81dce4a74378b5a (patch)
tree87053375688e4a2d859c0bc145f65fbcee41fd4d /examples
parent20c5e56234167e53abbeb77624b351e350f1e3b5 (diff)
Cleaned up and streamlined DMA support for f1. Definitely needs a bunch of testing!
Diffstat (limited to 'examples')
-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