Merge pull request #2375 from geky/expose-nsapi

Expose the network-socket API through mbed.h
pull/2342/head
Sam Grove 2016-08-04 20:25:41 -05:00 committed by GitHub
commit 150fd079ef
7 changed files with 13 additions and 8 deletions

View File

@ -27,6 +27,7 @@
#include "eventOS_scheduler.h"
#include "mbed-trace/mbed_trace.h"
#include "mbed.h"
#define TRACE_GROUP "mClt"

View File

@ -15,6 +15,7 @@
*/
#include "Socket.h"
#include "mbed.h"
Socket::Socket()
: _stack(0)

View File

@ -22,10 +22,6 @@
#include "rtos/Mutex.h"
#include "Callback.h"
#ifndef NSAPI_NO_INCLUDE_MBED
#include "mbed.h" // needed for backwards compatability
#endif
/** Abstract socket class
*/

View File

@ -15,7 +15,7 @@
*/
#include "TCPServer.h"
#include "Timer.h"
#include "mbed.h"
TCPServer::TCPServer()
: _pending(0), _accept_sem(0)

View File

@ -0,0 +1,6 @@
{
"name": "nsapi",
"config": {
"present": 1
}
}

View File

@ -21,9 +21,6 @@
// entry point for nsapi types
#include "nsapi_types.h"
// disable bug-compatible mbed inclusion
#define NSAPI_NO_INCLUDE_MBED
#ifdef __cplusplus
// entry point for C++ api

View File

@ -22,6 +22,10 @@
#include "rtos/rtos.h"
#endif
#if MBED_CONF_NSAPI_PRESENT
#include "network-socket/nsapi.h"
#endif
#include "toolchain.h"
#include "platform.h"