Skip to content

Commit 55f592f

Browse files
committed
Enable support for Portenta C33
by - using SPI1 in examples - adding CI build and - listing the architecture in library.properties .
1 parent 27e8c19 commit 55f592f

File tree

8 files changed

+10
-7
lines changed

8 files changed

+10
-7
lines changed

Diff for: .github/workflows/compile-examples.yml

+3
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ jobs:
4242
- fqbn: arduino:renesas_uno:unor4wifi
4343
platforms: |
4444
- name: arduino:renesas_uno
45+
- fqbn: arduino:renesas_portenta:portenta_c33
46+
platforms: |
47+
- name: arduino:renesas_portenta
4548
- fqbn: arduino:mbed_giga:giga
4649
platforms: |
4750
- name: arduino:mbed_giga

Diff for: examples/UDP_Client/UDP_Client.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ static uint16_t const UDP_SERVER_PORT = 8888;
3535
**************************************************************************************/
3636

3737
auto const tc6_io = new TC6::TC6_Io(
38-
#ifdef ARDUINO_GIGA
38+
#if defined(ARDUINO_GIGA) || defined(ARDUINO_PORTENTA_C33)
3939
SPI1
4040
#else
4141
SPI

Diff for: examples/UDP_Server/UDP_Server.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ static uint16_t const UDP_SERVER_LOCAL_PORT = 8888;
3939
**************************************************************************************/
4040

4141
auto const tc6_io = new TC6::TC6_Io(
42-
#ifdef ARDUINO_GIGA
42+
#if defined(ARDUINO_GIGA) || defined(ARDUINO_PORTENTA_C33)
4343
SPI1
4444
#else
4545
SPI

Diff for: examples/iperf-client/iperf-client.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static T1SMacSettings const t1s_mac_settings{MAC_PROMISCUOUS_MODE, MAC_TX_CUT_TH
4242
**************************************************************************************/
4343

4444
auto const tc6_io = new TC6::TC6_Io(
45-
#ifdef ARDUINO_GIGA
45+
#if defined(ARDUINO_GIGA) || defined(ARDUINO_PORTENTA_C33)
4646
SPI1
4747
#else
4848
SPI

Diff for: examples/tools/Control-DIOx/Control-DIOx.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ static auto const DIO_PIN = TC6::DIO::A0;
3636
**************************************************************************************/
3737

3838
auto const tc6_io = new TC6::TC6_Io(
39-
#ifdef ARDUINO_GIGA
39+
#if defined(ARDUINO_GIGA) || defined(ARDUINO_PORTENTA_C33)
4040
SPI1
4141
#else
4242
SPI

Diff for: examples/tools/PoDL-Sink-Auto-TurnOff/PoDL-Sink-Auto-TurnOff.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ static T1SMacSettings const t1s_default_mac_settings;
3333
**************************************************************************************/
3434

3535
auto const tc6_io = new TC6::TC6_Io(
36-
#ifdef ARDUINO_GIGA
36+
#if defined(ARDUINO_GIGA) || defined(ARDUINO_PORTENTA_C33)
3737
SPI1
3838
#else
3939
SPI

Diff for: examples/tools/PoDL-Source/PoDL-Source.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ static T1SMacSettings const t1s_default_mac_settings;
3333
**************************************************************************************/
3434

3535
auto const tc6_io = new TC6::TC6_Io(
36-
#ifdef ARDUINO_GIGA
36+
#if defined(ARDUINO_GIGA) || defined(ARDUINO_PORTENTA_C33)
3737
SPI1
3838
#else
3939
SPI

Diff for: library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ sentence=Generic library for providing IP based 10BASE-T1S communication.
66
paragraph=This Arduino library provides both low-level drivers and high-level abstractions to perform real-time communication via 10BASE-T1S, a multi-drop capable Ethernet standard.
77
category=Communication
88
url=https://github.com/arduino-libraries/Arduino_10BASE_T1S
9-
architectures=samd,renesas_uno,mbed_giga
9+
architectures=samd,renesas_uno,renesas_portenta,mbed_giga

0 commit comments

Comments
 (0)