Thanks Fredrik!
Is there a block diagram of a CC25xx input pins? Especially for CC2540? It would be great, showing the muxes, selection register names, etc. It's confusing when the user guide says APCFG overrides the settings in P0SEL for example. A block diagram with a mux would be more helpful.