You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/06/02 23:51:34 UTC

[incubator-nuttx] branch master updated: stm32h7:stm32_sdmmc fix compiler error when SDMMC2 is enabled

This is an automated email from the ASF dual-hosted git repository.

gnutt 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 698ac72  stm32h7:stm32_sdmmc fix compiler error when SDMMC2 is enabled
698ac72 is described below

commit 698ac72dae35c1d450ebcf3c71173b311fa82571
Author: David Sidrane <Da...@NscDg.com>
AuthorDate: Tue Jun 2 14:11:22 2020 -0700

    stm32h7:stm32_sdmmc fix compiler error when SDMMC2 is enabled
---
 arch/arm/src/stm32h7/stm32_sdmmc.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/src/stm32h7/stm32_sdmmc.c b/arch/arm/src/stm32h7/stm32_sdmmc.c
index 5ed135b..48b9576 100644
--- a/arch/arm/src/stm32h7/stm32_sdmmc.c
+++ b/arch/arm/src/stm32h7/stm32_sdmmc.c
@@ -614,8 +614,13 @@ struct stm32_dev_s g_sdmmcdev2 =
     .attach           = stm32_attach,
     .sendcmd          = stm32_sendcmd,
     .blocksetup       = stm32_blocksetup,
+#if defined(CONFIG_STM32H7_SDMMC_IDMA)
+    .recvsetup        = stm32_dmarecvsetup,
+    .sendsetup        = stm32_dmasendsetup,
+#else
     .recvsetup        = stm32_recvsetup,
     .sendsetup        = stm32_sendsetup,
+#endif
     .cancel           = stm32_cancel,
     .waitresponse     = stm32_waitresponse,
     .recv_r1          = stm32_recvshortcrc,