You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/06/29 17:25:48 UTC
[GitHub] [incubator-nuttx] julianoes commented on a change in pull request #3976: STM32F7 SDMMC fixes
julianoes commented on a change in pull request #3976:
URL: https://github.com/apache/incubator-nuttx/pull/3976#discussion_r660821446
##########
File path: arch/arm/src/stm32f7/hardware/stm32_sdmmc.h
##########
@@ -28,13 +28,195 @@
#include <nuttx/config.h>
#include "chip.h"
-#if defined(CONFIG_STM32F7_STM32F72XX) || defined(CONFIG_STM32F7_STM32F73XX)
-# include "stm32f72xx73xx_sdmmc.h"
-#elif defined(CONFIG_STM32F7_STM32F74XX) || defined(CONFIG_STM32F7_STM32F75XX) || \
- defined(CONFIG_STM32F7_STM32F76XX) || defined(CONFIG_STM32F7_STM32F77XX)
-# include "stm32f74xx77xx_sdmmc.h"
+#if defined(CONFIG_STM32F7_STM32F72XX) || defined(CONFIG_STM32F7_STM32F73XX) || \
+ defined(CONFIG_STM32F7_STM32F76XX) || defined(CONFIG_STM32F7_STM32F77XX)
#else
# error "Unsupported STM32 F7 part"
#endif
+/****************************************************************************
+ * Pre-processor Definitions
+ ****************************************************************************/
+
+/* Register Offsets *********************************************************/
+
+#define STM32_SDMMC_POWER_OFFSET 0x0000 /* SDMMC power control register */
+#define STM32_SDMMC_CLKCR_OFFSET 0x0004 /* SDMMC clock control register */
+#define STM32_SDMMC_ARG_OFFSET 0x0008 /* SDMMC argument register */
+#define STM32_SDMMC_CMD_OFFSET 0x000c /* SDMMC command register */
+#define STM32_SDMMC_RESPCMD_OFFSET 0x0010 /* SDMMC command response register */
+#define STM32_SDMMC_RESP_OFFSET(n) (0x0010+4*(n))
Review comment:
Fixed in https://github.com/apache/incubator-nuttx/pull/3976/commits/0fce1ec1dd856004a6462e687879b38427a0c80d.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org