Skip to content

Commit a453bec

Browse files
committed
feat: add zephyr support for nano rp2040
Signed-off-by: Gilberto Conti <g.conti@arduino.cc>
1 parent 2fd42cb commit a453bec

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

examples/Tools/SerialNINAPassthrough/SerialNINAPassthrough.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void setup() {
4747
pinMode(NINA_RESETN, OUTPUT);
4848
#endif
4949

50-
#ifdef ARDUINO_AVR_UNO_WIFI_REV2
50+
#if defined(ARDUINO_AVR_UNO_WIFI_REV2) || defined(ARDUINO_NANO_RP2040_CONNECT)
5151
// manually put the NINA in upload mode
5252
digitalWrite(NINA_GPIO0, LOW);
5353

@@ -60,7 +60,7 @@ void setup() {
6060
}
6161

6262
void loop() {
63-
#ifndef ARDUINO_AVR_UNO_WIFI_REV2
63+
#if !defined(ARDUINO_AVR_UNO_WIFI_REV2) && !defined(ARDUINO_NANO_RP2040_CONNECT)
6464
if (rts != Serial.rts()) {
6565
#ifdef ARDUINO_SAMD_MKRVIDOR4000
6666
FPGA.digitalWrite(FPGA_SPIWIFI_RESET, (Serial.rts() == 1) ? LOW : HIGH);
@@ -90,7 +90,7 @@ void loop() {
9090
Serial.write(SerialNina.read());
9191
}
9292

93-
#ifndef ARDUINO_AVR_UNO_WIFI_REV2
93+
#if !defined(ARDUINO_AVR_UNO_WIFI_REV2) && !defined(ARDUINO_NANO_RP2040_CONNECT)
9494
// check if the USB virtual serial wants a new baud rate
9595
if (Serial.baud() != baud) {
9696
rts = -1;

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ sentence=Enables network connection (local and Internet) with the Arduino MKR Wi
66
paragraph=With this library you can instantiate Servers, Clients and send/receive UDP packets through WiFi. The board can connect either to open or encrypted networks (WEP, WPA). The IP address can be assigned statically or through a DHCP. The library can also manage DNS.
77
category=Communication
88
url=http://www.arduino.cc/en/Reference/WiFiNINA
9-
architectures=samd,mbed_nano,megaavr
9+
architectures=samd,mbed_rp2040,megaavr,zephyr,zephyr_main
1010
includes=WiFiNINA.h
1111
depends=Arduino_SpiNINA

0 commit comments

Comments
 (0)