This is an automated email from the ASF dual-hosted git repository.
aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 7e3c341 stm32h7:Fix compiler error stm32_bdma_capable
7e3c341 is described below
commit 7e3c341b15f6a9103a2ab068eb394d51068af915
Author: David Sidrane <[email protected]>
AuthorDate: Tue Jun 9 09:26:43 2020 -0700
stm32h7:Fix compiler error stm32_bdma_capable
---
arch/arm/src/stm32h7/stm32_dma.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch/arm/src/stm32h7/stm32_dma.c b/arch/arm/src/stm32h7/stm32_dma.c
index 80d4ec1..fbe4726 100644
--- a/arch/arm/src/stm32h7/stm32_dma.c
+++ b/arch/arm/src/stm32h7/stm32_dma.c
@@ -1995,7 +1995,9 @@ static bool stm32_bdma_capable(FAR stm32_dmacfg_t *cfg)
{
uint32_t transfer_size;
uint32_t mend;
- uint32_t ccr = cfg->cfg1;
+ uint32_t count = cfg->ndata;
+ uint32_t maddr = cfg->maddr;
+ uint32_t ccr = cfg->cfg1;
dmainfo("0x%08x/%u 0x%08x\n", cfg->maddr, cfg->ndata, cfg->cfg1);
@@ -2063,7 +2065,7 @@ static bool stm32_bdma_capable(FAR stm32_dmacfg_t *cfg)
/* Verify that transfer is froma a supported memory region */
- if (cfg->paddr & STM32_PREGION_MASK != STM32_D3_BASE)
+ if ((cfg->paddr & STM32_PREGION_MASK) != STM32_D3_BASE)
{
/* BDMA support only D3 domain */