aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32/stm32_dma.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-11-14 13:29:09 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-11-14 13:29:09 +0000
commit7ab0cff418bf49fcf1671dd72667b81a85c1ac37 (patch)
tree9527dc092b8fc59f733b2a0353d579ceec8a72ff /os/hal/platforms/STM32/stm32_dma.h
parentbf8592688860a61181b3f5a4c9b6d4d8856b8abb (diff)
downloadChibiOS-7ab0cff418bf49fcf1671dd72667b81a85c1ac37.tar.gz
ChibiOS-7ab0cff418bf49fcf1671dd72667b81a85c1ac37.tar.bz2
ChibiOS-7ab0cff418bf49fcf1671dd72667b81a85c1ac37.zip
Improved STM32 HAL support.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2363 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32/stm32_dma.h')
-rw-r--r--os/hal/platforms/STM32/stm32_dma.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/platforms/STM32/stm32_dma.h b/os/hal/platforms/STM32/stm32_dma.h
index 20873116e..078149167 100644
--- a/os/hal/platforms/STM32/stm32_dma.h
+++ b/os/hal/platforms/STM32/stm32_dma.h
@@ -38,7 +38,7 @@
#define DMA1_ID 0
/** @brief DMA2 identifier.*/
-#if defined(STM32F10X_HD) || defined (STM32F10X_CL) || defined(__DOXYGEN__)
+#if defined(STM32_HAS_DMA2) || defined(__DOXYGEN__)
#define DMA2_ID 1
#endif
@@ -100,7 +100,7 @@ typedef struct {
/** Pointer to the DMA1 channel 7 registers block.*/
#define STM32_DMA1_CH7 (&STM32_DMA1->channels[6])
-#if defined(STM32F10X_HD) || defined (STM32F10X_CL) || defined(__DOXYGEN__)
+#if defined(STM32_HAS_DMA2) || defined(__DOXYGEN__)
/** DMA2 registers block numeric address.*/
#define STM32_DMA2_BASE (AHBPERIPH_BASE + 0x0400)
/** Pointer to the DMA2 registers block.*/