#define STM32_PORT(PIN) ((PIN) >> 4)
STM32_PORT extracts the STM32 port (see STM32_PORT_t) from an encoded PLATFORM_PIN_CONNECTION_t value.
In other words, STM32_PORT(STM32_PAD(x, y)) == x.
STM32_PAD, STM32_PIN