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

Fork of nRF51822 by Nordic Semiconductor

Revision:
77:9886b2865631
Parent:
70:d57285f18f65
--- a/nRF51Gap.cpp	Fri Nov 21 10:00:41 2014 +0000
+++ b/nRF51Gap.cpp	Fri Nov 21 10:00:41 2014 +0000
@@ -304,7 +304,7 @@
     @endcode
 */
 /**************************************************************************/
-ble_error_t nRF51Gap::setAddress(addr_type_t type, const uint8_t address[ADDR_LEN])
+ble_error_t nRF51Gap::setAddress(addr_type_t type, const address_t address)
 {
     if (type > ADDR_TYPE_RANDOM_PRIVATE_NON_RESOLVABLE) {
         return BLE_ERROR_PARAM_OUT_OF_RANGE;
@@ -319,7 +319,7 @@
     return BLE_ERROR_NONE;
 }
 
-ble_error_t nRF51Gap::getAddress(addr_type_t *typeP, uint8_t addressP[ADDR_LEN])
+ble_error_t nRF51Gap::getAddress(addr_type_t *typeP, address_t address)
 {
     ble_gap_addr_t dev_addr;
     if (sd_ble_gap_address_get(&dev_addr) != NRF_SUCCESS) {
@@ -329,8 +329,8 @@
     if (typeP != NULL) {
         *typeP = static_cast<addr_type_t>(dev_addr.addr_type);
     }
-    if (addressP != NULL) {
-        memcpy(addressP, dev_addr.addr, ADDR_LEN);
+    if (address != NULL) {
+        memcpy(address, dev_addr.addr, ADDR_LEN);
     }
     return BLE_ERROR_NONE;
 }