Patched version of nrf51822 FOTA compatible driver, with GPTIO disabled, as it clashed with the mbed definitions...

Fork of nRF51822 by Nordic Semiconductor

Revision:
105:7404a5b1b72f
Parent:
102:bdc690669431
Child:
111:be2a122ed2f7
--- a/nRF51Gap.h	Wed Apr 15 08:59:12 2015 +0100
+++ b/nRF51Gap.h	Wed Apr 15 08:59:23 2015 +0100
@@ -24,6 +24,9 @@
 #include "GapAdvertisingData.h"
 #include "public/Gap.h"
 
+#include "nrf_soc.h"
+#include "ble_radio_notification.h"
+
 /**************************************************************************/
 /*!
     \brief
@@ -63,6 +66,11 @@
     virtual ble_error_t setPreferredConnectionParams(const ConnectionParams_t *params);
     virtual ble_error_t updateConnectionParams(Handle_t handle, const ConnectionParams_t *params);
 
+    virtual void setOnRadioNotification(RadioNotificationEventCallback_t callback) {
+        Gap::setOnRadioNotification(callback);
+        ble_radio_notification_init(NRF_APP_PRIORITY_HIGH, NRF_RADIO_NOTIFICATION_DISTANCE_NONE, onRadioNotification);
+    }
+
 private:
     uint16_t m_connectionHandle;
     nRF51Gap() {