Hi,
If you are using the Pins tool from MCUXPresso Config tools, you have the option to not use directly the port and pin numbers, but you can refer to the pin using the identifier defined in the Pins tool.
The name of the identifier can be set in the 'Identifier' column (let's have 'MOTOR' as example):

If it's specified, there is generated a set of defines for the pin into the pin_mux.h:
/* Symbols to be used with GPIO driver */
#define BOARD_MOTOR_GPIO GPIO /*!<@brief GPIO peripheral base pointer */
#define BOARD_MOTOR_GPIO_PIN_MASK (1U << 7U) /*!<@brief GPIO pin mask */
#define BOARD_MOTOR_PORT 0U /*!<@brief PORT peripheral base pointer */
#define BOARD_MOTOR_PIN 7U /*!<@brief PORT pin number */
#define BOARD_MOTOR_PIN_MASK (1U << 7U) /*!<@brief PORT pin mask */
Note: The BOARD_ prefix can be configured (or removed) in the settings of the functional group (using the function group configuration via the toolbar button).
The defines can then be referred from you application code:
...
GPIO_PinWrite(BOARD_MOTOR_GPIO, BOARD_MOTOR_PORT, BOARD_MOTOR_PIN, 1);
...
With such approach, you can freely change routing later in the Pins tool to other pin and you don't have to modify all references to it's port and pin numbers. You just need invoke the 'Update code' command in the Pins tool to update the generated code (pin_mux.c/h).
best regards
Petr Hradsky
Config Tools Team