aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32/DMAv1
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-08-25 15:14:09 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-08-25 15:14:09 +0000
commit0aa2dd05114a68ac0e0a23fe8227215a13e2c77b (patch)
treeaba283853118036f921f9d61b80705b2164abd4b /os/hal/platforms/STM32/DMAv1
parent718dc5084f7719f91eaacfc99e8c7de654eb2ad8 (diff)
downloadChibiOS-0aa2dd05114a68ac0e0a23fe8227215a13e2c77b.tar.gz
ChibiOS-0aa2dd05114a68ac0e0a23fe8227215a13e2c77b.tar.bz2
ChibiOS-0aa2dd05114a68ac0e0a23fe8227215a13e2c77b.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3253 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32/DMAv1')
-rw-r--r--os/hal/platforms/STM32/DMAv1/sdc_lld.h2
-rw-r--r--os/hal/platforms/STM32/DMAv1/stm32_dma.c5
-rw-r--r--os/hal/platforms/STM32/DMAv1/stm32_dma.h11
3 files changed, 6 insertions, 12 deletions
diff --git a/os/hal/platforms/STM32/DMAv1/sdc_lld.h b/os/hal/platforms/STM32/DMAv1/sdc_lld.h
index 5466eacad..eea76dadd 100644
--- a/os/hal/platforms/STM32/DMAv1/sdc_lld.h
+++ b/os/hal/platforms/STM32/DMAv1/sdc_lld.h
@@ -152,7 +152,7 @@ struct SDCDriver {
uint32_t rca;
/* End of the mandatory fields.*/
/**
- * @brief Tthread waiting for I/O completion IRQ.
+ * @brief Thread waiting for I/O completion IRQ.
*/
Thread *thread;
};
diff --git a/os/hal/platforms/STM32/DMAv1/stm32_dma.c b/os/hal/platforms/STM32/DMAv1/stm32_dma.c
index 2232df448..4ea8e99ee 100644
--- a/os/hal/platforms/STM32/DMAv1/stm32_dma.c
+++ b/os/hal/platforms/STM32/DMAv1/stm32_dma.c
@@ -366,17 +366,12 @@ void dmaInit(void) {
* @param[in] channel requested channel id
* @param[in] func handling function pointer, can be @p NULL
* @param[in] param a parameter to be passed to the handling function
- * @return The operation status.
- * @retval FALSE operation successfully allocated.
- * @retval TRUE the channel was already in use.
*
* @special
*/
void dmaAllocate(uint32_t dma, uint32_t channel,
stm32_dmaisr_t func, void *param) {
- chDbgCheck(func != NULL, "dmaAllocate");
-
#if STM32_HAS_DMA2
switch (dma) {
case STM32_DMA1_ID:
diff --git a/os/hal/platforms/STM32/DMAv1/stm32_dma.h b/os/hal/platforms/STM32/DMAv1/stm32_dma.h
index 66a2f8c69..7ef5ad8b9 100644
--- a/os/hal/platforms/STM32/DMAv1/stm32_dma.h
+++ b/os/hal/platforms/STM32/DMAv1/stm32_dma.h
@@ -22,7 +22,7 @@
* @file stm32_dma.h
* @brief STM32 DMA helper driver header.
* @note This file requires definitions from the ST STM32 header file
- * stm3232f10x.h.
+ * stm32f10x.h.
*
* @addtogroup STM32_DMA
* @{
@@ -154,7 +154,7 @@ typedef void (*stm32_dmaisr_t)(void *p, uint32_t flags);
* data register.
* @note This function can be invoked in both ISR or thread context.
*
- * @param[in] dmachp dmachp to a stm32_dma_channel_t structure
+ * @param[in] dmachp pointer to a stm32_dma_channel_t structure
* @param[in] cndtr value to be written in the CNDTR register
* @param[in] cmar value to be written in the CMAR register
* @param[in] ccr value to be written in the CCR register
@@ -171,7 +171,7 @@ typedef void (*stm32_dmaisr_t)(void *p, uint32_t flags);
* @brief DMA channel enable by channel pointer.
* @note This function can be invoked in both ISR or thread context.
*
- * @param[in] dmachp dmachp to a stm32_dma_channel_t structure
+ * @param[in] dmachp pointer to a stm32_dma_channel_t structure
*
* @special
*/
@@ -179,12 +179,11 @@ typedef void (*stm32_dmaisr_t)(void *p, uint32_t flags);
(dmachp)->CCR |= DMA_CCR1_EN; \
}
-
/**
* @brief DMA channel disable by channel pointer.
* @note This function can be invoked in both ISR or thread context.
*
- * @param[in] dmachp dmachp to a stm32_dma_channel_t structure
+ * @param[in] dmachp pointer to a stm32_dma_channel_t structure
*
* @special
*/
@@ -256,7 +255,7 @@ typedef void (*stm32_dmaisr_t)(void *p, uint32_t flags);
*
* @special
*/
-#define dmaClearChannel(dmap, ch){ \
+#define dmaClearChannel(dmap, ch) { \
(dmap)->IFCR = 1 << ((ch) * 4); \
}