File tree 1 file changed +18
-1
lines changed
1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 43
43
#define WIFI_FIRMWARE_VERSION_REQUIRED WIFI_FIRMWARE_LATEST_VERSION
44
44
#endif
45
45
46
- #if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION)
46
+ #if defined(ARDUINO_PORTENTA_H7_M7)
47
+ #include < WiFi.h>
48
+ #include < WiFiUdp.h>
49
+
50
+ #define BOARD_HAS_WIFI
51
+ #define BOARD_HAS_PORTENTA_VISION_SHIELD
52
+ #define NETWORK_HARDWARE_ERROR WL_NO_SHIELD
53
+ #define NETWORK_IDLE_STATUS WL_IDLE_STATUS
54
+ #define NETWORK_CONNECTED WL_CONNECTED
55
+ #endif
56
+
57
+ #if defined(ARDUINO_NICLA_VISION)
47
58
#include < WiFi.h>
48
59
#include < WiFiUdp.h>
49
60
96
107
#define WIFI_FIRMWARE_VERSION_REQUIRED WIFI_FIRMWARE_REQUIRED
97
108
#endif
98
109
110
+ #if defined(BOARD_HAS_PORTENTA_VISION_SHIELD)
111
+ #define BOARD_HAS_ETHERNET
112
+
113
+ #include < Ethernet.h>
114
+ #endif
115
+
99
116
/* *****************************************************************************
100
117
INCLUDES
101
118
******************************************************************************/
You can’t perform that action at this time.
0 commit comments