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

Fork of nRF51822 by Nordic Semiconductor

Revision:
75:95d732949d23
Parent:
74:d453d7969553
Child:
76:ce629a504851
diff -r d453d7969553 -r 95d732949d23 nRF51GattServer.h
--- a/nRF51GattServer.h	Fri Nov 21 10:00:41 2014 +0000
+++ b/nRF51GattServer.h	Fri Nov 21 10:00:41 2014 +0000
@@ -23,9 +23,6 @@
 #include "GattService.h"
 #include "public/GattServer.h"
 
-#define BLE_TOTAL_CHARACTERISTICS 24
-#define BLE_TOTAL_DESCRIPTORS     24
-
 class nRF51GattServer : public GattServer
 {
 public:
@@ -44,6 +41,9 @@
     void hwCallback(ble_evt_t *p_ble_evt);
 
 private:
+    const static unsigned BLE_TOTAL_CHARACTERISTICS = 24;
+    const static unsigned BLE_TOTAL_DESCRIPTORS     = 24;
+
     GattCharacteristic       *p_characteristics[BLE_TOTAL_CHARACTERISTICS];
     ble_gatts_char_handles_t  nrfCharacteristicHandles[BLE_TOTAL_CHARACTERISTICS];
     GattAttribute            *p_descriptors[BLE_TOTAL_DESCRIPTORS];