Skip to content

Commit 1dc8e1a

Browse files
authored
Merge pull request #94 from pennam/c33
Add support for PORTENTA C33
2 parents 1cf11a9 + 8bff077 commit 1dc8e1a

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ sentence=Arduino Library for network connection management (WiFi, GSM, NB, [Ethe
66
paragraph=Originally part of ArduinoIoTCloud
77
category=Communication
88
url=https://github.com/arduino-libraries/Arduino_ConnectionHandler
9-
architectures=samd,esp32,esp8266,mbed,megaavr,mbed_nano,mbed_portenta,mbed_nicla,mbed_opta,mbed_giga
9+
architectures=samd,esp32,esp8266,mbed,megaavr,mbed_nano,mbed_portenta,mbed_nicla,mbed_opta,mbed_giga,renesas_portenta
1010
depends=Arduino_DebugUtils, WiFi101, WiFiNINA, MKRGSM, MKRNB, MKRWAN

src/Arduino_ConnectionHandler.h

+14
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,20 @@
5757
#define NETWORK_CONNECTED WL_CONNECTED
5858
#endif
5959

60+
#if defined(ARDUINO_PORTENTA_C33)
61+
#include <WiFiC3.h>
62+
#include <WiFiUdp.h>
63+
#include <EthernetC33.h>
64+
#include <EthernetUdp.h>
65+
66+
#define BOARD_HAS_WIFI
67+
#define BOARD_HAS_ETHERNET
68+
#define BOARD_HAS_PORTENTA_VISION_SHIELD_ETHERNET
69+
#define NETWORK_HARDWARE_ERROR WL_NO_SHIELD
70+
#define NETWORK_IDLE_STATUS WL_IDLE_STATUS
71+
#define NETWORK_CONNECTED WL_CONNECTED
72+
#endif
73+
6074
#if defined(ARDUINO_NICLA_VISION)
6175
#include <WiFi.h>
6276
#include <WiFiUdp.h>

0 commit comments

Comments
 (0)