This humble change adds backward-compatibility for S110 to the nRF51822 API. It assumes that the build system will defines either _MCU_NORDIC_16KS110 or _MCU_NORDIC_32KS110 when S110 is enabled instead of the default S130.
Currently, the only major difference between S110 and S130 headers is the added "role" parameter in the ble_gap_evt_connected_t structure, sent by the softdevice after a connection. These patches handle this case.
Please note that this is only for build compatibility. Applications built for S110 will work, but their behaviour when attempting to use S130 features, such as GAP scanning, is undefined. This will need some additional work to return a clean "not implemented" value.
This humble change adds backward-compatibility for S110 to the nRF51822 API. It assumes that the build system will defines either _MCU_NORDIC_16KS110 or _MCU_NORDIC_32KS110 when S110 is enabled instead of the default S130.
Currently, the only major difference between S110 and S130 headers is the added "role" parameter in the ble_gap_evt_connected_t structure, sent by the softdevice after a connection. These patches handle this case.
Please note that this is only for build compatibility. Applications built for S110 will work, but their behaviour when attempting to use S130 features, such as GAP scanning, is undefined. This will need some additional work to return a clean "not implemented" value.