You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "davids5 (via GitHub)" <gi...@apache.org> on 2023/04/18 11:04:31 UTC
[GitHub] [nuttx] davids5 commented on a diff in pull request #8992: stm32 {f1,f2,f3,f4,F412,f7,h7,f0l0g0,wb,l15,l4,l5,g4xx} Remove GPIO_{SPEED|MODE}_xxx and provide a legacy path for lazy migration
davids5 commented on code in PR #8992:
URL: https://github.com/apache/nuttx/pull/8992#discussion_r1169866493
##########
arch/arm/src/stm32/Kconfig:
##########
@@ -3452,6 +3452,26 @@ config STM32_NOEXT_VECTORS
Sometimes you may not need any Vector support beyond SysTick
and wish to save memory. This applies only to ARMv7-M architectures.
+config STM32_USE_LEGACY_PINMAP
+ bool "Use the legacy pinmap with GPIO_SPEED_xxx included."
+ default y
+ ---help---
+ In the past, pinmap files included GPIO_SPEED_xxxMhz. These speed
+ settings should have come from the board.h as it describes the wiring
+ of the SoC to the board. The speed is really slew rate control and
+ therefore is related to the layout and can only be properly set
+ in board.h.
+
+ STM32_USE_LEGACY_PINMAP is provided, to allow lazy migration to
+ using pinmaps without speeds. The work required to do this can be aided
+ by running tools/stm32_pinmap_tool.py. The tools will take a board.h
+ file and a legacy pinmap and outut the required changes that one needs
Review Comment:
Done
--
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