aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-03-26 09:31:40 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-03-26 09:31:40 +0000
commite54e465a69b55dc88710cba9e7b6f0e88bd4a618 (patch)
tree72667d88580ed50f1d0e642194e198fd511dfeda /os
parent47f690922c3f137d25af4f166e27d1a1732665fe (diff)
downloadChibiOS-e54e465a69b55dc88710cba9e7b6f0e88bd4a618.tar.gz
ChibiOS-e54e465a69b55dc88710cba9e7b6f0e88bd4a618.tar.bz2
ChibiOS-e54e465a69b55dc88710cba9e7b6f0e88bd4a618.zip
Fixed bug #572.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7809 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r--os/hal/ports/STM32/STM32F3xx/stm32_dma.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/STM32F3xx/stm32_dma.c b/os/hal/ports/STM32/STM32F3xx/stm32_dma.c
index 9ce94c0cf..26acf869f 100644
--- a/os/hal/ports/STM32/STM32F3xx/stm32_dma.c
+++ b/os/hal/ports/STM32/STM32F3xx/stm32_dma.c
@@ -73,11 +73,13 @@ const stm32_dma_stream_t _stm32_dma_streams[STM32_DMA_STREAMS] = {
{DMA1_Channel5, &DMA1->IFCR, 16, 4, DMA1_Channel5_IRQn},
{DMA1_Channel6, &DMA1->IFCR, 20, 5, DMA1_Channel6_IRQn},
{DMA1_Channel7, &DMA1->IFCR, 24, 6, DMA1_Channel7_IRQn},
+#if STM32_HAS_DMA2 == TRUE
{DMA2_Channel1, &DMA2->IFCR, 0, 7, DMA2_Channel1_IRQn},
{DMA2_Channel2, &DMA2->IFCR, 4, 8, DMA2_Channel2_IRQn},
{DMA2_Channel3, &DMA2->IFCR, 8, 9, DMA2_Channel3_IRQn},
{DMA2_Channel4, &DMA2->IFCR, 12, 10, DMA2_Channel4_IRQn},
{DMA2_Channel5, &DMA2->IFCR, 16, 11, DMA2_Channel5_IRQn},
+#endif
};
/*===========================================================================*/
@@ -236,6 +238,7 @@ OSAL_IRQ_HANDLER(Vector84) {
OSAL_IRQ_EPILOGUE();
}
+#if (STM32_HAS_DMA2 == TRUE) || defined(__DOXYGEN__)
/**
* @brief DMA2 stream 1 shared interrupt handler.
*
@@ -325,6 +328,7 @@ OSAL_IRQ_HANDLER(Vector130) {
OSAL_IRQ_EPILOGUE();
}
+#endif /* STM32_HAS_DMA2 == TRUE */
/*===========================================================================*/
/* Driver exported functions. */