From 2446f558dbb555da50a0d76e28ee148f4ee564bd Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 18 Apr 2012 17:34:17 +0000 Subject: Fixed bub 3519202. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4115 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32F1xx/stm32_dma.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os/hal/platforms/STM32F1xx') diff --git a/os/hal/platforms/STM32F1xx/stm32_dma.h b/os/hal/platforms/STM32F1xx/stm32_dma.h index 67cdab540..a4cae4ea6 100644 --- a/os/hal/platforms/STM32F1xx/stm32_dma.h +++ b/os/hal/platforms/STM32F1xx/stm32_dma.h @@ -363,7 +363,7 @@ typedef void (*stm32_dmaisr_t)(void *p, uint32_t flags); * * @param[in] dmastp pointer to a stm32_dma_stream_t structure */ -#define dmaWaitCompletion(dmastp) \ +#define dmaWaitCompletion(dmastp) { \ while ((dmastp)->channel->CNDTR > 0) \ ; \ dmaStreamDisable(dmastp); \ -- cgit v1.2.3