Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: microbit-dal microbit-dal microbit-ble-open microbit-dal ... more
Fork of BLE_API by
Diff: common/blecommon.h
- Revision:
- 484:c39d85d2e02f
- Parent:
- 483:7595444f93d6
- Child:
- 514:1fa338281798
diff -r 7595444f93d6 -r c39d85d2e02f common/blecommon.h
--- a/common/blecommon.h Fri Jun 19 15:52:01 2015 +0100
+++ b/common/blecommon.h Fri Jun 19 15:52: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,8 +113,7 @@
\brief Error codes for the BLE API
*/
/**************************************************************************/
-typedef enum ble_error_e
-{
+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 */
@@ -127,7 +124,7 @@
BLE_ERROR_NO_MEM = 7, /**< Out of Memory */
BLE_ERROR_OPERATION_NOT_PERMITTED = 8,
BLE_ERROR_UNSPECIFIED = 9, /**< Unknown error. */
-} ble_error_t;
+};
#ifdef __cplusplus
}
