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.
Fork of BLE_API by
Revision 484:c39d85d2e02f, committed 2015-06-19
- Comitter:
- rgrover1
- Date:
- Fri Jun 19 15:52:01 2015 +0100
- Parent:
- 483:7595444f93d6
- Child:
- 485:313482e1b568
- Commit message:
- Synchronized with git rev b4ab8eaf
Author: Rohit Grover
simplify declaration of ble_error_t in blecommon.h
Changed in this revision
| common/blecommon.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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
}
