Nordic stack and drivers for the mbed BLE API

Fork of nRF51822 by Nordic Semiconductor

Files at this revision

API Documentation at this revision

Comitter:
rgrover1
Date:
Wed Apr 15 08:59:24 2015 +0100
Parent:
108:27213b9fd4f9
Child:
110:f35ac193ecb4
Commit message:
Synchronized with git rev 2ebc6874
Author: Rohit Grover
Release 0.3.1
=============

Enhancements
~~~~~~~~~~~~

* updating to v7.1 of the Nordic SDK. Re-organized file layout to match that from the SDK.

* Allow ble_conn_params to still use APP_TIMER if needed. Particularly in the case of the Bootloader.

This is made optional based on a preprocessor macro: USE_APP_TIMER. Some
Nordic code assumes the use of AppTimer, and if we replace it with mbed's
timer, then a lot more code gets pulled in than necessary. Ideally this
should not have been a problem, but it is, and the bootloader is a bit
unforgiving in its size constraints.

* Add new API: onRadioNotification(). Radio Notification is a feature that
enables ACTIVE and INACTIVE (nACTIVE) signals from the stack that notify the
application when the radio is in use. The ACTIVE signal is sent before the
Radio Event starts. The nACTIVE signal is sent at the end of the Radio
Event. These signals can be used by the application programmer to
synchronize application logic with radio activity. For example, the ACTIVE
signal can be used to shut off external devices to manage peak current drawn
during periods when the radio is on, or to trigger sensor data collection
for transmission in the Radio Event.

Bugfixes
~~~~~~~~

none.

Changed in this revision

btle/custom/custom_helper.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/btle/custom/custom_helper.cpp	Wed Apr 15 08:59:24 2015 +0100
+++ b/btle/custom/custom_helper.cpp	Wed Apr 15 08:59:24 2015 +0100
@@ -93,10 +93,9 @@
  */
 ble_uuid_t custom_convert_to_nordic_uuid(const UUID &uuid)
 {
-    ble_uuid_t nordicUUID = {
-        .uuid = uuid.getShortUUID(),
-        .type = BLE_UUID_TYPE_UNKNOWN /* to be set below */
-    };
+    ble_uuid_t nordicUUID;
+    nordicUUID.uuid = uuid.getShortUUID();
+    nordicUUID.type = BLE_UUID_TYPE_UNKNOWN; /* to be set below */
 
     if (uuid.shortOrLong() == UUID::UUID_TYPE_SHORT) {
         nordicUUID.type = BLE_UUID_TYPE_BLE;