Merge pull request #13158 from toyowata/fix_wio_emw3166

[WIFI] Add NSAPI_PRESENT macro in the WicedInterface
pull/13172/head
Martin Kojtal 2020-06-19 12:52:42 +02:00 committed by GitHub
commit 3d031cebe4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -17,6 +17,8 @@
#ifndef WICED_INTERFACE_H
#define WICED_INTERFACE_H
#if defined(MBED_CONF_NSAPI_PRESENT)
#include "mbed.h"
#include "EthernetInterface.h"
#include "netsocket/OnboardNetworkStack.h"
@ -111,3 +113,5 @@ private:
};
#endif
#endif

View File

@ -15,6 +15,8 @@
* limitations under the License.
*/
#if defined(MBED_CONF_NSAPI_PRESENT)
#include "WicedInterface.h"
WiFiInterface *WiFiInterface::get_target_default_instance()
@ -22,3 +24,5 @@ WiFiInterface *WiFiInterface::get_target_default_instance()
static WicedInterface wifi;
return &wifi;
}
#endif