High level Bluetooth Low Energy API and radio abstraction layer

Dependencies:   nRF51822

Dependents:   LinkNode_LIS3DH

Fork of BLE_API by Bluetooth Low Energy

Revision:
670:5e4aecd9af5b
Parent:
669:7179b4a5aa7d
Child:
710:b2e1a2660ec2
--- a/common/blecommon.h	Fri Jun 19 15:53:01 2015 +0100
+++ b/common/blecommon.h	Fri Jun 19 15:53:01 2015 +0100
@@ -21,8 +21,6 @@
 extern "C" {
 #endif
 
-#include <stdint.h>
-#include <stddef.h>
 
 /** @defgroup BLE_UUID_VALUES Assigned Values for BLE UUIDs
  * @{ */
@@ -115,18 +113,18 @@
     \brief  Error codes for the BLE API
 */
 /**************************************************************************/
-typedef enum ble_error_e
-{
-    BLE_ERROR_NONE               = 0,       /**< No error */
-    BLE_ERROR_BUFFER_OVERFLOW    = 1,       /**< The requested action would cause a buffer overflow and has been aborted */
-    BLE_ERROR_NOT_IMPLEMENTED    = 2,       /**< Requested a feature that isn't yet implement or isn't supported by the target HW */
-    BLE_ERROR_PARAM_OUT_OF_RANGE = 3,       /**< One of the supplied parameters is outside the valid range */
-    BLE_ERROR_INVALID_PARAM      = 4,       /**< One of the supplied parameters is invalid */
-    BLE_STACK_BUSY               = 5,       /**< The stack is busy */
-    BLE_ERROR_INVALID_STATE      = 6,       /**< Invalid state. */
-    BLE_ERROR_NO_MEM             = 7,       /**< Out of Memory */
-    BLE_ERROR_UNSPECIFIED        = 8,       /**< Unknown error. */
-} ble_error_t;
+enum ble_error_t {
+    BLE_ERROR_NONE                    = 0, /**< No error */
+    BLE_ERROR_BUFFER_OVERFLOW         = 1, /**< The requested action would cause a buffer overflow and has been aborted */
+    BLE_ERROR_NOT_IMPLEMENTED         = 2, /**< Requested a feature that isn't yet implement or isn't supported by the target HW */
+    BLE_ERROR_PARAM_OUT_OF_RANGE      = 3, /**< One of the supplied parameters is outside the valid range */
+    BLE_ERROR_INVALID_PARAM           = 4, /**< One of the supplied parameters is invalid */
+    BLE_STACK_BUSY                    = 5, /**< The stack is busy */
+    BLE_ERROR_INVALID_STATE           = 6, /**< Invalid state. */
+    BLE_ERROR_NO_MEM                  = 7, /**< Out of Memory */
+    BLE_ERROR_OPERATION_NOT_PERMITTED = 8,
+    BLE_ERROR_UNSPECIFIED             = 9, /**< Unknown error. */
+};
 
 #ifdef __cplusplus
 }