arch/arm/src/stm32h7: remove STM32H7_USE_LEGACY_PINMAP

remove STM32H7_USE_LEGACY_PINMAP option and all references

Signed-off-by: raiden00pl <raiden00@railab.me>
This commit is contained in:
raiden00pl
2026-04-22 20:05:23 +02:00
committed by Xiang Xiao
parent 59d44c4997
commit c4586c0742
74 changed files with 11 additions and 1661 deletions
-20
View File
@@ -1249,26 +1249,6 @@ config STM32H7_UART8
endmenu # STM32H7 U[S]ART Selection
endmenu # STM32H7 Peripheral Selection
config STM32H7_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.
STM32H7_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 output the required changes that one needs
to make to a board.h file.
Eventually, STM32H7_USE_LEGACY_PINMAP will be deprecated and the legacy
pinmaps removed from NuttX. Any new boards added should set
STM32H7_USE_LEGACY_PINMAP=n and fully define the pins in board.h
config STM32H7_SYSCFG_IOCOMPENSATION
bool "SYSCFG I/O Compensation"
default n
+11 -25
View File
@@ -30,32 +30,18 @@
#include <nuttx/config.h>
#include "chip.h"
#if defined(CONFIG_STM32H7_USE_LEGACY_PINMAP)
# if defined(CONFIG_STM32H7_STM32H7X0XX)
# include "hardware/stm32h7x3xx_pinmap_legacy.h"
# elif defined(CONFIG_STM32H7_STM32H7X3XX)
# include "hardware/stm32h7x3xx_pinmap_legacy.h"
# elif defined(CONFIG_STM32H7_STM32H7B3XX)
# include "hardware/stm32h7x3xx_pinmap_legacy.h"
# elif defined(CONFIG_STM32H7_STM32H7X7XX)
# include "hardware/stm32h7x3xx_pinmap_legacy.h"
# else
# error "Unsupported STM32 H7 Pin map"
# endif
#if defined(CONFIG_STM32H7_STM32H7X0XX)
# include "hardware/stm32h7x3xx_pinmap.h"
#elif defined(CONFIG_STM32H7_STM32H7X3XX)
# include "hardware/stm32h7x3xx_pinmap.h"
#elif defined(CONFIG_STM32H7_STM32H7B3XX)
# include "hardware/stm32h7x3xx_pinmap.h"
#elif defined(CONFIG_STM32H7_STM32H7X5XX)
# include "hardware/stm32h7x3xx_pinmap.h"
#elif defined(CONFIG_STM32H7_STM32H7X7XX)
# include "hardware/stm32h7x3xx_pinmap.h"
#else
# if defined(CONFIG_STM32H7_STM32H7X0XX)
# include "hardware/stm32h7x3xx_pinmap.h"
# elif defined(CONFIG_STM32H7_STM32H7X3XX)
# include "hardware/stm32h7x3xx_pinmap.h"
# elif defined(CONFIG_STM32H7_STM32H7B3XX)
# include "hardware/stm32h7x3xx_pinmap.h"
# elif defined(CONFIG_STM32H7_STM32H7X5XX)
# include "hardware/stm32h7x3xx_pinmap.h"
# elif defined(CONFIG_STM32H7_STM32H7X7XX)
# include "hardware/stm32h7x3xx_pinmap.h"
# else
# error "Unsupported STM32 H7 Pin map"
# endif
# error "Unsupported STM32 H7 Pin map"
#endif
#endif /* __ARCH_ARM_SRC_STM32H7_HARDWARE_STM32_PINMAP_H */
File diff suppressed because it is too large Load Diff
-4
View File
@@ -50,10 +50,6 @@
defined(CONFIG_STM32H7_STM32H7X5XX) || \
defined(CONFIG_STM32H7_STM32H7X7XX)
#if defined(CONFIG_STM32H7_USE_LEGACY_PINMAP)
# pragma message "CONFIG_STM32H7_USE_LEGACY_PINMAP will be deprecated migrate board.h see tools/stm32_pinmap_tool.py"
#endif
/****************************************************************************
* Private Data
****************************************************************************/