!arch/arm/src/stm32wb: remove STM32WB_USE_LEGACY_PINMAP

BREAKING CHANGE: remove STM32WB_USE_LEGACY_PINMAP and all references

Signed-off-by: raiden00pl <raiden00@railab.me>
This commit is contained in:
raiden00pl
2026-04-23 19:44:54 +02:00
committed by simbit18
parent 2d8c4baa09
commit 5eb4387a99
8 changed files with 1 additions and 641 deletions
-20
View File
@@ -381,26 +381,6 @@ config STM32WB_SRAM2B_INIT
avoided by first writing to all locations to force the parity into a valid
state.
config STM32WB_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_STM32WB_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_STM32WB_USE_LEGACY_PINMAP will be deprecated and the
legacy pinmaps removed from NuttX. Any new boards added should set
CONFIG_STM32WB_USE_LEGACY_PINMAP=n and fully define the pins in board.h
comment "STM32WB Peripherals"
menu "STM32WB Peripheral Support"
@@ -33,11 +33,7 @@
#if defined(CONFIG_STM32WB_STM32WB10) || defined(CONFIG_STM32WB_STM32WB15) || \
defined(CONFIG_STM32WB_STM32WB30) || defined(CONFIG_STM32WB_STM32WB35) || \
defined(CONFIG_STM32WB_STM32WB50) || defined(CONFIG_STM32WB_STM32WB55)
# if defined(CONFIG_STM32WB_USE_LEGACY_PINMAP)
# include "hardware/stm32wbxx_pinmap_legacy.h"
# else
# include "hardware/stm32wbxx_pinmap.h"
# endif
# include "hardware/stm32wbxx_pinmap.h"
#else
# error "Unsupported STM32WB Pin map"
#endif
File diff suppressed because it is too large Load Diff
-4
View File
@@ -40,10 +40,6 @@
#include "hardware/stm32wb_syscfg.h"
#if defined(CONFIG_STM32WB_USE_LEGACY_PINMAP)
# pragma message "CONFIG_STM32WB_USE_LEGACY_PINMAP will be deprecated migrate board.h see tools/stm32_pinmap_tool.py"
#endif
/****************************************************************************
* Private Data
****************************************************************************/
@@ -7,7 +7,6 @@
#
# CONFIG_ARCH_LEDS is not set
# CONFIG_NX_DISABLE_1BPP is not set
# CONFIG_STM32WB_USE_LEGACY_PINMAP is not set
CONFIG_ARCH="arm"
CONFIG_ARCH_BOARD="flipperzero"
CONFIG_ARCH_BOARD_FLIPPERZERO=y
@@ -6,7 +6,6 @@
# modifications.
#
# CONFIG_NET_IPv4 is not set
# CONFIG_STM32WB_USE_LEGACY_PINMAP is not set
CONFIG_ALLOW_BSD_COMPONENTS=y
CONFIG_ARCH="arm"
CONFIG_ARCH_BOARD="nucleo-wb55rg"
@@ -7,7 +7,6 @@
#
# CONFIG_NET_IPv4 is not set
# CONFIG_NIMBLE_PORTING_EXAMPLE is not set
# CONFIG_STM32WB_USE_LEGACY_PINMAP is not set
# CONFIG_WIRELESS_BLUETOOTH_HOST is not set
CONFIG_ALLOW_BSD_COMPONENTS=y
CONFIG_ARCH="arm"
@@ -5,7 +5,6 @@
# You can then do "make savedefconfig" to generate a new defconfig file that includes your
# modifications.
#
# CONFIG_STM32WB_USE_LEGACY_PINMAP is not set
CONFIG_ARCH="arm"
CONFIG_ARCH_BOARD="nucleo-wb55rg"
CONFIG_ARCH_BOARD_NUCLEO_WB55RG=y