Skip to content

Commit 4d4aca4

Browse files
committed
Add Ethernet library support
1 parent ada6bf7 commit 4d4aca4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Arduino_PortentaBreakoutCarrier.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
3232
#include <Wire.h>
3333
#include <SPI.h>
3434
#include <PDM.h>
35+
#include <Portenta_Ethernet.h>
36+
#include <Ethernet.h>
3537
#include "utility/Analog/Analog.h"
3638

3739
#define LAST_ARDUINO_PIN_NUMBER LEDB + 1
@@ -249,6 +251,7 @@ class BreakoutCarrierClass {
249251
UART UART3;
250252
MbedSPI SPI_0;
251253
PDMClass PDM;
254+
arduino::EthernetClass Ethernet;
252255
BreakoutCarrierClass() : I2C_0(PH_8,PH_7),
253256
I2C_1(PB_7,PB_6),
254257
I2C_2(PH_12,PH_11),
@@ -257,7 +260,8 @@ class BreakoutCarrierClass {
257260
UART2(PG_14, PG_9, NC, NC),
258261
UART3(PJ_8, PJ_9, NC, NC),
259262
SPI_0(PC_2, PC_3, PI_1),
260-
PDM(PB_2, PE_2, NC)
263+
PDM(PB_2, PE_2, NC),
264+
Ethernet()
261265
{
262266
}
263267
};

0 commit comments

Comments
 (0)