acassis commented on a change in pull request #3976:
URL: https://github.com/apache/incubator-nuttx/pull/3976#discussion_r658896651



##########
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:
       Please use space to separate operators: (0x0010 + 4 * (n))
   It was in the original file, but wasn't correct




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to