!arch/arm/src/stm32l5: remove STM32L5_USE_LEGACY_PINMAP

BREAKING CHANGE: remove STM32L5_USE_LEGACY_PINMAP and all references

Signed-off-by: raiden00pl <raiden00@railab.me>
This commit is contained in:
raiden00pl
2026-04-23 19:45:55 +02:00
committed by simbit18
parent 5eb4387a99
commit e2cc71f540
6 changed files with 1 additions and 778 deletions
-20
View File
@@ -196,26 +196,6 @@ config STM32L5_SRAM2_INIT
case, the board should handle the initialization itself at the appropriate
time.
config STM32L5_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.
CONFIG_STM32L5_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, CONFIG_STM32L5_USE_LEGACY_PINMAP will be deprecated and the
legacy pinmaps removed from NuttX. Any new boards added should set
CONFIG_STM32L5_USE_LEGACY_PINMAP=n and fully define the pins in board.h
comment "STM32L5 Peripherals"
menu "STM32L5 Peripheral Support"
File diff suppressed because it is too large Load Diff
@@ -31,11 +31,7 @@
#include "chip.h"
#if defined(CONFIG_STM32L5_STM32L562XX)
# if defined(CONFIG_STM32L5_USE_LEGACY_PINMAP)
# include "hardware/stm32l562xx_pinmap_legacy.h"
# else
# include "hardware/stm32l562xx_pinmap.h"
# endif
# include "hardware/stm32l562xx_pinmap.h"
#else
# error "Unsupported STM32 L5 pin map"
#endif
-4
View File
@@ -52,10 +52,6 @@ static spinlock_t g_configgpio_lock = SP_UNLOCKED;
* Public Data
****************************************************************************/
#if defined(CONFIG_STM32L5_USE_LEGACY_PINMAP)
# pragma message "CONFIG_STM32L5_USE_LEGACY_PINMAP will be deprecated migrate board.h see tools/stm32_pinmap_tool.py"
#endif
/* Base addresses for each GPIO block */
const uint32_t g_gpiobase[STM32L5_NPORTS] =
@@ -7,7 +7,6 @@
#
# CONFIG_NSH_ARGCAT is not set
# CONFIG_STANDARD_SERIAL is not set
# CONFIG_STM32L5_USE_LEGACY_PINMAP is not set
CONFIG_ARCH="arm"
CONFIG_ARCH_BOARD="nucleo-l552ze"
CONFIG_ARCH_BOARD_NUCLEO_L552ZE=y
@@ -7,7 +7,6 @@
#
# CONFIG_NSH_ARGCAT is not set
# CONFIG_STANDARD_SERIAL is not set
# CONFIG_STM32L5_USE_LEGACY_PINMAP is not set
CONFIG_ARCH="arm"
CONFIG_ARCH_BOARD="stm32l562e-dk"
CONFIG_ARCH_BOARD_STM32L562E_DK=y