make the library less dependent on the mbed.h header

This commit is contained in:
Yihui Xiong 2014-11-17 01:01:16 +08:00
parent 2f91dffc8b
commit 1d0b27e58d
8 changed files with 1 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"
/**************************************************************************/
/*!