nuttx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-nuttx] davids5 commented on a change in pull request #745: [Do Not Merge] arch/stm32h7: Extend support to all STM32H7x3xx
Date Thu, 16 Apr 2020 16:30:42 GMT
davids5 commented on a change in pull request #745: [Do Not Merge] arch/stm32h7: Extend support
to all STM32H7x3xx
URL: https://github.com/apache/incubator-nuttx/pull/745#discussion_r409686238
 
 

 ##########
 File path: arch/arm/include/stm32h7/chip.h
 ##########
 @@ -92,7 +116,22 @@
 
 /* Peripherals */
 
-#  define STM32H7_NGPIO                   (11)        /* GPIOA-GPIOK */
+#  if defined(CONFIG_STM32H7_IO_CONFIG_A)
+#      define STM32H7_NGPIO               (10)        /* GPIOA-GPIOJ */
+#  elif defined(CONFIG_STM32H7_IO_CONFIG_B)
+#      define STM32H7_NGPIO               (11)        /* GPIOA-GPIOK */
+#  elif defined(CONFIG_STM32H7_IO_CONFIG_I)
+#      define STM32H7_NGPIO               (9)         /* GPIOA-GPIOI */
+#  elif defined(CONFIG_STM32H7_IO_CONFIG_V)
+#      define STM32H7_NGPIO               (8)         /* GPIOA-GPIOH, missing GPIOF-GPIOG
*/
+#  elif defined(CONFIG_STM32H7_IO_CONFIG_X)
+#      define STM32H7_NGPIO               (11)        /* GPIOA-GPIOK */
+#  elif defined(CONFIG_STM32H7_IO_CONFIG_Z)
+#      define STM32H7_NGPIO               (8)         /* GPIOA-GPIOH */
+#  else
+#      error IO config not identified
 
 Review comment:
   ```suggestion
   #      error CONFIG_STM32H7_IO_CONFIG_x Not Set
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message