For the record I have been struggling with migrating a project from S110 @ nrf51422 to S140 @ nrf52840.
Quite by accident, I found this "nrf51_to_nrf52840.h", what does it do?
Is it some sort of magical file that, once included, solve everything/most of my migration woes?