PIN Mapping nRF51 and swapping

Hi,
I need two devices connected to the same bus (UART) with nRF51822. At Nordic forums, Stefan Birnir Sverrisson explained that I can have two pinsets, one set for each and swap them ‘then configure the UART for the other pin set’ after finishing with the first one. Moreover, I need that functionality for different reasons as well for boards built myself.
How can I do this with PlatformIO?
I see a light in the tunnel by redefine ‘const uint32_t g_ADigitalPinMap[]’, however, ‘const’ definition.
Can anyone please help?