Merge pull request #5 from xiongyihui/master

make the library less dependent on the mbed.h header
master
Rohit Grover 2014-11-20 20:13:01 +00:00
commit d93ad344b3
9 changed files with 2 additions and 12 deletions

View File

@ -27,6 +27,7 @@ extern "C" {
#endif
#include <stdint.h>
#include <stddef.h>
/** @defgroup BLE_UUID_VALUES Assigned Values for BLE UUIDs
* @{ */

View File

@ -17,7 +17,6 @@
#ifndef __BLE_DEVICE__
#define __BLE_DEVICE__
#include "mbed.h"
#include "blecommon.h"
#include "Gap.h"
#include "GattServer.h"

View File

@ -19,7 +19,6 @@
#include <string.h>
#include "FunctionPointerWithContext.h"
namespace mbed {
/** Group one or more functions in an instance of a CallChainOfFunctionPointersWithContext, then call them in
* sequence using CallChainOfFunctionPointersWithContext::call(). Used mostly by the interrupt chaining code,
@ -27,7 +26,6 @@ namespace mbed {
*
* Example:
* @code
* #include "mbed.h"
*
* CallChainOfFunctionPointersWithContext<void *> chain;
*
@ -147,7 +145,4 @@ private:
CallChainOfFunctionPointersWithContext & operator = (const CallChainOfFunctionPointersWithContext &);
};
} // namespace mbed
#endif

View File

@ -19,7 +19,6 @@
#include <string.h>
namespace mbed {
/** A class for storing and calling a pointer to a static or member void function
* which takes a context.
@ -126,6 +125,5 @@ private:
* external memory to manage the chain. Also refer to
* 'CallChain' as an alternative. */
};
} // namespace mbed
#endif // ifndef MBED_FUNCTIONPOINTER_WITH_CONTEXT_H

View File

@ -17,7 +17,6 @@
#ifndef __GAP_H__
#define __GAP_H__
#include "mbed.h"
#include "blecommon.h"
#include "GapAdvertisingData.h"
#include "GapAdvertisingParams.h"

View File

@ -18,7 +18,6 @@
#define __GAP_EVENTS_H__
#include "blecommon.h"
#include "mbed.h"
/**************************************************************************/
/*!

View File

@ -17,7 +17,6 @@
#ifndef __GATT_SERVER_H__
#define __GATT_SERVER_H__
#include "mbed.h"
#include "blecommon.h"
#include "GattService.h"
#include "GattServerEvents.h"

View File

@ -18,7 +18,6 @@
#define __GATT_SERVER_EVENTS_H__
#include "blecommon.h"
#include "mbed.h"
/**************************************************************************/
/*!

View File

@ -17,6 +17,7 @@
#ifndef __BLE_UART_SERVICE_H__
#define __BLE_UART_SERVICE_H__
#include "mbed.h"
#include "Stream.h"
#include "UUID.h"