From de7f1a7e833d088f187e053ff8579cc924488420 Mon Sep 17 00:00:00 2001 From: Ricardo Marques Date: Wed, 14 May 2025 01:18:04 +0100 Subject: [PATCH] Fixed generic PIN_LED and SPI0 Pin assignment on WIZnet W55RP20-EVB-Pico. (#2956) * Update pins_arduino.h Changed PIN_LED to match USERLED on PCB. Removed unavailable pins from SPI0 connection. * Update pins_arduino.h Uncommented SPI0 pins and reassigned them over GPIO 2,3,4,5. --- .../wiznet_55rp20_evb_pico/pins_arduino.h | 41 ++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/variants/wiznet_55rp20_evb_pico/pins_arduino.h b/variants/wiznet_55rp20_evb_pico/pins_arduino.h index 41d8bda..4363f97 100644 --- a/variants/wiznet_55rp20_evb_pico/pins_arduino.h +++ b/variants/wiznet_55rp20_evb_pico/pins_arduino.h @@ -1 +1,40 @@ -#include "../generic/pins_arduino.h" +#pragma once + +// Pin definitions taken from: +// https://datasheets.raspberrypi.org/pico/pico-datasheet.pdf + + +// LEDs +#define PIN_LED (19u) + +// Serial +#define PIN_SERIAL1_TX (0u) +#define PIN_SERIAL1_RX (1u) + +#define PIN_SERIAL2_TX (8u) +#define PIN_SERIAL2_RX (9u) + +// SPI +// Default SPI0 pins are used internally and are unavailable on this board. To use SPI0 other peripherals must be sacrificed. +#define PIN_SPI0_MISO (2u) // 16u is connected to the buck-boost converted. +#define PIN_SPI0_MOSI (3u) // 19u is connected to USERLED, defined as PIN_LED. +#define PIN_SPI0_SCK (4u) // 18u is connected to a voltage divider on VBUS. +#define PIN_SPI0_SS (5u) // 17u doesn't even show up in the schematics. + +#define PIN_SPI1_MISO (12u) +#define PIN_SPI1_MOSI (15u) +#define PIN_SPI1_SCK (14u) +#define PIN_SPI1_SS (13u) + +// Wire +#define PIN_WIRE0_SDA (4u) +#define PIN_WIRE0_SCL (5u) + +#define PIN_WIRE1_SDA (26u) +#define PIN_WIRE1_SCL (27u) + +#define SERIAL_HOWMANY (3u) +#define SPI_HOWMANY (2u) +#define WIRE_HOWMANY (2u) + +#include "../generic/common.h"