From ec904f176b014b611efa3c3fe81dce4a74378b5a Mon Sep 17 00:00:00 2001 From: Piotr Esden-Tempski Date: Wed, 29 Feb 2012 16:02:51 -0800 Subject: Cleaned up and streamlined DMA support for f1. Definitely needs a bunch of testing! --- examples/stm32/f1/other/dma_mem2mem/dma.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples') 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 -- cgit v1.2.3