Skip to content

Commit 3d031ce

Browse files
authored
Merge pull request #13158 from toyowata/fix_wio_emw3166
[WIFI] Add NSAPI_PRESENT macro in the WicedInterface
2 parents 15b7fe4 + 7ad0174 commit 3d031ce

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

targets/TARGET_WICED/wiced_interface/WicedInterface.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
#ifndef WICED_INTERFACE_H
1818
#define WICED_INTERFACE_H
1919

20+
#if defined(MBED_CONF_NSAPI_PRESENT)
21+
2022
#include "mbed.h"
2123
#include "EthernetInterface.h"
2224
#include "netsocket/OnboardNetworkStack.h"
@@ -111,3 +113,5 @@ class WicedInterface : public WiFiInterface, public EMACInterface
111113
};
112114

113115
#endif
116+
117+
#endif

targets/TARGET_WICED/wiced_interface/default_wifi_interface.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,14 @@
1515
* limitations under the License.
1616
*/
1717

18+
#if defined(MBED_CONF_NSAPI_PRESENT)
19+
1820
#include "WicedInterface.h"
1921

2022
WiFiInterface *WiFiInterface::get_target_default_instance()
2123
{
2224
static WicedInterface wifi;
2325
return &wifi;
2426
}
27+
28+
#endif

0 commit comments

Comments
 (0)