Restored original dmaStreamDisable() macro.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8268 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
64689ec9b4
commit
97856f5894
|
@ -576,10 +576,11 @@ typedef void (*stm32_dmaisr_t)(void *p, uint32_t flags);
|
||||||
* @special
|
* @special
|
||||||
*/
|
*/
|
||||||
#define dmaStreamDisable(dmastp) { \
|
#define dmaStreamDisable(dmastp) { \
|
||||||
(dmastp)->stream->CR &= ~STM32_DMA_CR_EN; \
|
(dmastp)->stream->CR &= ~(STM32_DMA_CR_TCIE | STM32_DMA_CR_HTIE | \
|
||||||
while (((dmastp)->stream->CR & STM32_DMA_CR_EN) != 0U) \
|
STM32_DMA_CR_TEIE | STM32_DMA_CR_DMEIE | \
|
||||||
|
STM32_DMA_CR_EN); \
|
||||||
|
while (((dmastp)->stream->CR & STM32_DMA_CR_EN) != 0) \
|
||||||
; \
|
; \
|
||||||
(dmastp)->stream->CR = STM32_DMA_CR_RESET_VALUE; \
|
|
||||||
dmaStreamClearInterrupt(dmastp); \
|
dmaStreamClearInterrupt(dmastp); \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue