From 38cbf1f6602497068629c1becace5f71d03704df Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Thu, 17 Aug 2017 09:35:50 -1000 Subject: [PATCH] stm32f7:DMA correct comments and document stm32_dmacapable Updated comment to proper refernce manual for STM32F7 not STM32F4. Added stm32_dmacapable input paramaters documentation. --- arch/arm/src/stm32f7/stm32_dma.c | 10 +++++++++- arch/arm/src/stm32f7/stm32_dma.h | 7 +++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/arch/arm/src/stm32f7/stm32_dma.c b/arch/arm/src/stm32f7/stm32_dma.c index efd5e005ec..ef55df9ec5 100644 --- a/arch/arm/src/stm32f7/stm32_dma.c +++ b/arch/arm/src/stm32f7/stm32_dma.c @@ -860,6 +860,13 @@ size_t stm32_dmaresidual(DMA_HANDLE handle) * of the processor. Note that this only applies to memory addresses, it * will return false for any peripheral address. * + * Input Parameters: + * + * maddr - starting memory address + * count - number of unit8 or uint16 or uint32 items as defined by MSIZE of + * ccr. + * ccr - DMA stream configuration register + * * Returned value: * True, if transfer is possible. * @@ -877,7 +884,8 @@ bool stm32_dmacapable(uint32_t maddr, uint32_t count, uint32_t ccr) * Transfers to/from memory performed by the DMA controller are * required to be aligned to their size. * - * See ST RM0090 rev4, section 9.3.11 + * See ST RM0410 DocID028270 Rev 2, section 8.3.11 Single and burst + * transfers * * Compute mend inline to avoid a possible non-constant integer * multiply. diff --git a/arch/arm/src/stm32f7/stm32_dma.h b/arch/arm/src/stm32f7/stm32_dma.h index 3604d45d0c..e0494d5381 100644 --- a/arch/arm/src/stm32f7/stm32_dma.h +++ b/arch/arm/src/stm32f7/stm32_dma.h @@ -241,6 +241,13 @@ size_t stm32_dmaresidual(DMA_HANDLE handle); * only applies to memory addresses, it will return false for any peripheral * address. * + * Input Parameters: + * + * maddr - starting memory address + * count - number of unit8 or uint16 or uint32 items as defined by MSIZE of + * ccr. + * ccr - DMA stream configuration register + * * Returned value: * True, if transfer is possible. *