#define STM32_PAD(PORT, PIN) (((PORT)<<4) | (PIN))
STM32_PAD creates a PLATFORM_PIN_CONNECTION_t by combining STM32 port, PORT, and a pin within that port, PIN.
The port and pin are extracted from the connection by STM32_PORT and STM32_PIN:
STM32_PORT, STM32_PIN