mirror of https://github.com/ARMmbed/mbed-os.git
[WIFI: WicedInterface] Add NSAPI_PRESENT macro
parent
32a032bbf0
commit
7ad0174815
|
@ -17,6 +17,8 @@
|
||||||
#ifndef WICED_INTERFACE_H
|
#ifndef WICED_INTERFACE_H
|
||||||
#define WICED_INTERFACE_H
|
#define WICED_INTERFACE_H
|
||||||
|
|
||||||
|
#if defined(MBED_CONF_NSAPI_PRESENT)
|
||||||
|
|
||||||
#include "mbed.h"
|
#include "mbed.h"
|
||||||
#include "EthernetInterface.h"
|
#include "EthernetInterface.h"
|
||||||
#include "netsocket/OnboardNetworkStack.h"
|
#include "netsocket/OnboardNetworkStack.h"
|
||||||
|
@ -111,3 +113,5 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if defined(MBED_CONF_NSAPI_PRESENT)
|
||||||
|
|
||||||
#include "WicedInterface.h"
|
#include "WicedInterface.h"
|
||||||
|
|
||||||
WiFiInterface *WiFiInterface::get_target_default_instance()
|
WiFiInterface *WiFiInterface::get_target_default_instance()
|
||||||
|
@ -22,3 +24,5 @@ WiFiInterface *WiFiInterface::get_target_default_instance()
|
||||||
static WicedInterface wifi;
|
static WicedInterface wifi;
|
||||||
return &wifi;
|
return &wifi;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue