#define LPC1700_PAD(PORT, PIN) (((PORT)<<5) | (PIN))
LPC1700_PAD creates a PLATFORM_PIN_CONNECTION_t by combining LPC1700 port, PORT, and a pin within that port, PIN.
The port and pin are extracted from the connection by LPC1700_PORT and LPC1700_PIN: