aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32F1xx/stm32_dma.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-11-10 20:33:49 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-11-10 20:33:49 +0000
commit1ae84c9323e76f02ec4bc4d71aff4301ba5d00e7 (patch)
tree3bf0c5065c9b086e265a378ae45d34a7b45c4d8c /os/hal/platforms/STM32F1xx/stm32_dma.h
parent97d1a377042e1847cb45adeafac98fedf97ccefe (diff)
downloadChibiOS-1ae84c9323e76f02ec4bc4d71aff4301ba5d00e7.tar.gz
ChibiOS-1ae84c9323e76f02ec4bc4d71aff4301ba5d00e7.tar.bz2
ChibiOS-1ae84c9323e76f02ec4bc4d71aff4301ba5d00e7.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3485 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32F1xx/stm32_dma.h')
-rw-r--r--os/hal/platforms/STM32F1xx/stm32_dma.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/os/hal/platforms/STM32F1xx/stm32_dma.h b/os/hal/platforms/STM32F1xx/stm32_dma.h
index a33577af8..e01708d64 100644
--- a/os/hal/platforms/STM32F1xx/stm32_dma.h
+++ b/os/hal/platforms/STM32F1xx/stm32_dma.h
@@ -78,11 +78,11 @@
/**
* @brief Returns a pointer to a stm32_dma_stream_t structure.
*
- * @param[in] n the stream numeric identifier
+ * @param[in] id the stream numeric identifier
* @return A pointer to the stm32_dma_stream_t constant structure
* associated to the DMA stream.
*/
-#define STM32_DMA_STREAM(n) (&_stm32_dma_streams[n])
+#define STM32_DMA_STREAM(id) (&_stm32_dma_streams[id])
#define STM32_DMA1_STREAM1 STM32_DMA_STREAM(0)
#define STM32_DMA1_STREAM2 STM32_DMA_STREAM(1)
@@ -121,6 +121,8 @@
#define STM32_DMA_CR_MSIZE_BYTE 0
#define STM32_DMA_CR_MSIZE_HWORD DMA_CCR1_MSIZE_0
#define STM32_DMA_CR_MSIZE_WORD DMA_CCR1_MSIZE_1
+#define STM32_DMA_CR_SIZE_MASK (STM32_DMA_CR_MSIZE_MASK | \
+ STM32_DMA_CR_MSIZE_MASK)
#define STM32_DMA_CR_PL_MASK DMA_CCR1_PL
#define STM32_DMA_CR_PL(n) ((n) << 12)
/** @} */